adsense_generate_report
Generate custom AdSense reports using API v2 dimensions, metrics, filters, and date ranges. Specify only required metrics; account is auto-detected when omitted.
Instructions
Extract any ad-hoc AdSense report. Supply API v2 dimensions, metrics, filters, dates, sorting, and other report parameters. Account is discovered automatically when omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| account | No | Account resource name; optional when one account is accessible. | |
| endDate | No | Custom end date in YYYY-MM-DD. | |
| filters | No | AdSense filters, e.g. AD_CLIENT_ID==ca-pub-... | |
| metrics | Yes | Required metrics, e.g. ESTIMATED_EARNINGS, PAGE_VIEWS, CLICKS. | |
| orderBy | No | Columns to sort, e.g. -ESTIMATED_EARNINGS. | |
| dateRange | No | Preset date range such as TODAY, YESTERDAY, LAST_7_DAYS, MONTH_TO_DATE, CUSTOM. | |
| startDate | No | Custom start date in YYYY-MM-DD. | |
| dimensions | No | Report dimensions, e.g. DATE, AD_UNIT_NAME, COUNTRY_NAME. | |
| currencyCode | No | ||
| languageCode | No | ||
| reportingTimeZone | No | ACCOUNT_TIME_ZONE or GOOGLE_TIME_ZONE. |