gsc_find_losses_gains
Compare two date ranges to reveal which queries or pages gained or lost clicks, impressions, CTR, and position. Use the deltas to spot performance wins and declines.
Instructions
Compare two periods for query or page performance and return click/impression/CTR/position deltas.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topN | No | ||
| limit | No | Rows to fetch for each period. | |
| sortBy | No | clicksDelta | |
| siteUrl | No | Search Console property URL, e.g. https://example.com/ or sc-domain:example.com. Uses GSC_SITE_URL when omitted. | |
| dimension | No | query | |
| datePreset | No | last28days | |
| searchType | No | web | |
| currentDateRange | No | Current period. Defaults to datePreset. | |
| minAbsClickDelta | No | Filter out rows with smaller absolute click delta. | |
| previousDateRange | No | Previous period. Defaults to the immediately preceding period with the same length. |