SCALIX help

← All tools

gads_get_auction_insights

Google Ads read low risk

Part of the Auction Insights Agent.

What it does

Report competitive standing via IMPRESSION-SHARE metrics for a campaign (or the account) over a date range: search_impression_share, search_top_impression_share, search_absolute_top_impression_share, and share lost to rank (search_rank_lost_impression_share) vs budget (search_budget_lost_impression_share), plus impressions and clicks. IMPORTANT: values are FRACTIONS 0-1 (multiply by 100 for the % shown in the UI) and are subject to Google's privacy thresholds (very low is reported as < 0.1, very high as > 0.9). This is the Google Ads API's closest equivalent to the UI's Auction Insights; it does NOT return the domain-level competitor table (that is not exposed by the API). Reconciles to the UI within +/-1%. Returns {success, data:[{campaign, metrics}], count, warnings}; every selected metrics key is present on every row (share metrics null when Google reports no value, impressions/clicks 0). SCOPE: impression-share metrics only (search IS, lost-to-rank/budget, etc.) — the Google Ads UI's competitor-domain table is NOT available in the API and will not appear here.

When to use it

Use when the user asks how much of the auction they are winning, or whether they are losing share to rank vs budget. NOT the UI Auction Insights competitor table (unavailable via API).

Inputs

NameTypeRequiredDescription
customer_idstringyes10-digit Google Ads customer ID (CID), dashes stripped. Server-derived tenant context + RLS.
campaign_idstringnoRestrict to one campaign (recommended to bound rows).
date_rangestringyesGAQL macro (LAST_7_DAYS/LAST_30_DAYS/THIS_MONTH/LAST_MONTH) or explicit YYYY-MM-DD,YYYY-MM-DD. ALL_TIME removes the date filter entirely.
limitintegernoGAQL LIMIT cap on returned rows — recommended on account-wide calls (uncapped reads returned 200+ rows on large accounts).

Safeguards

Policy

Impression-share figures are Google's own advisory metrics — never fabricate them, and never claim to return competitor domains (not API-available). Present values as fractions/percentages honestly, including the < 0.1 / > 0.9 privacy buckets.

Reminder

Treat competitive/impression-share data as sensitive; do not retain beyond this request.

Errors

Error classMeansWhat to doRetry
CUSTOMER_NOT_FOUNDAccount {customer_id} not found or not linked.Verify the CID and authorization.no
needs_reauthAuthorization expired or revoked.Reconnect Google Ads in the Scalix dashboard.no
INVALID_ARGUMENTMalformed date_range or filter.Fix the argument and retry.no
MANAGER_ACCOUNT_METRICS_UNSUPPORTEDManager (MCC) accounts return no metrics.Query a child account.no
PERMISSION_DENIEDThe authenticated user lacks access to this account.Check account access.no
RESOURCE_EXHAUSTEDRate/quota limit hit.Back off and retry.yes

Edge cases

  • No eligible impressions -> shares may be null/0.
  • Values < 10% report as '< 0.1'; > 90% as '> 0.9' (Google privacy rounding).
  • Impression-share metrics have segment restrictions; this tool keeps to campaign + date.