gsc_compare_periods
Compare a current period against the previous equal-length window to identify biggest gainers and losers by dimension (query, page, country, device).
Instructions
Compare a window against the equal-length window immediately before it, and return the biggest gainers and losers.
This is the tool for "what changed". The API cannot diff periods itself, so this runs both windows and joins them.
Args: dimension: query, page, country, or device. days: length of each window (default 28, so 28 vs the prior 28). limit: how many gainers and how many losers to return.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| limit | No | ||
| end_date | No | ||
| site_url | No | ||
| dimension | No | query | |
| start_date | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |