compare_periods
Compare two date ranges to find pages or queries with the largest changes in clicks, impressions, and position, with deltas computed automatically.
Instructions
The biggest-movers analysis, computed for you: this date range vs the prior equal-length range, joined per page (or query) with clicks/impressions/position deltas, sorted by biggest change. Use this for 'what fell/grew', 'this month vs last', and trend diagnosis — it's one call and the math is already done.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endDate | Yes | Current period end, YYYY-MM-DD | |
| siteUrl | Yes | Exact property from list_properties | |
| rowLimit | No | ||
| dimension | No | Compare by page (default) or by query | |
| startDate | Yes | Current period start, YYYY-MM-DD | |
| searchType | No |