SCALIX help

← All tools

gads_get_brand_bidding_report

Google Ads read low risk

Part of the Brand Protection Agent.

What it does

Brand-bidding check: which search terms containing the client's OWN brand names are triggering their ads, with impressions/clicks/cost/conversions per term, plus the client's own brand-campaign impression share and top-of-page rate over the same dates. Two reads returned under separate keys, NOT merged: data.competitor_activity (one row per brand search term) and data.own_brand_impression_share (one row per campaign; fractions 0-1, subject to Google's privacy buckets). `count` counts the search-term rows only. IMPORTANT: Google's API does NOT name the rival advertisers bidding on your brand — that is the Auction Insights competitor table, which is not API-available. What this shows is the client's own side of the brand auction: the terms, their cost, and how much of the brand impression share the client is holding or losing. Falling impression share on brand campaigns with rising brand-term CPCs is the signal that someone has started bidding on the brand. brand_terms matches a SUBSTRING, so 'acme' also matches 'acme reviews' and 'acmetech'. With include_prior_period=true every row gains prior_period{date_range, metrics, delta_pct}; delta_pct is null (never estimated) when the prior value is zero or the row had no prior match. Read-only.

When to use it

Use for a brand bidding check: when the user asks whether competitors are bidding on their brand name, why brand CPCs have risen, or how much of their own brand traffic they are winning. This report pairs the brand search terms with the brand campaign's impression share so a loss of share shows up next to the terms driving it. Pass include_prior_period=true for the week-over-week movement.

Inputs

NameTypeRequiredDescription
customer_idstringyes10-digit Google Ads customer ID (CID), dashes stripped.
brand_termsarray<string>yesThe client's brand names and their common variants and misspellings, e.g. ['acme', 'acme ltd', 'acmeco', 'akme']. Matched as case-insensitive SUBSTRINGS and OR-ed together. Required: without it the tool would return every search term in the account, which is not a brand-bidding report. A comma-separated string is accepted too.
date_rangestringnoGAQL macro (LAST_7_DAYS/LAST_14_DAYS/LAST_30_DAYS/THIS_MONTH/LAST_MONTH) or an explicit YYYY-MM-DD,YYYY-MM-DD range. Defaults to LAST_30_DAYS (a warning says so). ALL_TIME removes the date filter.
campaign_idstringnoRestrict both halves to one campaign — pass the brand campaign's id to compare its impression share against the brand terms it is meant to cover.
limitintegernoRow cap on the search-term half only (default 1000); the impression-share half is never capped by it.
include_prior_periodbooleannoAdd an equal-length window immediately before date_range to every row as prior_period. Needs a translatable date_range; skipped with a warning otherwise, never guessed.
manager_idstringnoOptional MCC login-customer-id.

Safeguards

Policy

Never claim this names the competitors bidding on the brand — Google does not expose the Auction Insights competitor table through the API, and saying otherwise invents data. Report impression share honestly, including the < 0.1 / > 0.9 privacy buckets, and reconcile every figure to the Google Ads UI within +/-1%. A null delta means there was no comparable prior figure; report it as unknown rather than filling it in.

Reminder

Read-only — nothing in the account changes. Treat competitive and brand-term data as sensitive and do not retain it beyond this request.

Errors

Error classMeansWhat to doRetry
invalid_argumentbrand_terms was empty or missing.Pass the client's brand name and its common variants, e.g. brand_terms=['acme','acme ltd'].no
CUSTOMER_NOT_FOUNDAccount not found or not linked.Verify the CID and that Scalix is authorised on it.no
needs_reauthAuthorization expired or revoked.Reconnect Google Ads in the Scalix dashboard.no
MANAGER_ACCOUNT_METRICS_UNSUPPORTEDManager (MCC) accounts hold no metrics.Query a serving child account instead.no
PERMISSION_DENIEDThe authenticated user lacks access to this account.Check account access, then retry.no
RESOURCE_EXHAUSTEDRate or quota limit hit.Back off and retry.yes

Edge cases

  • Substring matching: 'acme' also matches 'acmetech' — read the returned terms before concluding a competitor is bidding.
  • Search terms are only reported once they pass Google's privacy threshold, so a low -volume brand variant may be absent entirely rather than zero.
  • Impression-share metrics report as < 0.1 or > 0.9 at the extremes (Google privacy rounding) and are null when Google reports no value.
  • The prior-period rows come from the same LIMIT and ordering, so a term that fell out of the top rows between windows has no prior match and its deltas are null.
  • Search terms are not unique across ad groups; the prior-period join is keyed on campaign + ad group + term.
  • A manager (MCC) id returns no metrics — query the serving account.