competitor_collect
Competitor research read low risk
Part of the Competitor Analysis Agent.
What it does
One section of a competitor analysis, collected for EVERY competitor in the set in one call (ADR-114): the server runs each check for each competitor, at most five at a time, and returns the report's cells computed from the checks, so no competitor is skipped however many there are. Sections: brand (the client's brand terms on live results pages: brand_bidding rows for every competitor plus advertisers not in the set, with intensity, the verbatim headline, the landing-page path and names_our_brand); keywords (each competitor's paid keywords at positions 1-5 from the connected keyword account, with their paid ad copy where the data has it, what they just started buying and, on SE Ranking, stopped buying; the paid keyword gap against client_domain; and, with customer_id, Keyword Planner on each competitor's paid landing page and the client's homepage. Returns `keywords`, one merged row per keyword with competitors, best_position, cpc, volume, new_for, landing_pages and Keyword Planner's planner_volume and bid_low-bid_high, ranked by value; per competitor the counts, new and lost terms, paid_landing_page and search_nonbrand_cell; planner_ideas; planner_targeting with the market and currency; gap with rivals_not_in_set); campaigns (each competitor's ads in the Google Ads Transparency Center over the last 30 days by format, retried by advertiser name when the domain search is empty, Shopping, Maps and Play checked one by one, and their own brand on a live results page: campaign_map rows with search_branded, display, video and other_surfaces cells, evidence, own_ad_landing_page and others_on_their_brand); pages (the client's page and each competitor's page from landing_pages, else its homepage: H1, H2s, CTAs, form fields, trust signals, nav, with is_homepage and needs_screenshot). Every section carries a status per competitor per check and a copy_index of verbatim competitor ad copy for chapter 4's BUILD STEP. A cell reads '—' when its check found nothing and 'Not observed' (or 'No indexed paid KWs') when the check could not run. Read-only. Output: {success, data:{section, ...the section's rows, statuses, copy_index}, warnings}.
When to use it
Use for the collection phases of a competitor analysis, with the arguments competitor_analysis_brief's ordered_steps give: brand first (it finds advertisers nobody listed), then keywords, campaigns and pages, each with the whole competitor set. Prefer it to running the per-competitor tools one competitor at a time; use those for a single follow-up check or the next source in a fallback chain.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
section | string | yes | brand, keywords, campaigns or pages. |
competitors | array<string> | no | Every competitor domain in the set; required except for brand, where it gives each competitor its row. Accepts a list, a JSON array string, a comma or newline separated string, or full URLs (reduced to the bare domain). |
client_domain | string | no | The client's own domain: the keyword gap and a Keyword Planner seed (keywords), the client's page (pages), and leaving the client's own ads out (brand). |
brand_terms | array<string> | no | For brand, where it is required: the client's brand names and common misspellings. |
geo | string | no | Target market for the live results pages, e.g. 'United States' (default). Ads are geo-gated, so a wrong geo is the usual reason none come back. |
source | string | no | For keywords: the keyword market. SpyFu: two-letter country code, e.g. 'US' (default). SE Ranking: regional database, e.g. 'us' (default). |
customer_id | string | no | For keywords: the client's 10-digit Google Ads customer id. Adds Keyword Planner's average monthly searches and top-of-page bid range, one request at a time (Google allows one per second per customer id). |
location_ids | array<string> | no | For keywords: Keyword Planner geo target constant ids from gads_search_geo_locations (default ['2840'] = United States). |
landing_pages | object | no | For pages: {domain: url} with each competitor's paid landing page (the keywords section's paid_landing_page, else the campaigns section's own_ad_landing_page) and the client's. A domain left out is read at its homepage. |
provider | string | no | For keywords: 'spyfu' or 'seranking'. Leave it out to use whichever the user connected under Competitor data in the Scalix console (SpyFu first when both are). |
limit | integer | no | For keywords: how many merged keywords to list (default 300); keywords_found is the total. |
Safeguards
Policy
Read-only: changes nothing in any account. Every cell comes from a check: never guess one and never fill a 'Not observed' cell from memory. SpyFu and SE Ranking figures are modelled estimates, never blended with Google Ads account figures. The client report names no data source, vendor or tool: sources, statuses and failures go in the internal evidence note. Competitors' ad copy in copy_index is for analysis only, quoted verbatim and attributed to the competitor, and never reused in the client's own ads.
Reminder
Read-only, and metered like the tools it calls: SE Ranking or SpyFu on the user's own plan, ad-library and results-page requests against the monthly competitor-data allowance. Keys never appear in the response.
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
invalid_argument | section is not brand, keywords, campaigns or pages; competitors is missing (every section but brand); or brand_terms is missing for brand. | Pass the section and the whole competitor set, and brand_terms for brand. | no |
not_configured | No SpyFu or SE Ranking account is connected (keywords). | Connect one under Competitor data in the Scalix console, or export the competitors' paid keywords by hand; the other sections still run. | no |
quota_exceeded | Every competitor's paid-keyword read was refused for credits or the monthly allowance (keywords); in other sections a refused check shows in that competitor's status. | Tell the user what ran out and when it resets; record the affected cells in the evidence note. | no |
Edge cases
- A check that fails for one competitor never fails the section: its status names the failure and its cells read 'Not observed' (or 'No indexed paid KWs'). Try the next source in the brief's fallback chain before writing that.
- Advertisers on the client's brand who are not in the set come back as discovered brand_bidding rows, and gap.rivals_not_in_set lists the keyword gap's: add the real competitors and collect again for them.
- SpyFu keyword rows carry no landing page, so paid_landing_page is empty on SpyFu: use the campaigns section's own_ad_landing_page.
- found_by_advertiser_lookup true means the domain search was empty and the ads came from a name lookup: check evidence.advertisers is the competitor before using that row.
- planner_targeting names the market and currency of planner_volume and bid_low-bid_high; the default is the United States in English.
- With customer_id the keywords section is slower: Keyword Planner runs one request at a time.