Compare two periods
compare_periodsCompares search performance between two date ranges by a dimension, returning overall totals plus the biggest gainers and losers by clicks.
Instructions
Compares performance between two date ranges by a dimension and returns overall totals plus the biggest gainers and losers by clicks. The previous range defaults to the equal-length period right before the current one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| type | No | web | |
| endDate | No | Defaults to the latest finalized day (~3 days ago) | |
| filters | No | ||
| siteUrl | Yes | Property exactly as listed by list_sites, e.g. "sc-domain:example.com" or "https://example.com/" | |
| dimension | No | query | |
| startDate | No | Defaults to 28 days before endDate | |
| previousEndDate | No | ||
| previousStartDate | No |