Skip to main content
Glama
google-ad-manager-mcp

google-ad-manager-mcp

by Jakob-Peters

google-ad-manager-mcp

An MCP server for the Google Ad Manager API. It gives Claude (or any MCP client) read access to a GAM network: reports, forecasts, line item and order troubleshooting, pacing, inventory, targeting, creatives, deals and change history.

Read-only. 54 tools that read, report and forecast. None of them creates, changes or deletes anything in your network (see Safety). Not affiliated with Google.

Why REST and SOAP

Google's new Ad Manager REST API (admanager.googleapis.com/v1) is still in beta and does not yet cover everything. Forecasting and forecast adjustments, creatives and line item–creative associations, line item templates, proposals, yield groups, users and teams, PQL and change history, and ads.txt diagnostics are still only available through the legacy SOAP API.

So this server is a hybrid. REST is used wherever it covers the job, pinned to a discovery revision, and SOAP (v202605) fills the gaps. The goal is to be REST-only: as Google moves each remaining service to REST, the matching tool moves over and its SOAP code is deleted.

Related MCP server: Google Ads MCP Server

Setup

You need a Google Cloud service account with a JSON key, added in GAM under Admin → Global settings → API access (enable API access, then add the service account as a user with a role that can read what you need). Note your network code from the same page.

git clone https://github.com/Jakob-Peters/google-ad-manager-mcp.git
cd google-ad-manager-mcp
npm install
cp .env.example .env   # fill in GOOGLE_SERVICE_ACCOUNT_EMAIL, GOOGLE_PRIVATE_KEY, GOOGLE_AD_MANAGER_NETWORK_CODE
npm test

The server reads .env from its own directory. It starts and lists tools without credentials; tools return an actionable error until .env is filled in.

Local (stdio)

Claude Code (inside this repo, .mcp.json registers it as gam automatically). From anywhere else:

claude mcp add gam -- npx tsx /path/to/google-ad-manager-mcp/src/server.ts

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "gam": {
      "command": "npx",
      "args": ["tsx", "/path/to/google-ad-manager-mcp/src/server.ts"]
    }
  }
}

Remote (Vercel)

vercel deploy --prod serves the same tools at https://<your-deployment>/mcp over stateless Streamable HTTP, with an unauthenticated /health. Set the three GOOGLE_* variables on the project, plus one auth mode:

  • Shared token: set MCP_BEARER_TOKEN and send it as Authorization: Bearer <token>.

    claude mcp add --transport http gam https://<your-deployment>/mcp --header "Authorization: Bearer <token>"
  • Your own OAuth server: set JWT_SECRET (HS256), optionally GAM_JWT_ISSUER / GAM_JWT_AUDIENCE, and OAUTH_AUTHORIZATION_SERVER. The server then publishes RFC 9728 metadata at /.well-known/oauth-protected-resource, so clients such as Claude Desktop's custom connectors can sign in.

With neither set the endpoint refuses every request. Deployment notes:

  • Leave Vercel Authentication off: MCP clients cannot pass Vercel's SSO. The bearer check above is the access control.

  • catalog/** must stay bundled (includeFiles in vercel.json), or gam_report_metadata fails in the function.

  • The rate-limit queue and token cache are per process, so concurrent functions multiply them. Report jobs poll for up to 180 s inside a 300 s function limit.

Tools

Tool names describe the job; descriptions carry the GAM UI's wording ("Key-values", "Traffic explorer", "Delivery tools", "Ad review centre") so the model can map UI language to the right tool.

Area

Tools

Reporting

gam_run_report (Interactive Reports, presets, computed totals, where/having filters), gam_saved_reports (run saved UI reports, incl. ad speed), gam_report_metadata (dimensions, metrics and date ranges per report type)

Forecasting

gam_traffic_data (traffic explorer), gam_forecast_availability, gam_forecast_existing_line_item, gam_forecast_delivery, gam_forecast_adjustments

Delivery & troubleshooting

gam_find_line_items, gam_get_line_item, gam_find_orders, gam_get_order, gam_check_pacing, gam_diagnose_line_item, gam_diagnose_order, gam_change_history, gam_line_item_templates

Creatives

gam_line_item_creatives (incl. preview on page), gam_find_creatives, gam_creative_templates, gam_creative_config

Inventory & targeting

gam_ad_unit_tree, gam_get_ad_unit, gam_ad_unit_sizes, gam_find_placements, gam_targeting_keys, gam_targeting_values, gam_audience_segments, gam_geo_lookup, gam_labels, gam_technology_targets, gam_suggested_ad_units

Video

gam_video_content, gam_cms_metadata, gam_ad_rules, gam_taxonomy_categories

Deals & programmatic

gam_find_proposals, gam_get_proposal, gam_private_auctions, gam_yield_groups, gam_programmatic_buyers

Network & admin

gam_network_info, gam_teams, gam_users, gam_companies, gam_sites, gam_child_publishers, gam_mobile_apps, gam_ads_txt_diagnostics, gam_admin_config, gam_ad_review_center

Other

gam_find_advertiser (brand name → advertisers and all their orders, tolerant of spelling variants), gam_pql_query (PQL SELECT, bind variables only), gam_submit_feedback

The server also ships MCP prompts (diagnose delivery, yesterday's performance, availability, recent changes) and server instructions that route questions to the right tools.

gam_geo_lookup answers Danish, Swedish and Norwegian locations from an offline pack (data/geo-nordic.json) and everything else from the live API.

gam_submit_feedback lets the model report friction with the tools. It writes to stderr with the marker GAM_MCP_FEEDBACK and, if GAM_FEEDBACK_LOG is set, appends to that JSONL file. It never touches GAM.

Large parts of the GAM UI have no API (billing, payments, optimisation, protections, pricing rules), so they are not here.

Access groups

Every tool carries MCP annotations (readOnlyHint and friends) and _meta["gam/group"]: read, reporting (gam_run_report, gam_saved_reports, gam_report_metadata) or write (none yet). A proxy in front of the server can use them to gate tools per user. The map lives in src/tools/groups.ts.

Safety

  • Read-only: no tool creates, updates or deletes line items, orders, creatives, ad units, targeting or any other network setting. The only things the server creates are report and forecast jobs: reports are hidden, API-only definitions reused across identical runs, and forecasts are computed without saving anything. The service account therefore needs no edit permissions, only view access and permission to run reports.

  • Tools only address GOOGLE_AD_MANAGER_NETWORK_CODE (and GAM_TEST_NETWORK_CODE when set).

  • Every call goes through a rate-limit queue, because GAM quotas are shared across the network and with the UI.

Response conventions

  • Money is always {amount, currency}, converted exactly once (REST units+nanos, SOAP and report micros).

  • Rates are fractions (0.5961 = 59.61%).

  • Dates are ISO strings; SOAP datetimes carry the network time zone (2026-08-24T14:58:03 Europe/Berlin).

  • Lists report truncated honestly and return a continuation token; caps and client-side filters surface a note.

  • Anything assumed or repaired is flagged (defaults_applied, selfHealed, valueNotes, checks_skipped). Silence means nothing was touched.

  • Verdicts (gam_diagnose_*, gam_check_pacing) ship the delivery figures they rest on, and contradictions when a failed check meets an item that is still serving.

Development

Command

What

npm test

Unit tests, no network

npm run typecheck

TypeScript check

npm run dev / npm start

Run the stdio server (tsx / built)

npx tsx scripts/smoke.ts <tool> '<json>'

Call one tool against your live network

npm run pin-discovery

Re-pin the REST discovery revision and regenerate the report catalog in catalog/

npm run extract-wsdl -- <Service>

Write a WSDL type digest for a SOAP service to catalog/wsdl/

Every Rest* interface is checked against the pinned discovery schema in npm test, so a field that does not exist in the API fails the build.

License

MIT

Available Tools

54 tools
gam_admin_configA
Read-onlyIdempotent

MODE: read-only. Network CONFIGURATION lookups, pick a kind: roles (UI Admin → Access & authorisation — resolves the roleId on gam_users); custom_fields (the custom-field definitions that decode customFieldValues on orders/line items/companies, with their data type and dropdown options); signal_mappings (UI Signals → publisher-provided signals — which taxonomy categories are mapped to a content bundle, key-value or audience segment); viewability_providers (third-party measurement vendors and their verification script URLs); targeting_presets (UI Inventory → Targeting presets — saved targeting templates); linked_devices (test devices registered for previewing creatives in apps). OUTPUT: configuration rows. WHEN TO USE: resolving ids from other tools to names/definitions, and auditing how the network is set up.

Inputs: kind (required), limit, search, status, +2 more.

gam_ad_review_centerA
Read-onlyIdempotent

MODE: read-only. UI: Brand safety → Ad review centre. The ads that actually ran on our inventory and their review state: ALLOWED / BLOCKED / UNREVIEWED, manual review statuses, product type and a preview URL. Search by text on the ad or its destination URL, by buyer account, or by a time window. OUTPUT: ad rows. WHEN TO USE: brand-safety questions — 'what ran on our sites', 'is this advertiser blocked', reviewing what needs a decision. READ-ONLY: allowing or blocking an ad is a write and is not exposed by this server.

Inputs: limit, status, product, end_time, +5 more.

gam_ad_rulesA
Read-onlyIdempotent

MODE: read-only. UI: Video → Ad rules. How video ad breaks are configured. kind=rules lists ad rules (status, priority, flight, frequency-cap behavior, per-stream and per-pod impression caps, and which break positions are configured — preroll / midrolls / postroll); kind=spots lists AD SPOTS (break templates: max ads, min/max ad duration, total duration, flexible/custom flags, allowed line item types, backfill and inventory-sharing blocks). OUTPUT: rule or spot rows. WHEN TO USE: video demand setup questions — 'how many ads are allowed in a break', 'which rule applies here', pod/break configuration audits.

Inputs: kind, limit, search, status, +2 more.

gam_ads_txt_diagnosticsA
Read-onlyIdempotent

MODE: read-only. UI: Admin → Ads.txt management. MCM supply-chain diagnostics: for every child-publisher domain, its ads.txt/app-ads.txt authorization state — sellers.json status both ways, parent and child inventory authorization, and the OVERALL status. The report is fetched and parsed server-side and returned as rows. OUTPUT: summary (counts by overall status across ALL domains, never truncated), items (domain rows, filterable), and downloadUrl for the raw CSV. WHEN TO USE: 'which child sites have ads.txt problems', supply-chain revenue-loss audits, onboarding checks. Filter with status=… (e.g. the non-AUTHORIZED values in summary) or search=.

Inputs: limit, search, status, network_code.

gam_ad_unit_sizesA
Read-onlyIdempotent

MODE: read-only. UI: Inventory → Ad units (sizes). The network's registered ad unit sizes: width x height, size type (PIXEL/ASPECT_RATIO/INTERSTITIAL/IGNORED/NATIVE/FLUID/AUDIO), and environment (browser/video player). OUTPUT: distinct size rows (raise limit if truncated — there is no page continuation). WHEN TO USE: 'what sizes exist on this network', validating a size before forecasting or creative work. Per-unit sizes live on gam_get_ad_unit.

Inputs: limit, environment, network_code.

gam_ad_unit_treeA
Read-onlyIdempotent

MODE: read-only, cached 1h. UI: Inventory → Ad units. The ad-unit hierarchy: id, name, code, parent, full path, status, specialAdUnit (= GAM's 'explicitly targeted' mark — only serves when targeted directly), hasChildren. Filter by name/code search, parent (direct children), or status. OUTPUT: flat rows with resolved paths — ids feed forecast/targeting inputs. WHEN TO USE: resolving ad-unit names→ids for forecasts, structure questions, finding a publisher's units. Set refresh=true after known GAM inventory changes.

Inputs: limit, offset, search, status, +4 more.

gam_audience_segmentsA
Read-onlyIdempotent

MODE: read-only. UI: Signals → Audience. List/search audience segments: id, name, status, segmentType (FIRST_PARTY/THIRD_PARTY), data provider, and sizes (total/mobileWeb/idfa/adId/ppid). OUTPUT: segment rows; ids (8+ digits) feed forecast audience_segment_ids. WHEN TO USE: resolving segment names→ids before audience-targeted forecasts — never guess segment ids.

Inputs: limit, search, status, page_token, +2 more.

gam_change_historyA
Read-onlyIdempotent

MODE: read-only. UI: Admin → Change history. Who changed what, when: GAM's change log (PQL Change_History) — entity type/id, CREATE/UPDATE/DELETE, timestamp, user. Both date bounds are REQUIRED (the table refuses open-ended scans). Newest first; page with before_id (no offset support in this table). User names resolved when available; entity names resolved for LINE_ITEM/AD_UNIT/PLACEMENT (other types return ids — look them up with their find/get tools). OUTPUT: change rows. WHEN TO USE: 'who paused this line item', 'what changed on order X this week', audit questions. NOTE: the log records THAT an entity changed, not field-level diffs.

Inputs: end_date (required), start_date (required), limit, user_id, +4 more.

gam_check_pacingA
Read-onlyIdempotent

MODE: read-only, instant (live line-item stats — no report job). UI: Delivery → Delivery tools. Pacing verdicts for one line item or a whole order: AHEAD (≥105% of expected) / ON_PACE (95–105%) / BEHIND (80–95%) / AT_RISK (<80%) / COMPLETED / NOT_DELIVERING / NO_GOAL. Uses GAM's own delivery indicator (expected vs actual %, correct for all goal types incl. DAILY/CPD) with elapsed-time math as fallback. OUTPUT: per-line-item rows with expected/actual %, pacing ratio, 7-day daily delivery series, days remaining, missing-creatives flag; order mode adds a verdict summary. WHEN TO USE: 'how is campaign X pacing', daily delivery checks, finding under-delivering items. For 'will it catch up' simulations use gam_forecast_existing_line_item.

Inputs: order_id, line_item_id, network_code, only_problems.

gam_child_publishersA
Read-onlyIdempotent

MODE: read-only. UI: Multiple Customer Management. MCM child publishers: name, email, child network code, approval/account/invitation status, delegation type (MANAGE_ACCOUNT/MANAGE_INVENTORY), parent revenue share %, seller id, verification + onboarding readiness. Pass earnings_month (YYYY-MM) to INSTEAD fetch that month's MCM EARNINGS per child — total earnings, parent payment, child payment, deductions (currency-converted). OUTPUT: child publisher rows, or earnings rows. WHEN TO USE: MCM roster/status checks, onboarding audits, 'what did we earn from child X in July'.

Inputs: limit, search, page_token, network_code, +1 more.

gam_cms_metadataA
Read-onlyIdempotent

MODE: read-only. UI: Video → Content metadata. The CMS key/value pairs that classify video content — the content-side equivalent of key-values (gam_targeting_keys/gam_targeting_values). kind=keys lists the metadata keys; kind=values lists values (filter by key_id for one key's values). OUTPUT: key or value rows. WHEN TO USE: understanding how video content is tagged, resolving cmsMetadataValue ids seen on content or line-item targeting.

Inputs: kind, limit, key_id, search, +2 more.

gam_companiesA
Read-onlyIdempotent

MODE: read-only. UI: Admin → Companies. List/search the network's companies. kind=companies (default) id, name, type, CREDIT STATUS (ACTIVE/ON_HOLD/STOP/BLOCKED — ON_HOLD/STOP/BLOCKED affect serving/booking), email/phone, external ids, teams. include_contacts joins each company's contact people (one extra call). OUTPUT: company rows — ids resolve the advertiser on orders (gam_find_orders advertiser_id). kind=third_party lists ad-technology/third-party companies (vendor type + status); kind=rich_media lists rich-media ads companies with their GVL id, GDPR status and policy URL (TCF/consent questions). WHEN TO USE: 'find advertiser X', credit-status checks before booking, agency lookups, contact info, resolving ad-tech vendor names, consent/GVL vendor questions.

Inputs: kind, type, limit, search, +5 more.

gam_creative_configA
Read-onlyIdempotent

MODE: read-only. Creative DELIVERY configuration. kind=native_styles (UI: Delivery → Native) — native templates with size, creative template, targeting presence and whether HTML/CSS snippets are set; kind=wrappers — creative wrappers (tracking HTML/AMP injected around creatives, their label, ordering and type); kind=sets — creative sets pairing a master creative with companions (video companion setups). OUTPUT: config rows. WHEN TO USE: 'why is extra tracking on this creative' (wrappers), native format inventory, video master/companion pairings. The creatives themselves are on gam_find_creatives.

Inputs: kind, limit, search, status, +2 more.

gam_creative_templatesA
Read-onlyIdempotent

MODE: read-only. UI: Delivery → Creatives (formats). Creative templates (system + user-defined): id, name, type, status, capability flags (safe-frame/native/interstitial), and each template's VARIABLES (unique name, kind, required) — the fields a creative built from the template must fill. Pass template_id for one template incl. its HTML snippet. OUTPUT: template rows. WHEN TO USE: 'what custom creative formats exist' (type CUSTOM = user-built), template variable lookups before building/debugging template-based creatives (gam_find_creatives for the creatives themselves).

Inputs: type, limit, search, page_token, +2 more.

gam_diagnose_line_itemA
Read-onlyIdempotent

MODE: read-only, composite. UI: Delivery → Delivery tools. One-call troubleshooting of 'why is this line item not delivering (properly)': lifecycle status, flight window, order approval state, creative associations + expected-size coverage, targeting presence, pacing verdict, and who changed it in the last 7 days. Pass include_forecast=true to also run an inventory/contention forecast (costs forecast quota; READY/DELIVERING/DELIVERY_EXTENDED items only). OUTPUT: verdict (BROKEN = a cannot-serve blocker exists, IMPAIRED = warnings only, HEALTHY) + likely_causes + per-check detail + checks_skipped when sub-lookups failed. WHEN TO USE: any 'line item X is not serving / under-delivering, why?' question. For deeper follow-ups use gam_get_line_item, gam_line_item_creatives, gam_check_pacing, gam_change_history.

Inputs: line_item_id (required), network_code, include_forecast.

gam_diagnose_orderA
Read-onlyIdempotent

MODE: read-only, composite. UI: Delivery → Orders / Delivery tools. One-call troubleshooting of a whole ORDER: approval/lifecycle state, per-line-item pacing verdict summary (AHEAD/ON_PACE/BEHIND/AT_RISK/…), missing-creatives count, the worst problem items, and who changed the order in the last 7 days. OUTPUT: verdict (BROKEN = the order itself cannot serve, IMPAIRED = items under-delivering or missing creatives, HEALTHY) + likely_causes + summaries. WHEN TO USE: 'why is campaign/order X under-delivering', order health checks. Per-line-item depth: gam_diagnose_line_item.

Inputs: order_id (required), network_code.

gam_find_advertiserA
Read-onlyIdempotent

MODE: read-only. UI: Admin → Companies + Delivery → Orders. START HERE for any question about a BRAND or ADVERTISER by name ('how is Acme doing', 'what are we running for Harald Hardware'). Resolves the name to every matching advertiser company — including near-matches, because advertiser names in GAM contain typos — and returns each one's ORDERS with delivery totals in a single call. OUTPUT: advertisers[] with id, name, type, creditStatus, matchQuality (exact/contains/near), their orders (id, name, status, programmatic, dates, delivered) and a per-advertiser rollup. WHY NOT gam_find_line_items(search=…): that matches LINE ITEM names only, so it silently misses orders whose line items are named generically ('Mobile / desktop') — it under-scopes without saying so. NEXT: gam_find_line_items(order_id=…) for line items, gam_diagnose_order for health.

Inputs: name (required), network_code, include_orders, max_advertisers, +1 more.

gam_find_creativesA
Read-onlyIdempotent

MODE: read-only. UI: Delivery → Creatives. Search creatives network-wide: by name substring, advertiser, specific ids, or exact size. OUTPUT: creative rows — id, name, type (ImageCreative/ThirdPartyCreative/Html5Creative/…), size, advertiser id, standalone preview URL, last modified. WHEN TO USE: 'find the creative called X', 'all creatives for advertiser Y', size audits. Creatives ON a specific line item (incl. preview-on-page) live on gam_line_item_creatives.

Inputs: size, limit, offset, search, +3 more.

gam_find_line_itemsA
Read-onlyIdempotent

MODE: read-only. UI: Delivery → Line Items. Search line items by name, order, status, type (STANDARD/SPONSORSHIP/PRICE_PRIORITY/AD_EXCHANGE/NETWORK/HOUSE/…), cost type (CPM/CPC/CPD/…), missing-creatives flag, external id, or live-on date. OUTPUT: compact rows — id, name, order id+name, type, status, costType + rate, priority, dates, goal, delivered counts (live stats, no report needed), missingCreatives. WHEN TO USE: finding line items for pacing/troubleshooting/forecast-by-id; 'all CPD sponsorships live this week'; 'line items missing creatives'. To search by advertiser: find their orders first (gam_find_orders), then filter by order_id here.

Inputs: limit, search, status, order_id, +8 more.

gam_find_ordersA
Read-onlyIdempotent

MODE: read-only. UI: Delivery → Orders. Search orders by name, advertiser, status, team, trafficker, or programmatic flag. OUTPUT: compact rows — id, name, advertiser/agency ids, trafficker/salesperson user ids, status, dates, team ids (applied + effective), delivered totals (impressions/clicks/viewable, live). Ids resolve to names via gam_companies (advertisers), gam_teams, gam_users — raw GAM data only, no naming interpretation. WHEN TO USE: 'orders for advertiser X', team-flag checks, finding an order before drilling into its line items (gam_find_line_items with order_id).

Inputs: limit, search, status, team_id, +6 more.

gam_find_placementsA
Read-onlyIdempotent

MODE: read-only. List/search the network's placements (named groups of ad units used for targeting): id, name, code, status, description, and the ad unit ids they contain. OUTPUT: placement rows. WHEN TO USE: 'what placements exist', resolving placement targeting on line items, checking which units a placement bundles. Reverse direction (unit → placements) lives on gam_get_ad_unit.

Inputs: limit, search, status, page_token, +2 more.

gam_find_proposalsA
Read-onlyIdempotent

MODE: read-only. UI: Sales → Proposals. Search proposals (sales agreements, incl. programmatic/Marketplace deals): id, name, programmatic flag, status (DRAFT/PENDING_APPROVAL/APPROVED/REJECTED), Marketplace negotiation status, sold flag, linked GAM order id, advertiser/agency company ids, flight, currency. OUTPUT: proposal rows. WHEN TO USE: 'open proposals with buyer X', deal-pipeline questions, finding the proposal behind an order. Full detail + proposal line items: gam_get_proposal.

Inputs: limit, offset, search, status, +3 more.

gam_forecast_adjustmentsA
Read-onlyIdempotent

MODE: read-only. Traffic forecast SEGMENTS and the manual ADJUSTMENTS applied to them — i.e. whether GAM's forecasts for a slice of inventory are being overridden by hand (expected volume set daily, as a total, or derived from a historical period with a multiplier). kind=segments lists the defined traffic segments; kind=adjustments lists the overrides, with date range, status, volume type and the configured volumes. OUTPUT: segment or adjustment rows. WHEN TO USE: when a forecast looks wrong or suspiciously round — check whether an adjustment is driving it; auditing who is shaping forecasts. Pairs with gam_traffic_data (the resulting numbers) and gam_forecast_availability (the bookable answer).

Inputs: kind, limit, offset, segment_id, +1 more.

gam_forecast_availabilityA
Read-onlyIdempotent

MODE: read-only compute (creates no entities). UI: Inventory → Traffic forecast. Availability forecast for a PROSPECTIVE booking: how many impressions are available/matched/possible for given dates, sizes and targeting — the pre-booking inventory check. Targeting SHOULD be explicit (ad units and/or placements; optional geo, key-values, audience segments, device categories). If NO targeting is given at all, the forecast falls back to the network root ad unit (run-of-network) and the response carries defaults_applied. Simulates a CPM line item with a LIFETIME impressions goal. Self-heals invalid targeting ids (stale key-values, untargetable geo) by removing them, retrying, and reporting what was removed under selfHealed. OUTPUT: available/matched/possible/delivered/reserved units, goal achievability when goal_impressions is set, optional contending line items, per-criteria and per-size breakdowns. NOT the same as gam_forecast_existing_line_item (that one forecasts an EXISTING line item by id).

Inputs: sizes (required), end_date (required), start_date (required), network_code, +14 more.

gam_forecast_deliveryA
Read-onlyIdempotent

MODE: read-only compute. Delivery forecast for EXISTING line items simulated TOGETHER: for each id, the predicted delivery units given contention from the others (and the rest of the network), plus delivered so far and total matched inventory. Optionally ignore specific line items from the simulation. OUTPUT: per-line-item {predictedDeliveryUnits, deliveredUnits, matchedUnits, predictedShareOfMatched}. WHEN TO USE: 'will these campaigns starve each other', 'how much will LI X actually deliver by flight end'. NOT the same as gam_check_pacing (past delivery vs expectation) or gam_forecast_availability (a NEW booking).

Inputs: line_item_ids (required), network_code, ignored_line_item_ids.

gam_forecast_existing_line_itemA
Read-onlyIdempotent

MODE: read-only compute. UI: Inventory → Traffic forecast. Availability forecast for an EXISTING line item by id — can it (still) reach its goal, and what contends with it? GAM supports this for SPONSORSHIP and STANDARD line items only. OUTPUT: available/matched/possible/delivered/reserved units + contending line items (on by default). NOT the same as gam_forecast_availability (that one forecasts a hypothetical new booking).

Inputs: line_item_id (required), network_code, include_targeting_breakdown, include_contending_line_items.

gam_geo_lookupA
Read-onlyIdempotent

MODE: read-only. UI: geo targeting picker. Look up Google Ad Manager geo criteria IDs for geo targeting (forecasts, line items): countries, regions, municipalities, cities, districts, postal codes. Denmark, Sweden and Norway answer instantly from a local pack; ANY other country falls back to the live API automatically (pass a country_code outside DK/SE/NO, or live=true, to force it). IMPORTANT: names are ENGLISH ('Copenhagen', not 'København'). OUTPUT: per search term, matches with {id, name, type, countryCode, targetable} and the source that answered it — pass ids into forecast geo targeting. WHEN TO USE: before any geo-targeted forecast; to resolve a location name to its GAM criteria id.

Inputs: search (required), live, type, limit, +2 more.

gam_get_ad_unitA
Read-onlyIdempotent

MODE: read-only. UI: Inventory → Ad units. Full detail for ONE ad unit: code, status, full parent path, supported sizes (with size type + environment), explicitly-targeted flag, applied/effective labels and label frequency caps, teams, refresh settings, AdSense flags — plus which PLACEMENTS contain it (reverse lookup). OUTPUT: one ad unit record. WHEN TO USE: 'what sizes does unit X support', 'which placements include it', label/frequency questions on a specific unit. For browsing the hierarchy use gam_ad_unit_tree.

Inputs: ad_unit_id (required), network_code, include_placements.

gam_get_line_itemA
Read-onlyIdempotent

MODE: read-only. UI: Delivery → Line Items. Everything about ONE line item: identity, flight dates, cost + rate, goal, priority, creative placeholders (expected sizes), frequency caps, live delivered stats + 7-day daily delivery series + delivery indicator (expected vs actual %), labels, custom fields, notes — and the full targeting object (include_targeting=false to trim). OUTPUT: one detailed record. WHEN TO USE: troubleshooting ground truth for a specific line item; inputs for pacing analysis. NOT the same as gam_find_line_items (search) or gam_forecast_existing_line_item (future availability).

Inputs: line_item_id (required), network_code, include_targeting.

gam_get_orderA
Read-onlyIdempotent

MODE: read-only. UI: Delivery → Orders. One order in full: identity, advertiser/agency, trafficker/salesperson, teams, dates, delivered totals — plus its line items (compact rows with per-item status, goal, delivered) and a rollup (count by status, delivered totals across the listed items, missing-creatives count). WHEN TO USE: the order-level view for pacing/troubleshooting; before diagnosing a campaign.

Inputs: order_id (required), network_code, include_line_items.

gam_get_proposalA
Read-onlyIdempotent

MODE: read-only. UI: Sales → Proposals / Proposal line items. ONE proposal in full: header (status, negotiation status, advertiser/agencies, salespeople/trafficker ids, flight, currency, sold/archived) PLUS its PROPOSAL LINE ITEMS — per line: computed status, type, rate type, NET RATE + NET COST (converted to currency), goal, flight, linked GAM line item id, reservation status. OUTPUT: proposal + proposalLineItems. WHEN TO USE: deal detail, 'what's in proposal X and what does it cost', mapping proposal lines to delivering line items (lineItemId → gam_get_line_item / gam_check_pacing).

Inputs: proposal_id (required), network_code.

gam_labelsB
Read-onlyIdempotent

MODE: read-only. The network's labels: id, name, description, types (AD_EXCLUSION/COMPETITIVE_EXCLUSION/AD_UNIT_FREQUENCY_CAP/CANONICAL_CATEGORY/CREATIVE_WRAPPER), active flag. OUTPUT: label rows — ids resolve appliedLabels on ad units (gam_get_ad_unit), companies, line items. WHEN TO USE: resolving label ids→names, auditing competitive-exclusion or frequency-cap labels.

Inputs: limit, search, page_token, network_code, +1 more.

gam_line_item_creativesA
Read-onlyIdempotent

MODE: read-only. UI: Delivery → Creatives. The creatives actually associated with a line item: per association — creative id/name/type/size, association status (ACTIVE/INACTIVE), size overrides, flight overrides, destination URL, and the creative's standalone preview URL. Pass preview_site_url to ALSO get PREVIEW-ON-PAGE links (the creative injected on that exact page — first 5 active creatives). OUTPUT: association rows joined with creative details. WHEN TO USE: 'which creatives serve on this line item', creative-size vs placeholder checks, preview links for sales teams and clients. NOT the same as gam_get_line_item (that shows expected placeholders, not actual creatives).

Inputs: line_item_id (required), network_code, preview_site_url.

gam_line_item_templatesB
Read-onlyIdempotent

MODE: read-only. The network's line item templates — the presets AdOps traffics new line items from: template name, whether it is the default, the line item name pattern, type, delivery rate type, roadblocking, creative rotation, same-advertiser-exception flag and notes. OUTPUT: template rows. WHEN TO USE: understanding how new line items get their defaults; explaining why booked items share settings. SOAP-only (no REST equivalent).

Inputs: limit, offset, network_code.

gam_mobile_appsB
Read-onlyIdempotent

MODE: read-only. UI: Inventory → Apps. The network's claimed mobile applications: name, application code, app store id(s), platform, approval status, developer, download URL. OUTPUT: app rows. WHEN TO USE: 'is app X claimed/approved', app inventory setup checks, resolving in-app ad unit ownership.

Inputs: limit, search, page_token, network_code, +1 more.

gam_network_infoA
Read-onlyIdempotent

MODE: read-only. UI: Inventory → Network settings. Returns Google Ad Manager network ground truth: network code, display name, timezone, currency, root ad unit id (used as forecast fallback), test-network flag — plus this server's configuration echo (API versions, rate limits, credential status). WHEN TO USE: at the start of a session to ground timezone/currency for all numbers, or to verify connectivity.

Inputs: network_code.

gam_pql_queryA
Read-onlyIdempotent

MODE: read-only. Run a PQL SELECT against GAM's Publisher Query Language tables (Line_Item incl. its full Targeting column for reverse targeting lookups, Ad_Unit, Placement, Programmatic_Buyer, Audience_Segment, Exchange_Rate, Browser, Device_Category, Mobile_Device, Time_Zone, Child_Publisher, MCM_Earnings, …). Column/table names are identifier-validated; literal VALUES must go in the values map (bind variables — quotes in where are rejected). OUTPUT: columns + row arrays; int64s beyond 2^53 stay strings. WHEN TO USE: data the 'find' tools don't expose, e.g. 'which line items target key X' (SELECT Id, Name, Targeting FROM Line_Item WHERE CustomTargeting LIKE …); struct columns like Targeting return as JSON. LIMITS: DateTime columns can't be filtered here (binds are text/number/boolean only); for paging beyond one page pass order_by — PQL row order is unstable without it. NOT for Change_History — use gam_change_history (it handles that table's special pagination rules).

Inputs: table (required), limit, where, offset, +5 more.

gam_private_auctionsA
Read-onlyIdempotent

MODE: read-only. UI: Sales → Private auctions. Private auctions and (optionally) their DEALS. Auction rows: id, name, description, archived, seller contacts. With include_deals or auction_id: deal rows — buyer account, status, FLOOR PRICE (converted to currency), deal priority, creative sizes, external deal id. OUTPUT: auctions (+deals). WHEN TO USE: 'what private auctions run', floor-price reviews, 'which buyers have deals on X'. Programmatic PROPOSALS (PG/preferred deals) live on gam_find_proposals.

Inputs: limit, search, auction_id, page_token, +3 more.

gam_programmatic_buyersA
Read-onlyIdempotent

MODE: read-only. Who is buying programmatically. kind=buyers lists PROGRAMMATIC BUYERS — buyer account id, parent account, agency flag, and whether preferred deals / programmatic guaranteed are enabled for them (UI: Delivery → Bidders, buyer side); kind=partners lists partner companies with credit status. OUTPUT: buyer or partner rows. WHEN TO USE: resolving the buyerAccountId seen on private auction deals (gam_private_auctions) and proposals (gam_find_proposals) to a real buyer name; deal-desk questions.

Inputs: kind, limit, search, page_token, +1 more.

gam_report_metadataA
Read-onlyIdempotent

MODE: read-only, local catalog (no API call, instant). The exact report vocabulary for gam_run_report: dimension names, metric names, relative date ranges, and the REPORT TYPES that scope them. SCOPE FIRST: every report type has its OWN compatible dimensions and metrics — a HISTORICAL metric in an AD_SPEED report is rejected by the API. Pass report_type (accepts plain words like 'speed', 'reach', 'delivery') so you only ever see names that will actually work together. TIERS: omit names for a cheap list (name + one-line summary); pass names=[…] for full descriptions, data format and compatibility of specific entries; kind=report_types lists the scopes themselves. OUTPUT: matching entries with name, summary, dataFormat and reportTypes. WHEN TO USE: ALWAYS before composing a custom gam_run_report — names are case-sensitive enums and must match exactly. Reports accept at most 10 dimensions.

Inputs: kind (required), limit, names, offset, +3 more.

gam_run_reportA
Read-onlyIdempotent

MODE: read-only compute. UI: Reporting → Interactive reports. (creates a HIDDEN, API-only report definition, reused across identical runs; invisible in the UI, no entity changes.) Run a Google Ad Manager Interactive Report and return the rows. Either pick a preset ('ad_unit_totals' = Ad unit × totals: total impressions + total (CPM/CPC/CPD) revenue per ad unit for the date range; 'delivery_detail' = Advertiser × order × line item × date (with ids): impressions, revenue, eCPM, clicks, CTR, viewability rate; 'ad_speed' = AD SPEED: date × ad unit (levels 2-3) with tag-load→first-ad-request and DOM-load→tag-load latency buckets; 'ad_unit_fill_rate' = Ad unit (full hierarchy path) × date: fill rate + ad requests) or supply explicit dimensions + metrics — exact enum names from gam_report_metadata (max 10 dimensions). Date range: date_range_relative (enum from gam_report_metadata kind=date_ranges, e.g. YESTERDAY, LAST_30_DAYS) OR start_date+end_date. Money metrics are returned in currency units (converted from micros exactly once; see valueNotes). Self-heals dimension/metric incompatibility by retrying with expanded compatibility. Reports run asynchronously — expect seconds to a couple of minutes. KEY-VALUES / CUSTOM FIELDS: dimensions like CUSTOM_DIMENSION__VALUE need their key id passed in the matching array — custom_dimension_key_ids, line_item_custom_field_ids, order_custom_field_ids, creative_custom_field_ids, cms_metadata_key_ids, ekv_dimension_key_ids — at index N. gam_report_metadata names which array and slot each dimension reads; gam_targeting_keys gives the id. FILTERS: where narrows by DIMENSION value and is applied BY GAM, server-side — use it to make a report small (e.g. where=[{dimension:"ORDER_ID",values:["1234567890"]}] took 5,152 rows to 2). having narrows by METRIC value but is applied CLIENT-SIDE to the rows fetched, because GAM accepts metric filters and then ignores them — so a having result is only complete when every row was fetched; the response reports havingScannedRows/havingMatchedRows and flags havingIncomplete when it was not. Narrow with where first, then use having. Clauses AND together; match_any=true ORs the where clauses. WHEN TO USE: any 'how did X perform' question against the ad server. Filter rather than pulling thousands of rows and aggregating client-side.

Inputs: where, having, preset, metrics, +16 more.

gam_saved_reportsA
Read-onlyIdempotent

MODE: read-only compute. UI: Reporting → Interactive reports (saved/shared). WITHOUT report_id: list the saved reports visible to this integration — UI reports shared at network level plus API-created ones (visibility filter: VISIBLE = UI-visible saved reports, HIDDEN = API-only). WITH report_id: RUN that saved report using its OWN stored definition (dimensions, metrics, date range, report type — AD_SPEED and other non-HISTORICAL types included) and return rows + computed totals, money in currency units. WHEN TO USE: running the team's curated UI report templates; discovering what saved reports exist. For ad-hoc dimension/metric combinations use gam_run_report.

Inputs: limit, search, max_rows, report_id, +4 more.

gam_sitesA
Read-onlyIdempotent

MODE: read-only. UI: Inventory → Sites. The network's registered sites: url, approval status, disapproval reasons, and ORIGIN — own & operated (no childNetworkCode) vs a child publisher's site (childNetworkCode set, MCM). OUTPUT: site rows. WHEN TO USE: 'is site X approved', O&O vs child inventory questions, onboarding/approval audits. Child publisher detail lives on gam_child_publishers.

Inputs: limit, origin, search, page_token, +2 more.

gam_submit_feedbackA

MODE: write, but ONLY to this server's own feedback log — it touches no Google Ad Manager data. Report friction you hit while using these tools: a field or filter you expected and could not find, a confusing or unhelpful error, a tool that behaved differently from its description, two tools that disagreed about the same entity, or a question you could not answer with the catalogue as it stands. WHEN TO USE: once at the END of a task, whether you finished it or gave up. Skip it when the run went smoothly — silence is useful signal too. Include what you were trying to do, what you expected, and what you got; name the tools and the ids involved so it can be reproduced. DO NOT include personal data about the user: describe the problem, not the person.

Inputs: message (required), severity (required), tools, wrong_answer.

gam_suggested_ad_unitsA
Read-onlyIdempotent

MODE: read-only. Ad units GAM SUGGESTS creating, derived from ad requests that arrived for codes not yet defined in your inventory: weekly request volume, the code path that would be created, where it would hang off existing inventory, target platform/window and the sizes seen. OUTPUT: suggestion rows, highest volume first is not guaranteed — sort client-side on weeklyRequestCount. WHEN TO USE: inventory-gap discovery — 'are we losing requests to undefined ad units'. Existing inventory is on gam_ad_unit_tree.

Inputs: limit, page_token, network_code.

gam_targeting_keysA
Read-onlyIdempotent

MODE: read-only. UI: Inventory → Key-values. List/search the network's custom targeting keys (key-values): id, code (adTagName), display name, type (PREDEFINED/FREEFORM), status, and REPORTABILITY. reportableType is GAM's own value: ON = usable via the KEY_VALUES_NAME dimension; CUSTOM_DIMENSION = usable as its OWN report dimension (CUSTOM_DIMENSION__VALUE, passing this key id to gam_run_report custom_dimension_key_ids); OFF = not in reports at all. reportableVia spells out which. value-level reporting. OUTPUT: key rows; ids feed gam_targeting_values, forecast custom_targeting, and key-value reporting. WHEN TO USE: resolving a key name/code to its id; checking which keys are reportable.

Inputs: limit, search, status, page_token, +1 more.

gam_targeting_valuesA
Read-onlyIdempotent

MODE: read-only. UI: Inventory → Key-values. List/search the values under ONE custom targeting key (key_id required — the GAM API is key-scoped; big keys hold 100k+ values, so always search or paginate). OUTPUT: value rows (id, code, display name, matchType, status); ids feed forecast custom_targeting and key-value report filters. WHEN TO USE: resolving value names→ids for a known key (get key_id from gam_targeting_keys first).

Inputs: key_id (required), limit, search, page_token, +1 more.

gam_taxonomy_categoriesA
Read-onlyIdempotent

MODE: read-only. The IAB/Google TAXONOMY categories used to classify content and audience: id, name, full ancestor path, taxonomy type, and whether the node is grouping-only (not directly assignable). OUTPUT: category rows with their hierarchy path. WHEN TO USE: resolving taxonomy ids seen on content, audience segments or publisher-provided signal mappings (gam_admin_config).

Inputs: limit, search, page_token, network_code.

gam_teamsA
Read-onlyIdempotent

MODE: read-only. UI: Admin → Access & authorisation. List/search the network's teams: id, name, description, access type, all-companies/all-inventory flags, status. OUTPUT: team rows — ids resolve the teamIds on orders (gam_find_orders) and companies. Team MEMBERSHIP (which users) lives on gam_users (team_id param). WHEN TO USE: resolving team ids→names on orders/advertisers; listing the team structure.

Inputs: limit, search, status, page_token, +1 more.

gam_technology_targetsA
Read-onlyIdempotent

MODE: read-only. The network's TECHNOLOGY TARGETING catalogs — the ids you pass as device/browser/OS targeting on forecasts and line items. One tool, pick a kind: browsers, browser_languages, bandwidth_groups, device_capabilities, device_categories, device_manufacturers, mobile_carriers, mobile_devices, mobile_device_submodels, operating_systems, operating_system_versions (NOTE: version rows carry no parent-OS reference — GAM does not expose one on that resource). OUTPUT: id + name rows (plus kind-specific detail: browser/OS version numbers, carrier region, device manufacturer). WHEN TO USE: resolving a device/browser/OS name to the id targeting needs, or listing what can be targeted. Geo targets live on gam_geo_lookup; key-values on gam_targeting_keys.

Inputs: kind (required), limit, search, page_token, +1 more.

gam_traffic_dataA
Read-onlyIdempotent

MODE: read-only compute (forecast quota). UI: Traffic explorer / Traffic forecast. Historical AND forecasted DAILY traffic for a segment of inventory, plus the portion already assigned to reservations — the sell-through / planning view: 'how much of this inventory do we have, how much is already sold, and what is coming?' Targeting is the same shape as gam_forecast_availability (ad units, placements, geo, key-values, audience segments, device categories); with no targeting it falls back to run-of-network and says so in defaults_applied. OUTPUT: three daily series (historical, forecasted, forecasted-assigned) each with values[], total and daily average, plus the overall date range. WHEN TO USE: inventory planning, sell-through checks, 'do we have room in November', trend questions that need BOTH past and future. For a specific bookable answer (can we sell X impressions) use gam_forecast_availability; for a booked line item use gam_forecast_existing_line_item.

Inputs: end_date (required), start_date (required), network_code, custom_targeting, +7 more.

gam_usersA
Read-onlyIdempotent

MODE: read-only. UI: Admin → Access & authorisation. List/search the network's users: id, name, email, role, active + service-account flags — and optionally their team memberships (include_teams) or only the members of one team (team_id). OUTPUT: user rows; ids resolve trafficker/salesperson on orders. WHEN TO USE: 'who is on team X', resolving trafficker ids→names, finding a colleague's user id.

Inputs: limit, offset, search, team_id, +5 more.

gam_video_contentA
Read-onlyIdempotent

MODE: read-only. UI: Video → Content. The video CONTENT library that video line items target: kind=content lists individual videos (status, duration, ingest status for HLS/DASH, CMS source, the content bundles and CMS metadata values attached); kind=bundles lists the named content groups used as targeting units; kind=labels lists content labels used for exclusions. OUTPUT: content/bundle/label rows. WHEN TO USE: video demand questions — 'what content can this video campaign target', ingest/availability checks, resolving contentBundle ids seen on line-item targeting. The key/value pairs classifying content live on gam_cms_metadata.

Inputs: kind, limit, search, status, +2 more.

gam_yield_groupsA
Read-onlyIdempotent

MODE: read-only. UI: Delivery → Yield groups. The network's yield groups (open bidding / mediation): id, name, exchange status, format (BANNER/VIDEO_VAST/NATIVE/…), environment (WEB/MOBILE/VIDEO_VAST), inventory-targeting counts (targeted/excluded ad units + placements), and each group's AD SOURCES — partner company id, status, manual CPM (converted to currency), dynamic-CPM override flag. OUTPUT: yield group rows. Resolve partner company ids→names with gam_companies. WHEN TO USE: 'what yield partners run on X', mediation/open-bidding setup audits, manual-CPM reviews.

Inputs: limit, offset, search, network_code.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 54 tools

    Disambiguation4/5

    The set is large but unusually well self-documented: descriptions explicitly disambiguate look-alikes (find vs get vs forecast vs diagnose, forecast_availability vs forecast_existing_line_item vs forecast_delivery, line_item_creatives vs find_creatives vs creative_config vs creative_templates). Residual ambiguity exists around catalog-style tools (gam_companies vs gam_find_advertiser vs gam_programmatic_buyers) and the generic gam_pql_query escape hatch, which overlaps with nearly every find tool.

    Naming Consistency4/5

    All names share a gam_ prefix and snake_case, with a readable verb convention: find_* for searches, get_* for single-record fetches, and bare nouns (gam_teams, gam_labels, gam_sites) for catalog listings. The bare-noun form and a few odd forms like gam_ads_txt_diagnostics and gam_admin_config break strict verb_noun predictability but remain interpretable.

    Tool Count2/5

    54 tools is far above what an agent can comfortably scan and select from in one context, even for a domain as large as Ad Manager. The `kind` parameter pattern (admin_config, creative_config, technology_targets, video_content) sensibly folds several resources into single tools, but the surface still sprawls into 54 entries where many are long-tail (ads_txt_diagnostics, suggested_ad_units, forecast_adjustments, saved_reports) that few tasks will ever touch.

    Completeness4/5

    Within its stated read-only scope the coverage is excellent: inventory hierarchy, delivery/pacing, forecasting, reporting, proposals/private auctions, video (content, CMS metadata, ad rules), MCM/child publishers, and admin config are all present with id-resolution paths. The obvious gap is the entire write/lifecycle half of ad ops — no create/update/pause/approve operations exist, so an agent can diagnose a campaign but never fix it.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      B
      maintenance
      Read-only MCP server for Google Ads, enabling querying campaigns, ad groups, ads, insights, and keywords without create/update/delete operations.
      17
      61 PyPI
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides read-only access to Google Ads account data including campaigns, ad groups, keywords, and performance reports. Enables querying via GAQL through an MCP interface.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables read-only inspection of Google Ads accounts through MCP, including account inventory, reporting, metadata, change history, and safe GAQL queries.
      Apache 2.0
    • F
      license
      A
      quality
      D
      maintenance
      Read-only MCP server that connects Claude Desktop to the publisher-side Ad Manager API so users can browse networks, saved reports, orders, and line items, and run saved reports to pull their rows into a conversation. No tool mutates data, and per-user OAuth ensures each person inherits only their existing account permissions.
      5
      -