Skip to main content
Glama
google-ads-mcp-plus

google-ads-mcp-plus

google-ads-mcp-plus

Run your Google Ads account from Claude Code. Find wasted spend, fix it, and build campaigns — in plain language, on your own machine.

License: Apache 2.0 Tests Python

pipx install git+https://github.com/monsieurgoodmood/google-ads-mcp-plus.git

claude mcp add google-ads-plus \
  --env GOOGLE_ADS_DEVELOPER_TOKEN=your_token \
  --env GOOGLE_ADS_ALLOWED_CUSTOMERS=1234567890 \
  -- google-ads-mcp-plus

Then just ask.


What it finds

Real output, first run, on a live account (figures redacted):

GOOGLE ADS AUDIT — account 123456****
Window: 30 days
Findings: 3 critical, 1 warning, 4 info

[CRITICAL] search terms
           32 search term(s) spent 874.50 EUR with no conversions.
           Review as negative keyword candidates.

[CRITICAL] FR | Search | <campaign>
           Losing 16.6% of impressions to BUDGET. Converting campaign —
           raising budget likely buys more conversions.

[WARNING]  responsive search ads
           1 RSA(s) are weak (fewer than 8 headlines / 3 descriptions).

[INFO]     change history
           12 change(s) in the last 30 days, by: <user>.

That took one command. 13 read-only checks, no configuration.


Related MCP server: Google Ads MCP Server

Then ask it to fix things

"add the wasteful search terms as negatives"

Claude returns a preview — the exact list, and a confirmation token. Nothing has changed. You read it. If it's right, you confirm, and only then is anything written.

"which campaigns are budget-limited but converting?" "create a Performance Max campaign for this landing page, 20€/day" "who changed what in this account last month?" "pause the campaign that's spending with no conversions"


Why it's safe to point an LLM at a live ad account

A model driving real spend is riskier than a human typing a command: it can misread intent, and account content (campaign names, search terms written by strangers) enters its context as text. That's a prompt-injection surface.

So the server doesn't trust the model. Five layers, all enforced in code:

Layer

Effect

Account allowlist

Any customer ID not in GOOGLE_ADS_ALLOWED_CUSTOMERS is refused. Empty list = nothing reachable.

Writes off by default

Mutations need an explicit opt-in. Setting it without an allowlist stays read-only.

Two-phase commit

Every write returns a preview + token first. The token is fingerprinted to the parameters, single-use, and expires in 10 minutes — a token issued to raise a budget to €22 cannot be replayed to set €2200.

Hard numeric limits

Budget ceiling and max change %, checked in code. nan, inf and negatives are refused rather than silently disabling the guard.

Mutation log

Every executed write appended to JSONL with before/after values.

Campaigns are always created PAUSED.

These aren't claims — the safety layer was audited adversarially (12 bypass attempts, all refused) and the failures found were fixed. Details in docs/mcp-server.md.

This does not make an LLM safe to run unattended on a large account. It makes mistakes bounded and reversible. Start read-only, on one account, with a ceiling you'd tolerate losing in a day.


Nothing is hosted. Nothing is ours.

No server, no backend, no account to create, no usage limit — there's nothing to limit. The code runs on your laptop with your credentials, and the only network calls go straight from your machine to Google's API.

No telemetry, no phone-home, no analytics. Nobody else sees your data, including the author. All ad spend, all API usage, and all consequences are yours.

That's the difference from hosted third-party MCPs, which ask you to hand your account keys to someone else's server — a real trust and data-residency decision, and often a non-starter for client work.


The 13 tools

Read — always available

Tool

What it does

server_status

Current mode, allowlist, limits. Ask for this first.

list_accounts

Accounts your credentials reach, marking which are allowlisted.

run_audit

The 13 checks, as JSON.

list_campaigns

Campaigns with budget, status, spend, conversions.

gaql_query

Any read-only GAQL SELECT. Non-SELECT refused.

validate_ad_copy / validate_pmax_assets

Character limits, offline — no account needed.

Write — opt-in, two-phase

Tool

Notes

update_campaign_budget

Bounded by ceiling and max-change %.

set_campaign_status

Pause or enable. Enabling warns that spend starts.

add_negative_keywords

Per-campaign negatives. Safest write: spend can only go down.

apply_negative_keyword_list

Shared negative list — one edit updates every linked campaign. Idempotent.

create_shopping_campaign

Standard Shopping: budget, campaign, ad group, product ad, and an exhaustive listing group tree. Created PAUSED.

create_performance_max_campaign

One atomic mutate. The preview runs the API's own validate_only, so real API errors surface before anything exists. Created PAUSED.

The 13 audit checks

Conversion tracking (goal-based and legacy) · campaigns spending with zero conversions · budget-lost impression share · rank-lost impression share · wasteful search terms · low Quality Score keywords · weak RSAs · disapproved ads · missing negatives · missing sitelinks · single-ad ad groups · auto-tagging disabled · recent change history.

Text, Markdown or JSON output. Exit code 1 on critical findings, so it works as a cron monitor. Full reference: docs/audit.md.


Scope — what it does and doesn't do

Read is unlimited. GAQL reaches every readable resource: campaigns, keywords, ads, assets, audiences, conversions, search terms, Quality Score, change history. If you can write the query, you can read it.

Write is deliberately narrow. Every additional path multiplies the surface for expensive mistakes in a tool that spends real money.

Area

Supported

Not yet

Campaign type

Search (CLI), Performance Max and Standard Shopping (MCP tools)

Display, Video, Demand Gen, App

Operation

Create; update budgets, pause/enable, add negatives

Editing existing ads, bulk restructuring

Bidding

Search: max clicks, manual CPC. PMax: max conversions / conversion value, optional tCPA or tROAS

Changing an existing campaign's strategy, portfolio strategies

Targeting

Geo, language, ad schedule, negatives

Audiences, remarketing, Customer Match, demographics, devices

Assets

Sitelinks, callouts, structured snippets, call, price, promotion (reused by ID)

Uploading new images

Extensions welcome — see Contributing — provided they keep the safety model intact.


Setup

Prerequisites: Python 3.10+, a Google Cloud project with the Google Ads API enabled, your own OAuth Desktop client (the default gcloud client is blocked for the adwords scope), and a developer token with Basic access (a test-only token cannot touch production accounts).

The OAuth setup has real, non-obvious traps: the API Center only exists on manager (MCC) accounts, --no-browser prints a second command rather than a link, and — the one that bites everyone — an OAuth consent screen left in Testing expires your refresh token every 7 days. All of it is documented step by step in docs/setup-oauth.md. Read that first; it will save you an afternoon.

gcloud auth application-default login \
  --client-id-file=CLIENT.json \
  --scopes=https://www.googleapis.com/auth/adwords,https://www.googleapis.com/auth/cloud-platform \
  --no-browser

export GOOGLE_ADS_DEVELOPER_TOKEN=YOUR_DEVELOPER_TOKEN

Configuration

Variable

Required

Purpose

GOOGLE_ADS_DEVELOPER_TOKEN

yes

Your developer token.

GOOGLE_ADS_ALLOWED_CUSTOMERS

yes

Comma-separated IDs this server may touch.

GOOGLE_ADS_MCP_ENABLE_WRITES

no

true to allow mutations. Default: read-only.

GOOGLE_ADS_LOGIN_CUSTOMER_ID

if MCC

Manager account ID.

GOOGLE_ADS_MAX_DAILY_BUDGET

no

Ceiling for any budget set here. Default 100.

GOOGLE_ADS_MAX_BUDGET_CHANGE_PCT

no

Largest single change. Default 50.

GOOGLE_ADS_MUTATION_LOG

no

JSONL log path. Default mutations.jsonl.

Set the ceiling above your existing budgets — below them, this server can never adjust those campaigns.

Other MCP clients

Works with any MCP client (Claude Desktop, Cursor, Gemini CLI). Config examples in docs/mcp-server.md.

Command line

Three commands ship with the package, for people who prefer a terminal:

google-ads-plus-audit --customer-id 1234567890 --days 90 --format markdown --output audit.md
google-ads-plus-campaign --config config.yaml --validate-only   # then --dry-run, then --live
google-ads-mcp-plus                                             # the MCP server

⚠️ The Search-campaign CLI does not share the server's safety model: no allowlist, no ceiling, no confirmation token, no log. See docs/write-layer.md.


Before you enable anything

Never put a campaign live without conversion tracking — that's blind spend. Link GA4 to Google Ads, import your key events, make the real goal biddable, and turn on auto-tagging: docs/conversions.md.

Some categories are restricted (Local Services, etc.) and need advertiser verification before serving: docs/policies.md. This project does not help with deceptive content or policy circumvention.


Tests

90 tests, fully offline — no API, no credentials:

pip install -e ".[dev]" && pytest -q

Documentation

Guide

Contents

setup-oauth.md

Credentials, end to end, with the real traps

mcp-server.md

Tools, safety model, client config

audit.md

The 13 checks, thresholds, adding your own

write-layer.md

Search campaign CLI, every flag

conversions.md

GA4 linking, auto-tagging

policies.md

Restricted categories, exemptions, EU political ads

read-mcp.md

Google's official read-only MCP

CLAUDE.md

Operating guide the agent reads before acting


Disclaimer

This is NOT an officially supported Google product. It is a community project. It complements Google's official read-only googleads/google-ads-mcp and uses the Google Ads API Python client library — both Google's work, Apache-2.0. This project is independent and not affiliated with or endorsed by Google.

Use at your own risk. You are responsible for every campaign, every euro spent, and for complying with Google Ads policies and applicable law.

License & attribution

Apache-2.0 — use, modify, distribute, and sell products built on this, including commercially and closed-source. The one obligation: keep the copyright headers and include the NOTICE file when redistributing.

Copyright 2026 ByteBerry Analytics LLC — @monsieurgoodmood. A ⭐ is appreciated, never required.

Contributing

Issues and PRs welcome. Most useful: more campaign types (Shopping, Display), bidding-strategy tools, additional audit checks, doc translations.

Two ground rules: never commit credentials, and keep the safety model intact — no PR that makes writing easier at the cost of the guardrails.

Available Tools

13 tools
add_negative_keywordsA

Add campaign-level negative keywords. Two-phase: preview, then confirm.

This is the safest write operation: negatives only ever reduce spend.

Args: customer_id: Account holding the campaign. campaign_id: Campaign to add negatives to. keywords: Terms to exclude. match_type: EXACT, PHRASE, or BROAD. Default EXACT. confirm_token: Token from the preview call. Omit for a preview.

Inputs: keywords (required), campaign_id (required), customer_id (required), match_type, +1 more. Returns: result

apply_negative_keyword_listA

Create or extend a SHARED negative keyword list. Two-phase.

Prefer this over add_negative_keywords whenever the same exclusions apply to several campaigns: one shared list means one edit updates them all, instead of duplicating negatives campaign by campaign.

Idempotent — an existing list of the same name is reused, and only missing keywords and links are added. Running it twice does nothing.

Args: customer_id: Account holding the campaigns. list_name: Name of the shared list, e.g. "Brand exclusions". keywords: Terms to exclude. campaign_ids: Campaigns the list applies to. match_type: EXACT, PHRASE, or BROAD. PHRASE is the usual choice. confirm_token: Token from the preview call. Omit for a preview.

Inputs: keywords (required), list_name (required), customer_id (required), campaign_ids (required), +2 more. Returns: result

create_performance_max_campaignA

Create a Performance Max campaign, PAUSED. Two-phase: preview, confirm.

Without a token, this validates the whole request against the API (validate_only) and returns a preview plus a confirmation token — nothing is created. Call again with the token to create it for real.

Everything goes in one atomic mutate: budget, campaign, geo/language criteria, negatives, asset group, text assets, and reused image and extension assets. If anything fails, nothing is created.

Image and extension assets are REUSED by ID — this tool never uploads images. Find existing asset IDs with gaql_query on the asset resource.

Args: customer_id: Account to create in. Must be allowlisted. campaign_name: Name of the new campaign. daily_budget: Daily budget in account currency. final_url: Landing page for the asset group. business_name: Advertiser name, max 25 characters. headlines: At least 3, each max 30 characters. long_headlines: At least 1, each max 90 characters. descriptions: At least 2, each max 90 characters. geo_target_ids: Geo target constant IDs. language_ids: Language constant IDs (1002 = French, 1000 = English). negative_keywords: Phrase-match exclusions, e.g. brand terms. marketing_image_asset_ids: Existing 1.91:1 image asset IDs. square_marketing_image_asset_ids: Existing 1:1 image asset IDs. logo_asset_ids: Existing logo asset IDs. sitelink_asset_ids: Existing sitelink asset IDs to link. callout_asset_ids: Existing callout asset IDs (max 20). bidding: maximize_conversions or maximize_conversion_value. target_cpa: Optional target CPA, account currency. target_roas: Optional target ROAS, e.g. 3.5. confirm_token: Token from the preview call. Omit for a preview.

Inputs: final_url (required), headlines (required), customer_id (required), daily_budget (required), +16 more. Returns: result

create_shopping_campaignA

Create a Standard Shopping campaign, PAUSED. Two-phase.

Builds budget, campaign, ad group, an empty product ad, and an exhaustive listing group tree: one biddable node per included value, plus a mandatory excluded catch-all for everything else.

Without a token you get a preview validated by the API; call again with the token to create it.

Args: customer_id: Account to create in. Must be allowlisted. campaign_name: Name of the new campaign. daily_budget: Daily budget in account currency. merchant_id: Merchant Center account holding the product feed. feed_label: Feed label, exactly as it appears in Merchant Center. This replaced sales_country. include_values: Values to bid on, e.g. the exact product_type strings from Merchant Center. Everything else is excluded. dimension: product_type_level1/2/3, brand, condition, or item_id. ad_group_name: Defaults to the campaign name. campaign_priority: 0 low, 1 medium, 2 high. Decides which campaign bids when several cover the same product. geo_target_ids: Geo target constant IDs. language_ids: Language constant IDs (1002 French, 1000 English). confirm_token: Token from the preview call. Omit for a preview.

Inputs: feed_label (required), customer_id (required), merchant_id (required), daily_budget (required), +8 more. Returns: result

gaql_queryA

Run a read-only GAQL query against an account.

Use this for anything the packaged tools do not cover. Only SELECT queries are accepted — this cannot modify data.

Args: customer_id: Account to query. query: A GAQL SELECT statement. limit: Maximum rows to return (default 100, hard cap 1000).

Inputs: query (required), customer_id (required), limit. Returns: result

list_accountsA

List Google Ads accounts these credentials can reach.

Returns every accessible customer ID, marking which are allowlisted for this server.

Inputs: no named parameters. Returns: result

list_campaignsA

List campaigns with their budget, status, spend and conversions.

Args: customer_id: Account to inspect. days: Metrics lookback window, ending yesterday. status: ENABLED, PAUSED, REMOVED, or ALL.

Inputs: customer_id (required), days, status. Returns: result

run_auditA

Audit an account and report what is costing money or hiding data.

Runs 12 read-only checks: conversion tracking, campaigns spending with no conversions, budget- and rank-lost impression share, wasteful search terms, low Quality Score keywords, weak RSAs, disapproved ads, missing negatives and sitelinks. Never modifies anything.

Args: customer_id: Account to audit (digits, dashes are stripped). days: Lookback window; the window ends yesterday. Default 30. min_spend: Ignore entities below this spend, in account currency.

Inputs: customer_id (required), days, min_spend. Returns: result

server_statusA

Report this server's mode, allowlisted accounts, and safety limits.

Call this first if you are unsure what the server is permitted to do.

Inputs: no named parameters. Returns: result

set_campaign_statusA

Pause or enable a campaign. Two-phase: preview, then confirm.

Args: customer_id: Account holding the campaign. campaign_id: Campaign to change. status: PAUSED or ENABLED. confirm_token: Token from the preview call. Omit for a preview.

Inputs: status (required), campaign_id (required), customer_id (required), confirm_token. Returns: result

update_campaign_budgetA

Change a campaign's daily budget. Two-phase: preview, then confirm.

Call without confirm_token to see the current value, the proposed value, and the percentage change. If it is within limits you receive a token; call again with that token to apply it.

Args: customer_id: Account holding the campaign. campaign_id: Campaign whose budget changes. new_daily_budget: New daily amount in account currency. confirm_token: Token from the preview call. Omit for a preview.

Inputs: campaign_id (required), customer_id (required), new_daily_budget (required), confirm_token. Returns: result

validate_ad_copyA

Check ad copy against Google's character limits — offline, no account.

Use this while drafting, before creating anything. Headlines must be <=30 characters, descriptions <=90, paths <=15. Counts CJK and full-width characters as two, matching the Google UI.

Inputs: headlines (required), descriptions (required), path1, path2. Returns: result

validate_pmax_assetsA

Check Performance Max TEXT assets against Google's limits — offline.

No account, no credentials needed. Use this while drafting copy, before creating anything: at least 3 headlines (30 chars), 1 long headline (90 chars), 2 descriptions (90 chars), and a business name (25 chars).

This checks text only. Creating a campaign additionally requires at least one marketing image (1.91:1), one square marketing image (1:1), and one logo — those are validated by create_performance_max_campaign, not here.

Inputs: headlines (required), descriptions (required), business_name (required), long_headlines (required), +1 more. Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 13 tools

    Disambiguation4/5

    Most tools are clearly distinct, but validate_pmax_assets and validate_ad_copy both check ad copy limits, and add_negative_keywords vs apply_negative_keyword_list have overlapping purposes (campaign-level vs shared list). These pairs could cause misselection, though descriptions clarify the differences.

    Naming Consistency5/5

    All tools follow a consistent verb_noun snake_case pattern (list_accounts, update_campaign_budget, create_performance_max_campaign, etc.). Even server_status fits as a status check. No mixed conventions or vague verbs.

    Tool Count5/5

    13 tools is well-scoped for a Google Ads management server. Each tool serves a distinct function, and the count is neither too thin nor bloated. It covers auditing, querying, campaign management, and offline validation without unnecessary redundancy.

    Completeness4/5

    The toolset covers core lifecycle operations: list, create, update (budget/status), and add negatives, plus a raw GAQL escape hatch. Missing delete operations (e.g., remove campaign, remove negative keyword) are the only notable gap, but the audit and query tools compensate for exploratory needs.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables reading and mutating Google Ads campaigns via MCP tools, and includes structured marketer workflows for search term mining, budget optimization, and weekly reviews.
      6
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that extends the official Google Ads MCP with safe, confirmed campaign administration across manager accounts, featuring immutable mutation plans, multi-step approvals, and post-write verification.
      8
      Apache 2.0
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables management of Google Ads accounts via MCP, providing read and write tools for campaigns, ad groups, keywords, assets, and more, with support for reporting and mutations.
      -