andeedee / gapi-google-analytics-php-interface

Automatically exported from code.google.com/p/gapi-google-analytics-php-interface
0 stars 0 forks source link

isMobile fails when adCost is provided as a dimension #47

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

This code works: 

$dimensions = array('isMobile');
$metrics = 
array('transactions','transactionRevenue','visits','newVisits','goal1Completions
','goal1Starts');
$more = $ga->requestReportData(ga_profile_id, $myDimensions, 
$myMetrics,$myMetrics,'isMobile==Yes');

This code fails without an error: 

$dimensions = array('isMobile');
$metrics = 
array('transactions','transactionRevenue','visits','newVisits','goal1Completions
','goal1Starts','adCost');
$more = $ga->requestReportData(ga_profile_id, $myDimensions, 
$myMetrics,$myMetrics,'isMobile==Yes');

What is the expected output? What do you see instead?

I'd expect the adCost data to be provided in the array, but the query fails, 
for some reason. 

What version of the product are you using? On what operating system?

GAPI 1.3 on LAMP. 

Please provide any additional information below.

Thanks for your efforts on this superb and very useful class!

Original issue reported on code.google.com by i...@swelluk.com on 26 Oct 2010 at 3:25

GoogleCodeExporter commented 9 years ago
I've got the same problem when mixing adcost and trasactionRevenue. No error, 
and I get a couple results but then it fails.

did you finally figured this one out? please let me know. thnx

Original comment by guillerm...@gmail.com on 7 Jan 2015 at 7:23