Re: Integrate Analytics and AdSense API

75 views
Skip to first unread message

Sérgio Gomes (AdSense API Team)

unread,
Oct 15, 2012, 6:44:29 AM10/15/12
to adsen...@googlegroups.com
Hi Luis,

I'm afraid what you're looking for is not possible with the AdSense Management API, as the finest granularity we have is domain, not page. That is, you'd be able to run a report on how much each of your domains makes you, but not each of your pages.

As you mention, this functionality is available from Analytics, but from what I can tell, it's not exposed on their API. Perhaps the folks in the Analytics forum can offer more help?

Cheers,
Sérgio

---
Sérgio Gomes
Developer Relations

Google UK Limited
Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W 9TQ
Registered in England Number: 3977902


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.



On Sunday, 14 October 2012 22:37:57 UTC+1, Luis Galárraga wrote:
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

Reply all
Reply to author
Forward
0 new messages