Compare two periods
compare_periodsCompare AdMob KPIs against a previous-period or custom baseline to explain revenue changes, ranking apps, ad units, countries, formats, platforms, or versions by volume or eCPM contribution.
Instructions
Compares AdMob Network KPIs between a period and a baseline (previous period, same period last year, or custom), overall and per app / ad unit / country / format / platform / version. Rows are ranked by their absolute contribution to the change, and show whether it came from volume (impressions) or price (eCPM). Use for 'why did revenue change?'.
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": "compare_periods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_n | No | ||
| rank_by | No | earnings | |
| baseline | No | previous_period = the same number of days immediately before. | previous_period |
| dimension | No | APP | |
| account_id | No | AdMob publisher ID, e.g. pub-1234567890123456. Optional: defaults to ADMOB_ACCOUNT_ID or the only account. | |
| date_range | No | Current period. Defaults to last_7_days. | |
| baseline_end_date | No | YYYY-MM-DD, for baseline=custom. | |
| baseline_start_date | No | YYYY-MM-DD, for baseline=custom. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groups | Yes | ||
| current | Yes | ||
| baseline | Yes | ||
| currency | Yes | ||
| warnings | Yes | ||
| account_id | Yes | ||
| total_groups | Yes |