compare_periods
Compare two equal date ranges to reveal which queries, pages, countries, or devices gained or lost clicks, with deltas precomputed. Spot traffic drops and rises at a glance.
Instructions
Two equal windows side by side with the deltas already computed: what went up, what fell, per query, page, country or device. This is the tool for "what changed", "are we up or down" and "which pages lost traffic". The default compares the last 28 days against the 28 before them. Rows are sorted by click change, so the biggest losses are at the bottom and the biggest gains at the top.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Length of each window. | |
| site | Yes | The Search Console property. Either a URL-prefix property ("https://navid.me/", trailing slash included) or a domain property ("sc-domain:navid.me"). A bare hostname is read as a domain property. Call list_sites for the exact strings this account owns, because the two shapes are different properties and mixing them up returns a 403. | |
| type | No | Which surface to report on. Defaults to web. "discover" and "googleNews" carry no query or device dimension at all, so asking for one returns an error rather than empty rows. | |
| limit | No | Rows pulled per window before joining. | |
| account | No | Which signed-in Google account to act as, by email. Omit to use the default. Call list_accounts to see what is signed in. | |
| dimension | No | query |