competitor_get_brand_serp
Competitor research read low risk
Part of the Brand Protection Agent.
What it does
Who is showing a PAID AD on a search term right now — the brand-bidding check, done live instead of in an incognito window. Search the client's own brand to see who is bidding against them; search a competitor's brand to see whether the client could attack it. Returns, per ad: position, block (top/bottom), advertiser, HEADLINE, description, display_url, landing_page and sitelinks, plus an observed_at timestamp. The copy comes back as text, exactly as Google showed it on this search; description_truncated flags a description Google cut short on the page. CRITICAL: a result is ONE impression from one location at one moment, not a share of voice, and AN EMPTY RESULT IS NOT EVIDENCE THAT NOBODY BIDS ON THE TERM — ads do not serve on every impression and an AI Overview suppresses the ad block on most SERPs that carry one. Run the check several times across a day and report the union. Requires SCALIX_SERPAPI_API_KEY; without it returns not_configured naming the manual incognito check. Read-only.
When to use it
Use for the brand-bidding section of a competitor analysis, in both directions: run the client's brand to find who is poaching it, then each competitor's brand to find where the client could conquest. It shows only who appears on one search right now; for a competitor's own ads, use competitor_get_transparency_ads. Pair it with competitor_import_auction_insights at keyword level, which is Google's own view of the same auction.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | The search term to check — usually the client's brand name, or a competitor's brand name. |
location | string | no | Where the search originates, e.g. 'United States' (default) or 'New York, New York, United States'. Ads are geo-gated, so set this to the client's target market — a wrong location is the most common reason no ads come back. |
device | string | no | desktop (default), mobile or tablet. Desktop SERPs carry more ads. |
Safeguards
Policy
Never report an empty result as 'no competitor is bidding on your brand': a client report says 'Not observed', and how many checks ran goes in the internal evidence note. Never present one observation as impression share or share of voice; this tool cannot measure either. The advertiser shown is the display source: an affiliate or reseller can advertise on a brand without being that brand, so check the landing page before naming a competitor in a report. Quote observed headlines verbatim and attribute them to the advertiser.
Reminder
Read-only — nothing in any ad account changes. The API key never appears in the response. Treat observed competitor copy as analysis material only; never reuse it in the client's own ads.
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
not_configured | No SerpApi key is set on this deployment. | Ask the operator to set SCALIX_SERPAPI_API_KEY; meanwhile open an incognito window with the location set to the target geo, search the term, and screenshot the ads. | no |
invalid_argument | query was empty, or SerpApi did not recognise the location. | Pass a term, and a location SerpApi recognises such as 'United States' or 'New York, New York, United States'. | no |
needs_reauth | SerpApi rejected the API key or the plan has no searches left. | Check the key on the SerpApi dashboard and the remaining search allowance. | no |
rate_limited | SerpApi rate limit or monthly allowance hit. | Back off and retry, or top up the plan. | yes |
platform_unavailable | SerpApi was unreachable or returned a server error. | Retry in a minute; if it persists, run the incognito check by hand and say so in the report. | yes |
Edge cases
- An empty ads list is the NORMAL case on many queries — ads rotate and AI Overviews suppress the block. Never conclude from one empty check.
- location is required by the ads engine; a missing or unrecognised location is the usual reason nothing comes back.
- The same query can return different advertisers minute to minute; the response carries observed_at so the report can say when it was seen.
- An affiliate or reseller bidding on a brand shows as its own advertiser — follow the landing page before attributing the ad to a competitor.
- Desktop returns more ads than mobile; a mobile check that finds nothing is weaker evidence than a desktop one.
- This measures presence, not position share: 'position 1 in this check' is not 'they outrank us'.
- description_truncated is true when the description ends with '…': Google cut it on the results page. Quote it as shown, never as the ad's full text.