Thursday, October 13, 2022

Digest for adsense-api@googlegroups.com - 1 update in 1 topic

Ad Sense API <adsenseapi@forumsupport.google>: Oct 12 11:57AM

Hi Stefan, I apologize for the delayed response.
 
Are you able to use the API tester on the developer site to experiment with the API calls first? And if so, does that result in a successful response?
 
Try this URL, first change the account field to what the account you'd like to query, then hit "Execute" at the bottom of the right hand side panel (the "Try this method" panel):
https://developers.google.com/adsense/management/reference/rest/v2/accounts.reports/generate?apix_params=%7B%22account%22%3A%22accounts%2Fpub-123%22%2C%22dateRange%22%3A%22LAST_7_DAYS%22%2C%22dimensions%22%3A%5B%22URL_CHANNEL_NAME%22%5D%2C%22metrics%22%3A%5B%22ESTIMATED_EARNINGS%22%5D%7D
 
If that's showing you the results you expect, then I'll need to see the request URLs you're sending in order to be able to help further. You can run the python script and copy the URLs from the terminal.
 
As a side-note, URL channels only work when pre-defined for specific URLs inside the AdSense account. And you can only create a limited number of them. AdSense recently launched a new feature inside reporting which shows you the URL-level breakdown of reports. Go to the reports page in AdSense, and choose the "Page URL" dimension. Note that this dimension only shows URLs that have sufficient traffic, and data is only stored for the past 30 days. You can learn more about this dimension here:
https://support.google.com/adsense/answer/11988478
 
All the best!
ref:_00D1U1174p._5004Q2f4PJK:ref
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to adsense-api+unsubscribe@googlegroups.com.

No comments:

Post a Comment