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.
Dear AdSense gurus:
I want to use the AdSense API to generate a complete report like the one under Content > AdSense > AdSense pages in the Analytics administration interface. It produces a report with a detailed description of how much money is produced per page (exact URL) in a given website. It contains the columns: Page | Adsense Revenue | AdSense Ads Clicked | AdSense CTR | AdSense eCPM | AdSense Ads Viewed | AdSense Page Impressions. I have checked the report API for both Analytics and AdSense and I have not found a direct way to produce such kind of report. My website consists of many pages and has several ads blocks. I need to report how many clicks and revenue every different URL produces in a given period of time. Do you have any idea of how to achieve this programmatically, let's say using the Google API Client Library for PHP. I had thought in doing it manually by exporting the information in the Google Analytics console in CSV or TSV and then importing it into my system, but automating this process would be really great for my purposes.
I hope you can help me. Thanks in advance for your attention.
Cheers,
Luis
PD: I posted a similar inquiry in the Analytics API Google Group without success so far https://groups.google.com/forum/?fromgroups=#!topic/google-analytics-data-export-api/dC-pIoZ_rxI