Hi Sergio,
The answer you provided on Stack Overflow was incredibly helpful:
All I had to do was modify this section:
call = {
:api_method => @adsense.reports.generate,
:parameters => {
'startDate' => '2011-01-01',
'endDate' => '2011-08-31',
'dimension' => ['MONTH', 'CUSTOM_CHANNEL_NAME'],
'metric' => ['EARNINGS', 'TOTAL_EARNINGS']
}
}
call = {
:api_method => @adsense.reports.generate,
:parameters => {
'startDate' => '2011-01-01',
'endDate' => '2011-08-31',
'dimension' => ['MONTH'],
'metric' => ['EARNINGS']
}
}
That returned lots of helpful data. What is the best way for me to find out about all the other methods available when querying AdSense? Should I dig through the 'google/api_client' gem?
Any guidance would be much-appreciated.
Thanks,
Richard