Tuesday, October 19, 2021

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

Kai Wang <kwang9@eclassifiedsgroup.com>: Oct 17 09:00PM -0700

Hi, Aadsense team.I used the reference
code(https://github.com/googleads/googleads-adsense-examples/blob/master/v2/python/generate_report.py)
from the official website to get adSense data.After authorized login, the
API returns empty results.
Here is the code I used:
result = service.accounts().reports().generate(
account=account_id, dateRange='CUSTOM',
startDate_year=2021, startDate_month=9, startDate_day=1,
endDate_year=2021, endDate_month=9, endDate_day=15,
metrics=['PAGE_VIEWS', 'AD_REQUESTS', 'AD_REQUESTS_COVERAGE',
'CLICKS', 'AD_REQUESTS_CTR', 'COST_PER_CLICK',
'AD_REQUESTS_RPM', 'ESTIMATED_EARNINGS'],
dimensions=['MONTH', 'PLATFORM_TYPE_NAME'],
orderBy=['+MONTH']).execute()[image: ppc1.jpg][image: ppc2.jpg]
Ad Sense API <adsenseapi@forumsupport.google>: Oct 18 09:34AM

Hi,
 
Are you trying to fetch AdMob data? Per the v2 Release Notes, AdMob data will no longer be returned by the AdSense Management API. For that, you will need to migrate to the AdMob API.
 
If it isn't the case that you're fetching AdMob data, could you provide me with a little more information to investigate? You can write a private email to "adsenseapi-tech [at] google [dot] com" with your publisher id.
 
Donovan McMurray
AdSense API Team
ref:_00D1U1174p._5004Q2PKQQc: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