) from the official website to get adSense data.After authorized login, the API returns empty results.
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()
![ppc1.jpg](https://groups.google.com/group/adsense-api/attach/208eed17e2d93/ppc1.jpg?part=0.2&view=1)
![ppc2.jpg](https://groups.google.com/group/adsense-api/attach/208eed17e2d93/ppc2.jpg?part=0.1&view=1)