adsense_generate_report
Generates detailed AdSense performance reports with custom dimensions, metrics, date ranges, filters, and sorting to analyze earnings, impressions, clicks, and ad performance.
Instructions
Generate a detailed AdSense performance report with custom dimensions and metrics
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "adsense_generate_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows to return (default: 100, max: 10000) | |
| endDate | No | End date (YYYY-MM-DD). Defaults to yesterday. | |
| filters | No | Filters as DIMENSION==value (exact match) or DIMENSION=@value (contains), e.g. COUNTRY_CODE==US. Separate entries are ANDed; use a comma inside one entry for OR (COUNTRY_CODE==US,COUNTRY_CODE==GB). Date dimensions cannot be filtered. | |
| metrics | No | Metrics to include, such as ESTIMATED_EARNINGS, IMPRESSIONS, CLICKS, PAGE_VIEWS, PAGE_VIEWS_RPM, AD_REQUESTS, and AD_REQUESTS_COVERAGE. | |
| orderBy | No | Dimension or metric to sort by. Prefix with - for descending or + for ascending, e.g. -ESTIMATED_EARNINGS. | |
| accountId | No | AdSense account ID. Uses default if not specified. | |
| startDate | No | Start date (YYYY-MM-DD). Defaults to 7 days ago. | |
| dimensions | No | Dimensions to group by. For country/platform reports use COUNTRY_NAME or COUNTRY_CODE with PLATFORM_TYPE_CODE or PLATFORM_TYPE_NAME. For custom channel reports use CUSTOM_CHANNEL_NAME or CUSTOM_CHANNEL_ID. |