) 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()

