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

google-ad-manager-mcp

by Jakob-Peters

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
JWT_SECRETNoHS256 secret for the server's own OAuth server mode on remote deployments.
GAM_JWT_ISSUERNoOptional JWT issuer for OAuth mode.
GAM_FEEDBACK_LOGNoOptional JSONL file path for gam_submit_feedback output.
GAM_JWT_AUDIENCENoOptional JWT audience for OAuth mode.
MCP_BEARER_TOKENNoShared bearer token for remote deployments, sent as Authorization: Bearer <token>.
GOOGLE_PRIVATE_KEYYesPrivate key from the Google Cloud service account JSON key.
GAM_TEST_NETWORK_CODENoOptional test Google Ad Manager network code.
OAUTH_AUTHORIZATION_SERVERNoAuthorization server URL for OAuth mode on remote deployments.
GOOGLE_SERVICE_ACCOUNT_EMAILYesGoogle Cloud service account email for the Ad Manager API.
GOOGLE_AD_MANAGER_NETWORK_CODEYesGoogle Ad Manager network code.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Google Ad Manager, read-only. Every tool reads live GAM data for one network; nothing here mutates anything.

ROUTING — pick by question, not by entity: · "how did X perform" → gam_run_report (ad-hoc) or gam_saved_reports (the team's saved UI reports, incl. ad speed) · "can we sell / do we have inventory" → gam_forecast_availability; "how much traffic do we have and how much is already sold" → gam_traffic_data · "why isn't this delivering" → gam_diagnose_line_item / gam_diagnose_order (composite: they already check status, flight, order state, creatives, targeting, pacing and recent changes — prefer them over assembling those calls yourself) · "is it on track" → gam_check_pacing · "who changed this" → gam_change_history · anything not exposed as a tool → gam_pql_query (PQL SELECT, bind variables only)

IDS — never guess one. Resolve names to ids first: gam_ad_unit_tree / gam_get_ad_unit (ad units), gam_targeting_keys + gam_targeting_values (key-values), gam_geo_lookup (geo), gam_technology_targets (device/browser/OS), gam_companies (advertisers), gam_find_orders / gam_find_line_items. If a lookup returns nothing, say so — do not invent an id or fall back to a broader query silently.

READING RESULTS: · Money is always {amount, currency}, already converted — never scale it again. · Rates come back as fractions (0.5961 = 59.61%). · Dates are ISO; SOAP timestamps carry the network time zone ("2026-08-24T14:58:03 Europe/Berlin"). · Lists report truncated honestly and return a continuation token — if truncated, either page or say the answer is partial. · defaults_applied, valueNotes, checks_skipped and note mean the server assumed, converted or could not do something. Read them and pass the caveat on. Silence means nothing was touched. · Rows with empty dimension values in reports are GAM's unattributed bucket — ordinary rows, NOT totals. Use the computed totals field for totals.

COST: reports and forecasts are asynchronous jobs against a shared quota — they take seconds to minutes and are metered. Do not fire them speculatively or in loops; prefer one well-scoped call. Everything else is a cheap read.

VOCABULARY: the GAM UI's words appear in tool descriptions — "Key-values" = gam_targeting_keys/values, "Traffic explorer" = gam_traffic_data, "Delivery tools" = pacing/diagnose, "Ad review centre" = gam_ad_review_center. Note that large parts of the GAM UI have no API at all (Billing, Payments, Optimisation, Protections, pricing/inventory rules) — if asked for those, say they are not available through the API rather than substituting something else.

VERDICTS AND EVIDENCE: tools that judge (gam_diagnose_line_item, gam_diagnose_order, gam_check_pacing) ship the delivery figures the judgement rests on. Read them. A contradictions field means a check failed but the item is demonstrably still serving — never escalate that as broken. A notApplicable field means a number does not apply here, which is NOT the same as a zero.

DELIVERY SERIES: dailyDelivery is dated, newest last, and ends YESTERDAY in network time. It never contains a partial current day, so a drop in the final entry is a real change, not an artefact.

REPORT VOCABULARY: every report type has its OWN compatible dimensions and metrics. Call gam_report_metadata with report_type before composing a report; unscoped results mix vocabularies that cannot be used together. Unknown names come back with suggestions — use them rather than guessing again.

FEEDBACK: if these tools fight you — a filter you expected and could not find, an error that did not tell you what to do instead, two tools disagreeing about the same entity, or an answer you believe is simply wrong — call gam_submit_feedback ONCE at the end of the task, whether you finished it or gave up. Skip it when the run went smoothly. Set wrong_answer=true for a factually incorrect result; that is triaged ahead of everything else.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
gam_network_infoA

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.

gam_geo_lookupA

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.

gam_report_metadataA

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.

gam_forecast_availabilityA

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).

gam_forecast_existing_line_itemA

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).

gam_forecast_deliveryA

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).

gam_run_reportA

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.

gam_ad_unit_treeA

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.

gam_targeting_keysA

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.

gam_targeting_valuesA

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).

gam_audience_segmentsA

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.

gam_find_line_itemsA

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.

gam_get_line_itemA

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).

gam_find_ordersA

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).

gam_get_orderA

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.

gam_check_pacingA

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.

gam_teamsA

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.

gam_usersA

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.

gam_line_item_creativesA

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).

gam_pql_queryA

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).

gam_change_historyA

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.

gam_diagnose_line_itemA

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.

gam_get_ad_unitA

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.

gam_find_placementsA

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.

gam_ad_unit_sizesA

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.

gam_companiesA

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.

gam_find_advertiserA

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.

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.

gam_find_creativesA

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.

gam_yield_groupsA

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.

gam_saved_reportsA

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.

gam_find_proposalsA

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.

gam_get_proposalA

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).

gam_private_auctionsA

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.

gam_labelsB

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.

gam_sitesA

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.

gam_child_publishersA

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'.

gam_mobile_appsB

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.

gam_traffic_dataA

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.

gam_forecast_adjustmentsA

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).

gam_line_item_templatesB

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).

gam_technology_targetsA

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.

gam_video_contentA

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.

gam_cms_metadataA

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.

gam_ad_rulesA

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.

gam_taxonomy_categoriesA

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).

gam_creative_configA

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.

gam_programmatic_buyersA

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.

gam_ad_review_centerA

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.

gam_admin_configA

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.

gam_suggested_ad_unitsA

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.

gam_diagnose_orderA

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.

gam_ads_txt_diagnosticsA

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=.

gam_creative_templatesA

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).

Prompts

Interactive templates invoked by user choice

NameDescription
diagnose-deliveryFull delivery diagnosis for a line item or a whole order, with the likely causes ranked.
yesterday-performanceRevenue, impressions and eCPM for yesterday, by ad unit or by advertiser/order/line item.
inventory-availabilityAvailability forecast for a prospective booking — sizes, dates and targeting.
traffic-and-sell-throughHistorical + forecast daily traffic for a segment, and how much is already reserved.
recent-changesWho changed an order or line item lately, and what they did.
ad-speedPage and creative latency buckets — how fast ads request and load.

Resources

Contextual data attached and managed by the client

NameDescription
report-dimensionsEvery dimension available to Interactive Reports (exact enum names).
report-metricsEvery metric available to Interactive Reports (exact enum names).
report-date-rangesRelative date-range enums accepted by reports.

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.