Build a shared negative keyword list and attach it across campaigns via the Google Ads API SharedSet and SharedCriterion

domain: developers.google.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Create a SharedSet with type NEGATIVE_KEYWORDS via SharedSetService.MutateSharedSets, and capture the returned resource name.
  2. For each negative keyword, build a SharedCriterion containing a KeywordInfo (keyword text and match type) with its shared_set field set to the SharedSet's resource name, then submit via SharedCriterionService.MutateSharedCriteria.
  3. Attach the shared set to one or more campaigns by creating a CampaignSharedSet resource linking each campaign resource name to the shared set resource name.
  4. Query existing shared sets and their member criteria via GAQL against the shared_set and shared_criterion resources to audit current negative keyword coverage.
  5. Remove obsolete negative keywords by mutating (removing) the specific SharedCriterion resource rather than recreating the whole SharedSet.

Known gotchas

Related routes

Generate keyword ideas and historical search metrics using the Google Ads API Keyword Planner service
advertising · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans