I am using the rails client api, and having issues while requesting multiple metrics. If I pass one metric I get a report.result = api_client.execute({
:api_method => adsense.reports.generate,
:parameters => {'startDate'=> @start_date, 'endDate' => @end_date, 'accountId' => @id,
'metric' =>['EARNINGS'],
'dimension' => "MONTH"
}
})However if I pass in multiple metrics, my report is empty.result = api_client.execute({
:api_method => adsense.reports.generate,
:parameters => {'startDate'=> @start_date, 'endDate' => @end_date, 'accountId' => @id,
'metric' =>['CLICKS','PAGE_VIEWS','PAGE_VIEWS_CTR','PAGE_VIEWS_RPM','EARNINGS'],
'dimension' => "MONTH"
}
})I read a similar bug in the PHP library which appears to be fixed now and was wondering if this is a bug, or I am doing something silly that is preventing me from getting a report. Thanks!
Google Inc.| Developer Relations | AdSense API Team | developers.google.com/adsense
Follow us on our Google Ads Developer page on Google+ and our Google Ads Developer Blog to learn more about the different Ads APIs at Google.
A list of valid and/or invalid combinations would be a good addition to the documentation.
2012年11月13日火曜日 19時19分03秒 UTC+9 Jose Alcérreca (AdSense API Team):