Hi David,When you say you're using the "rails client api", do you mean the Google APIs client library at http://code.google.com/p/google-api-ruby-client/ ?Cheers,Sérgio---Sérgio GomesDeveloper RelationsGoogle UK LimitedRegistered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W 9TQRegistered in England Number: 3977902---
On 09/26/12 21:43:09 "David Fritz" <daf...@gmail.com> wrote: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!--
You received this message because you are subscribed to the Google Groups "AdSense API Forum" group.
To view this discussion on the web visit https://groups.google.com/d/msg/adsense-api/-/i6hsBxeKcjQJ.
To post to this group, send email to adsen...@googlegroups.com.
To unsubscribe from this group, send email to adsense-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/adsense-api?hl=en.