google-ads-agent
Provides tools for managing Google Ads campaigns, including building search campaigns, analyzing performance across campaigns, ad groups, and ads, and performing actions such as pausing keywords, adjusting budgets, and deleting campaigns with granular permission controls.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@google-ads-agent Show me my campaign performance over the last 30 days."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
google-ads-agent
An MCP server and autonomous agent for Google Ads: build search campaigns, analyse what they're doing, and — optionally — let it make spend-reducing changes on a schedule without a human in the loop.
28 tools. 20 are read-only. One is irreversible and can only be triggered by a person. One reaches every mutable resource in the API and is governed by a permission table rather than by hand-written logic.
The distinguishing idea is that the safety boundary is a policy engine inside the server, not instructions in a prompt. Whatever drives the tools — a cron job, an LLM, you typing — hits the same enforcement point, so the driver is a swappable detail rather than a security control.
⚠️ Disclaimer — read before using
This software modifies live advertising accounts. It can cause money to be spent, cause campaigns to stop serving, and permanently delete campaigns. You use it entirely at your own risk.
Provided "as is", without warranty of any kind. See LICENSE. The authors and contributors accept no liability for any advertising spend, lost revenue, lost data, account suspension, or other damages arising from use or misuse of this software, however caused.
You are solely responsible for everything this software does in your accounts, including in autonomous mode, where it acts without human review of individual changes.
You are responsible for your own compliance with the Google Ads API Terms of Service, the obligations attached to your developer token, and any applicable advertising, privacy, and data-protection law.
Test on a Google Ads test account first. Verify the behaviour you expect before pointing it at an account that spends money.
Campaign removal cannot be undone. Google Ads has no un-remove.
Nothing here is legal, financial, or professional advertising advice.
Not affiliated with Google. This is an independent, unofficial project. It is not created, endorsed, sponsored by, or affiliated with Google LLC. "Google", "Google Ads", and related marks are trademarks of Google LLC, used here only to identify the API this software targets.
Related MCP server: Google Ads MCP Server
Table of contents
What it does
Build. Resolve locations and languages to targeting IDs, get keyword ideas, assemble a campaign spec, validate it against the live API without writing anything, then commit it as a single atomic mutation. Campaigns are always created paused.
Analyse. Performance by campaign, ad group, or ad, segmented by network, device, or date. Per-keyword metrics with quality score. The real search queries that triggered your ads. A structural audit that needs no performance data at all. Raw GAQL when none of that fits.
Act. Turn Display expansion and search partners off, add negative keywords, pause keywords and ad groups — each gated on evidence the server measures itself, with a change budget, per-entity cooldowns, a circuit breaker, and a full audit journal that supports one-command reversal.
Delete. Remove a campaign, behind three simultaneous gates, reachable only by a human.
The safety model
Actions are tiered by spend direction, which is a mechanical property rather than a judgement call:
Tier | Actions | Rule |
autonomous |
| Can only narrow delivery. Worst case: serves too little |
propose | budgets, bids, new campaigns, RSA edits | Can increase spend, so it gets written up for a human instead of executed |
forbidden | enabling/unpausing, removing, raising budgets | No autonomous path and no proposal path |
Unknown actions fail closed to forbidden.
Six properties make that boundary real rather than decorative:
The server measures the evidence; it never accepts it from the caller. An agent that supplies its own justification can fabricate it.
add_negative_keywordsqueries the search-term data itself;set_networksqueries the network split itself.Evidence thresholds. The failure mode of automated ad management is acting on noise. A keyword with 4 clicks and no conversions is not evidence of a bad keyword. Volume floors are enforced per action type.
Conversions protect an entity, but not at any price. A
max_conversions: 0rule alone lets a single token conversion shield unlimited waste, somax_cost_per_conversionoverrides that protection.Pause, never remove. Every autonomous action stores its inverse in the journal, so
revert_last_runcan undo an entire run.Change budget and cooldowns. Caps per run and per week, plus a per-entity cooldown, because frequent changes actively degrade Smart Bidding — it needs stability to relearn.
Circuit breaker. Halts on a spend spike relative to daily budget, or inside a bidding learning period. The learning-period input comes from
change_event, counting only changes made outside the API — so the agent backs off when a person has been editing, without tripping over its own changes. If that history is unavailable the check fails open, andcheck_setupreports the gap.
The trust switch
conversion_tracking_ok defaults to false, and while it is false no
autonomous action is permitted at all.
Every autonomous decision keys off conversions. An agent running against under-firing conversion tracking does not fail loudly — it quietly pauses your best-performing keywords for lacking conversions that were never recorded.
Run conversion_actions to check. It flags the failure signatures that
matter: a primary action recording nothing, lookback windows too short to catch
your sales cycle, lead goals counting many-per-click, and conversion-based
bidding running on too little volume to model anything. If it reports nothing
HIGH, set the switch deliberately.
Full API coverage and the permission table
The tools above cover campaign construction and the four spend-reducing changes.
Everything else the Google Ads API can write is reached through one tool,
mutate, which takes a resource, an operation, and a JSON object of fields.
There are 64 mutable resources in v25, and hand-writing a tool per resource
would be unmaintainable and would swamp the tool list, so the generic path
exists instead.
That path is governed by a permission table rather than by code that understands each resource. A resource, operation or field with no rule in the table is refused. Absence means denial, which is why new API surface never becomes writable by accident: Google adding a resource does not add a rule.
Four tiers, in descending order of trust:
Tier | Meaning |
| Runs unattended, once the server has measured the evidence. Refused if it names an evidence rule the server cannot measure for that resource. |
| Runs when a human approves the exact diff in-session. Unreachable in an unattended run. |
| Never executed. Written up for a person to do. |
| Refused always, however it is confirmed. |
confirm is what makes full coverage possible without making scheduled runs
dangerous. Evidence thresholds, change budgets and circuit breakers substitute
for human judgement, so a present human approving one specific diff supplies it
directly and those checks do not apply. The tier still does, and
agent/run.sh exports ADS_AGENT_UNATTENDED=1 so a scheduled run cannot
self-approve.
Rules are specific about direction and value, because the same field is not one permission. Lowering a budget and raising it are separate grants. Setting a campaign's status to PAUSED and to ENABLED are separate grants. The most specific matching rule wins, and in a call touching several fields the strictest tier present governs the whole call.
Every update reads the current values before writing, which is not optional: it supplies the direction of a numeric change and the undo recorded in the journal. An update whose before-state cannot be read is refused rather than performed blind.
Managing permissions
ads-agent-policy edits the table through validation, and writes only the rules
that differ from the shipped seed, so git diff shows exactly what you chose to
allow.
ads-agent-policy list # what is granted now
ads-agent-policy resources # all 64 mutable resources, marked
ads-agent-policy fields campaign_budget # every field, with its rules
ads-agent-policy show campaign update --field status --value ENABLED
ads-agent-policy grant campaign_budget update --field amount_micros \
--direction increase --tier confirm --note "approved 7 Sep"
ads-agent-policy simulate campaign_budget update --field amount_micros \
--value 40000000 --current 28000000
ads-agent-policy revoke campaign_budget update --field amount_micros \
--direction increase
ads-agent-policy diff # your rules versus the seedgrant refuses to set autonomous without an --evidence rule, because an
unattended write with no volume threshold acts on noise.
The table lives at ~/.ads-agent/capabilities.yaml. The shipped seed grants
nothing autonomously, puts pausing and budget decreases at confirm, and names
the dangerous operations as forbidden so the table documents them rather than
staying silent about them.
Requirements
Python 3.11+
A Google Ads manager account. Developer tokens are issued only to manager accounts — the Admin → API Center menu does not exist on a regular account.
A developer token. Test access is immediate; Basic access is an application and is required for the Keyword Planner tools. See access tiers.
An OAuth client of type Desktop app, in a Google Cloud project with the Google Ads API enabled.
For autonomous mode only: the Claude Code CLI on
PATH. The MCP server itself works with any MCP client.For the bundled scheduler only: macOS (launchd). On Linux use cron with
agent/run.sh.
Install
git clone https://github.com/<your-account>/google-ads-agent.git
cd google-ads-agent
python3 -m venv .venv
./.venv/bin/python -m pip install -e ".[dev]"
./.venv/bin/python -m pytest -q # 90 tests, no credentials neededThe test suite is fully offline: it builds an API client with anonymous credentials and sends no requests, so it passes before you have any credentials.
Configure credentials
1. Developer token
Sign in to your manager account → Admin → API Center. Copy the token. Apply for Basic access from the same page if you need the Keyword Planner tools.
2. OAuth client
Google Cloud Console → enable the Google Ads API → Credentials → Create credentials → OAuth client ID → application type Desktop app.
Desktop app matters: it permits the loopback redirect the token script uses, so you don't have to register a redirect URI. A Web application client will reject the flow.
3. Refresh token
./.venv/bin/python scripts/get_refresh_token.py \
--client-id YOUR_ID.apps.googleusercontent.com \
--client-secret YOUR_SECRET \
--developer-token YOUR_DEV_TOKEN \
--login-customer-id 1234567890 \
--write--write produces ~/google-ads.yaml at mode 600. Without it the token is
only printed. Sign in with an account that can reach the manager account.
--login-customer-id is the manager account's ID, digits only. It selects
the hierarchy you act through, not the account you write to — that is a separate
per-call argument.
If no refresh token comes back, the Google account has already granted this client. Revoke it at myaccount.google.com/permissions and retry; Google returns a refresh token only on first consent.
Set GOOGLE_ADS_DEVELOPER_TOKEN, GOOGLE_ADS_CLIENT_ID,
GOOGLE_ADS_CLIENT_SECRET, GOOGLE_ADS_REFRESH_TOKEN, and optionally
GOOGLE_ADS_LOGIN_CUSTOMER_ID. A config file takes precedence if it exists.
Point GOOGLE_ADS_CONFIGURATION_FILE_PATH elsewhere to move it.
Use it interactively
Register the MCP server with your client. For Claude Code:
claude mcp add -s user google-ads -- \
"$PWD/.venv/bin/python" "$PWD/run_server.py"-s user matters: without it the server registers against the directory you ran
the command in and is invisible everywhere else.
Verify with claude mcp list. Note that "connected" only means the process
starts and speaks MCP — the API client is built lazily, so credential problems
surface on the first tool call, not at startup.
Then ask for what you want:
List my Google Ads accounts.
Search campaign for project management software, 30/day, targeting Spain and the United States, pointing at https://example.com/signup. Preview it first.
Audit campaign 1234567890 and show me last 30 days broken down by network.
Always look at the network split before drawing conclusions from a search
campaign's totals. Display expansion and search-partner spend are folded into
the campaign number, so a campaign that appears to be buying search traffic can
be spending most of its budget elsewhere. performance with segment="network"
is the tool for that.
Run it autonomously
1. Write your policy
mkdir -p ~/.ads-agent
cp policy.yaml.example ~/.ads-agent/policy.yamlEdit it. This file is the agent's mandate and the whole reason it can be trusted
to act unattended, so keep it in version control and review changes to it the
way you would review a permission grant. Anything omitted falls back to the
defaults in ads_agent/policy.py.
The shipped example is deliberately inert: conversion_tracking_ok is false,
so nothing autonomous will run until you verify your conversion tracking and
change it.
2. Run once by hand
./agent/run.shRead the report it writes to ~/.ads-agent/reports/. Do this before scheduling
anything.
3. Schedule it
./agent/install-schedule.sh # daily at 07:15
./agent/install-schedule.sh 6 30 # daily at 06:30
./agent/install-schedule.sh --uninstallPaths are derived from wherever the repo actually lives; nothing is hardcoded. Re-run it after moving the repo.
On Linux, add agent/run.sh to cron instead:
15 7 * * * /path/to/google-ads-agent/agent/run.shWhat a run produces
Path | Contents |
| One dated Markdown report per run: actions taken, proposals, blocked attempts, data-quality notes |
| Full transcript per run |
| Append-only audit trail. Also the input to change-budget and cooldown enforcement |
agent/prompt.md is the standing instruction set — edit it to change what the
agent looks at and how it reports.
create_campaign and remove_campaign are deliberately absent from
run.sh's allowed tools. Both are human-gated, so an unattended run must not be
able to reach them.
Undoing a run
revert_last_run for account 1234567890It replays the inverse operations stored in the journal: re-enabling what was paused and removing negatives the agent itself added. Campaign removals are recorded with an explicitly empty inverse, so they report as unrevertible rather than appearing to be undone.
Tool reference
Build
Tool | Writes | Purpose |
| Accessible accounts with currency, time zone, manager/test flags | |
| Location name → numeric geo target ID | |
| Lint locally, then | |
| ✓ | Commit a previewed spec atomically, always paused |
| Account inventory | |
| Full read-back: settings, targeting, ad groups, keywords, RSA assets, ad strength |
create_campaign requires a confirm_token that only a successful
preview_campaign in the same process can mint. Campaign status is hardcoded to
PAUSED with no parameter to override it, and the whole campaign goes in one
mutation with partial_failure off — there is no path to a half-built campaign
that sits invisible until it spends.
Analyse
Tool | Purpose |
| Metrics by campaign, ad group, or ad. |
| Per-keyword metrics with quality score, sorted by cost. |
| The real queries that triggered ads, with added/excluded status. |
| Structural review — targeting gaps, Display expansion left on, thin RSAs, poor ad strength, all-broad-match ad groups, keywords duplicated across ad groups, budget-to-bid mismatch. Uses no performance data, so it works on test accounts and brand-new campaigns |
| Every conversion action with status, goal role, counting type, lookback window, and how many conversions it actually recorded. Diagnoses whether a low conversion count is a weak funnel or a broken tag |
| Who changed what, when, and from which client (web UI, Editor, API, scripts), with the fields that changed. Google retains 30 days |
| Credentials, API version, and which API methods your token's access level permits. Run this first when something is refused |
| Arbitrary read-only GAQL. Only |
check_setup probes each method with a real call — the one write probe uses
validate_only and writes nothing. It is the fastest way to find out whether you
are on Test, Explorer, or Basic access.
conversion_actions judges bidding inclusion from primary_for_goal, not the
legacy include_in_conversions_metric field. Goal-based accounts ignore the
legacy flag: verified on a live account where an action with
include_in_conversions_metric=false still counted toward metrics.conversions.
Keyword Planner
All four KeywordPlanIdeaService methods. All require Basic access.
Tool | Purpose |
| Expand seed terms and/or a URL into ideas with volume, competition, and bid range |
| Volumes for a keyword list you already have. Reports on exactly what you pass; does not expand |
| Projected clicks, cost, CPC, conversions, and CPA at a given budget and bid. Run before |
| Distribute keywords across ad groups that already exist |
assign_ad_groups assigns and refines; it does not invent themes. Google's
generate_ad_group_themes takes resource names of existing ad groups, so to
split one oversized ad group you must create the themed ad groups first, then
run this to distribute keywords into them.
Act
Tool | Purpose |
| What is autonomous, propose-only, or forbidden; the evidence thresholds; remaining change budget; whether the trust switch is on |
| Turn Display expansion and/or search partners off. A request to enable one is refused |
| Campaign-level negatives, per-term evidence measured server-side |
| Pause keywords spending without converting |
| Same for whole ad groups, at higher thresholds |
| Undo a run from the journal's stored inverses |
All of these accept dry_run: true, which validates against the live API and
journals the intent without writing. Dry-run entries do not consume change
budget.
Remove
Tool | Purpose |
| Permanently remove a campaign. Irreversible |
Three gates, all required together:
A
confirm_tokenminted only by the tool's own preview, salted per process and bound to the specific account, campaign ID, and name.acknowledge_irreversible: true.The campaign must already be
PAUSED(require_pause_before_removal), which makes removal two deliberate steps separated in time rather than one destructive one.
Called with no token it previews: name, status, budget, how many ad groups, keywords, and ads go with it, and recent spend and conversions. Historical stats remain queryable after removal, so reporting data is not lost — but the campaign can never be re-enabled.
Configuration reference
Environment variables
Variable | Default | Purpose |
|
| Credentials file |
|
| Policy file |
|
| Audit journal |
|
| State directory used by |
|
| Refuse to create a campaign above this daily budget |
| unset | Comma-separated allowlist. Unset means any accessible account |
Policy file
See policy.yaml.example, which documents every key. The
main sections:
actions— the tier for each actionevidence— volume floors, conversion caps, and CPA ceilings per actionchange_budget— per-run and per-week caps, per-entity cooldowncircuit_breaker— spend-spike multiple, learning-period lengthconversion_tracking_ok/require_conversion_tracking— the trust switchrequire_pause_before_removal— gate on campaign removal
Developer token access tiers
Access level gates methods, not just which accounts you can reach. Verified behaviour on Explorer access:
Works on Explorer | Requires Basic |
All GAQL reporting ( | Every Keyword Planner tool |
| |
|
Explorer access reaches production data, so reporting working against your
real account is not evidence that Basic access was approved. The Keyword
Planner tools return authorization_error.DEVELOPER_TOKEN_NOT_APPROVED — "not
allowed for use with explorer access" — until Basic is granted. Check the level
in your manager account's API Center rather than inferring it from a successful
query.
Test accounts, which a Test-access token is limited to, must live under a separate test manager account, not your production manager account.
Limitations
Search campaigns only. No Performance Max, Display, Video, Shopping, or Demand Gen. Performance Max in particular uses asset groups rather than ad groups, so it is a separate build rather than a flag.
No enabling or unpausing, ever. Forbidden outright, not gated. Bringing a campaign live is a human action in the Google Ads UI.
No budget or bid changes. Propose-only: the agent writes up the case and the numbers, you decide.
Auction insights is not available. The Google Ads API does not expose it in any version.
Committed writes are lightly exercised. The mutation path validates cleanly against the live API, but has seen limited real-world use. Start on a test account and use
dry_run: true.The bundled scheduler is macOS-only. Use cron elsewhere.
Autonomous mode requires the Claude Code CLI. The MCP server itself is client-agnostic.
Development
./.venv/bin/python -m pytest -q90 offline tests: campaign spec linting, temp-ID wiring, the always-paused invariant, bidding-strategy oneofs, RSA assembly, GAQL query building, the read-only guard, every audit rule, and the whole policy engine — tiering, fail-closed behaviour, evidence floors, the CPA override, change budget, cooldowns, circuit breaker, and journal accounting.
Layout
ads_agent/
client.py lazy API client, readable error formatting
spec.py campaign spec, local lint, confirm tokens
build.py spec → atomic mutate operations
report.py GAQL query building, table formatting, audit rules
policy.py the policy engine
journal.py append-only audit log
server.py MCP tool definitions
agent/
prompt.md standing instructions for autonomous runs
run.sh one scheduled run
install-schedule.sh generates and installs the launchd job
scripts/
get_refresh_token.py OAuth desktop flowNotes for contributors
Never build an update mask with
google.api_core.protobuf_helpers.field_mask(). It diffs by value, so setting a boolean toFalseproduces a mask that omits the field and the API silently ignores the change. Every spend-reducing network change sets a boolean toFalse, so that helper turnsset_networksinto a no-op that reports success. Use explicit mask paths.Verify field names against the installed library, not from memory. The API drifts; for example v25 uses
campaign.start_date_timein"yyyy-MM-dd HH:mm:ss"format, not the olderstart_date.Raise
ToolError(frommcp.server.mcpserver.exceptions) for anything whose message the model needs to read. Any other exception has its text replaced with a generic "Error executing tool", which silently discards the API's validation messages.Evidence must be measured server-side. If a future change lets a tool caller pass in the statistics that justify an action, the policy engine stops being a safety mechanism.
The API version is pinned in
ads_agent/client.py(API_VERSION).
License
MIT. Set the copyright holder in LICENSE before publishing.
See the disclaimer above. This software is provided without warranty, and you are solely responsible for what it does in your advertising accounts.
Available Tools
41 toolsad_asset_performanceARead-only
Per-asset performance for responsive search ads: Google's own performance_label (PENDING/LEARNING/LOW/GOOD/BEST) for each individual headline and description. ad_strength is one label for the whole ad; this is the useful signal underneath it — which specific line is dragging the ad down, so you know what to replace with add_rsa rather than guessing from the aggregate label.
Inputs: customer_id (required), limit, end_date, date_range, +2 more. Returns: result
add_negative_keywordsA
Add campaign-level negative keywords. Autonomous when each term's own measured search-term data clears the policy threshold with no conversions. Terms that do not clear it are reported, not added.
Inputs: terms (required), campaign_id (required), customer_id (required), run_id, +3 more. Returns: result
add_rsaA
Create the previewed responsive search ad for real, in the existing ad group. Requires the exact spec and confirm_token from a successful preview_rsa. The ad is created ENABLED — Google Ads has no paused-on-create option for ads the way this server forces for new campaigns — so it starts serving immediately into what is presumably a live ad group. Confirm with the user before calling this.
Inputs: spec (required), confirm_token (required). Returns: result
apply_proposalA
Execute a previously recorded proposal from the generic mutate tool — the exact call a human is now explicitly approving, rather than the agent re-deciding on its own to act on a propose-only finding. Refused when this run is unattended (ADS_AGENT_UNATTENDED=1): applying a proposal is precisely the human step the propose tier exists to require, and a scheduled run must not be able to supply that itself. Re-reads current field values before writing, the same as mutate().
Inputs: proposal_id (required), dry_run. Returns: result
assign_ad_groupsARead-only
Map a list of keywords across ad groups that ALREADY EXIST, using Google's own themeing. It assigns and refines rather than inventing themes from scratch: pass a campaign whose ad groups are already created, and it returns which ad group each keyword belongs in, with a suggested match type. To split one big ad group, create the themed ad groups first, then run this to distribute the keywords.
Inputs: keywords (required), customer_id (required), campaign_id, ad_group_ids. Returns: result
audit_campaignARead-only
Structural review of a campaign: targeting gaps, Display expansion left on, thin RSAs, poor ad strength, all-broad-match ad groups, keywords duplicated across ad groups, budget-to-bid mismatch. Uses no performance data, so it works on test accounts and brand-new campaigns.
Inputs: campaign_id (required), customer_id (required), today. Returns: result
change_historyARead-only
Who changed what, when, and from which client (web UI, Editor, API, scripts), with the fields that changed. Answers 'why did performance shift' and 'was this setting deliberate'. Google retains at most 30 days of change history.
Inputs: customer_id (required), days, limit, campaign_id, +1 more. Returns: result
check_setupARead-only
Check what this installation can actually do: credentials, API version, and which API methods the developer token's access level permits. Run this first when something is refused, or right after setup. Read-only — the one write probe uses validate_only and writes nothing.
Inputs: customer_id. Returns: result
conversion_actionsARead-only
Inspect conversion tracking: every conversion action with its status, category, counting type, whether it feeds bidding, and how many conversions it actually recorded. Use this to decide whether a low conversion count means a weak funnel or broken tracking — the whole autonomy gate depends on that answer.
Inputs: customer_id (required), date_range. Returns: result
create_campaignA
Create the campaign for real, as a single atomic mutate. Requires the exact spec and confirm_token from a successful preview_campaign. The campaign is always created PAUSED — it cannot spend until a human enables it in the Google Ads UI. Confirm with the user before calling this.
Inputs: spec (required), confirm_token (required). Returns: result
create_campaign_draftA
Create a draft copy of an existing campaign: an inert shadow campaign you can safely edit — via get_campaign, mutate, add_rsa, and the rest, pointed at the draft's own campaign ID — without touching what is actually live. Nothing about the base campaign changes until you call promote_campaign_draft.
Inputs: campaign_id (required), customer_id (required), draft_name. Returns: result
dismiss_proposalA
Dismiss an open proposal without executing it, so it stops showing up in list_proposals. Proposing the identical change again later reopens it — dismissing is a decision about this instance, not a permanent ban on the change.
Inputs: proposal_id (required), reason. Returns: result
explain_capabilityARead-only
Explain what would happen if the generic mutate tool were asked to change one field: which rule matches, at what tier, and what else was considered. Use this before mutate to find out whether a change is permitted. Read-only.
Inputs: resource (required), operation (required), field, value, +1 more. Returns: result
forecast_campaignARead-only
Forecast a campaign before building it: projected clicks, impressions, cost, average CPC, conversions and CPA for a keyword set at a given daily budget and max CPC. Run this before preview_campaign to find out whether the budget and bid actually buy enough traffic to learn anything.
Inputs: keywords (required), customer_id (required), daily_budget (required), geo_target_ids (required), +6 more. Returns: result
geo_performanceARead-only
Performance by the geographic location a user actually was in or searching from — distinct from geo_target_ids, which is what you targeted. Answers 'is this converting where I think it is', which targeting alone cannot: a campaign can be fully within its targeted country and still be spending almost entirely in one weak region.
Inputs: customer_id (required), level, limit, end_date, +3 more. Returns: result
get_campaignARead-only
Read back a campaign in full — settings, targeting, ad groups, keywords, and responsive search ad assets with their ad strength. Use this after create_campaign to verify what actually landed.
Inputs: campaign_id (required), customer_id (required). Returns: result
keyword_performanceARead-only
Per-keyword performance with quality score, its three components, and effective bid. Sorted by cost, so the biggest spenders come first. Use this to find keywords spending without converting — and AdRel/LPExp/ExpCTR to find out why a low quality score is low, since the single QS number alone does not say which of the three to fix.
Inputs: customer_id (required), limit, end_date, date_range, +4 more. Returns: result
keyword_volumesARead-only
Average monthly search volume, competition, and bid range for a list of keywords you already have. Unlike suggest_keywords this does not expand or invent anything — it reports on exactly the terms you pass, which is what you want for auditing an existing keyword list.
Inputs: keywords (required), customer_id (required), geo_target_ids (required), language_id, +1 more. Returns: result
list_accountsARead-only
List the Google Ads accounts these credentials can reach, with currency, time zone, and whether each is a test account. Call this first to get the customer_id for other tools.
Inputs: no named parameters. Returns: result
list_campaign_draftsARead-only
List campaign drafts: status, which campaign each is a draft of, and the draft's own campaign ID — the target for get_campaign / mutate / add_rsa while editing it.
Inputs: customer_id (required), campaign_id. Returns: result
list_campaignsBRead-only
List campaigns in an account with status, budget, and bidding strategy.
Inputs: customer_id (required), include_removed. Returns: result
list_capabilitiesARead-only
Show the capability table: every resource, operation and field the generic mutate tool is allowed to touch, and at which tier. Anything absent from this table is refused, so this is also the list of what is NOT possible. Read-only.
Inputs: tier, resource. Returns: result
list_proposalsARead-only
List open proposals recorded by the generic mutate tool's propose-only findings — the exact diffs a human can execute with apply_proposal instead of manually re-deriving the mutate() call from a run's report.
Inputs: customer_id. Returns: result
mutateA
Change any mutable Google Ads resource. This is the general write path: it reaches every resource the API exposes, and is governed entirely by the capability table rather than by hand-written logic.
Call it once with no confirm_token to see the exact diff, the tier that governs it, and a token. Call it again with that token to execute. Anything with no rule in the table is refused, as are forbidden rules however they are confirmed. Every update reads the current values first, so the journal can undo it.
Prefer the specific tools where they exist — pause_keywords and the rest measure evidence this path cannot.
Inputs: resource (required), operation (required), customer_id (required), dry_run, +3 more. Returns: result
pause_ad_groupsA
Pause whole ad groups that are spending without converting. Pauses, never removes. Thresholds are higher than for keywords, since an ad group is a much bigger unit to switch off.
Inputs: campaign_id (required), customer_id (required), ad_group_names (required), run_id, +2 more. Returns: result
pause_keywordsA
Pause keywords that are spending without converting. Pauses, never removes, so it is reversible. Evidence is measured here; keywords that do not clear the policy threshold are kept and reported.
Inputs: campaign_id (required), customer_id (required), keyword_texts (required), run_id, +2 more. Returns: result
performanceARead-only
Performance metrics at campaign, ad group, or ad level over a date range. Campaign level includes impression share and where it is being lost (budget vs rank); ad level includes ad strength. Needs Basic access and a live campaign — test accounts serve no ads and return no metrics.
Inputs: customer_id (required), level, limit, segment, +5 more. Returns: result
policy_statusARead-only
Show the active policy: which actions are autonomous, propose-only, or forbidden; the evidence thresholds each autonomous action must clear; and how much of the change budget is left. Call this before attempting any change so you know what will be permitted.
Inputs: campaign_id, customer_id. Returns: result
preview_campaignARead-only
Dry-run a campaign spec: lint it locally, then submit it to the Google Ads API with validate_only so nothing is written. Returns the rendered plan, any errors, and — if valid — a confirm_token to pass to create_campaign. Always call this before create_campaign; show the plan to the user.
Inputs: spec (required). Returns: result
preview_rsaARead-only
Dry-run a new responsive search ad for an EXISTING ad group: lint it locally, then submit it to the API with validate_only so nothing is written. Returns the plan and, if valid, a confirm_token for add_rsa. Google Ads ads are immutable once created — there is no in-place edit — so this is how you act on an audit_campaign finding like 'RSA has 3 headlines' or 'ad strength is POOR': add a stronger RSA, then pause the old one yourself once the new one is confirmed live.
Inputs: spec (required). Returns: result
promote_campaign_draftA
Promote a campaign draft's edits back into the live base campaign — the one action in the draft workflow that touches live traffic: the base campaign starts running whatever was built in the draft. Call with no confirm_token to preview (shows which campaign it would overwrite); call again with the token to execute. Promotion is asynchronous — this kicks it off and returns immediately without waiting for it to finish. Check list_campaign_drafts afterward: status moves PROPOSED -> PROMOTING -> PROMOTED (or PROMOTE_FAILED).
Inputs: customer_id (required), draft_resource_name (required), confirm_token. Returns: result
remove_campaignADestructive
Permanently remove a campaign. IRREVERSIBLE — Google Ads has no un-remove, and a removed campaign can never be re-enabled (its historical stats do stay queryable). Call with no confirm_token to see exactly what will be destroyed and get a token; call again with that token to execute. The campaign must already be PAUSED. Prefer leaving a campaign paused unless there is a real reason to remove it.
Inputs: campaign_id (required), customer_id (required), confirm_token, acknowledge_irreversible. Returns: result
remove_campaign_draftB
Discard a campaign draft without promoting it. The base (live) campaign is untouched either way — this only deletes the shadow copy.
Inputs: customer_id (required), draft_resource_name (required). Returns: result
revert_last_runA
Undo a run's changes using the inverse operations stored in the journal. Defaults to the most recent run. This is the escape hatch when the agent gets something wrong; it re-enables what was paused and removes negatives the agent itself added.
Inputs: customer_id (required), run_id, dry_run. Returns: result
run_gaqlARead-only
Run an arbitrary read-only GAQL query and return the raw rows. Escape hatch for anything the other tools do not cover. Only SELECT is accepted; GAQL has no mutation capability so this cannot write.
Inputs: query (required), customer_id (required), limit. Returns: result
search_termsARead-only
The real search queries that triggered your ads, with metrics and whether each is already added as a keyword or excluded as a negative. This is the primary source for negative keyword decisions.
Inputs: customer_id (required), limit, end_date, date_range, +4 more. Returns: result
set_networksA
Turn Display expansion and/or search partners OFF for a search campaign. Can only switch networks off, never on — a request to enable one is refused. Autonomous when the network's own measured spend clears the policy threshold with no conversions.
Inputs: campaign_id (required), customer_id (required), run_id, dry_run, +3 more. Returns: result
suggest_geo_targetsARead-only
Resolve location names to the numeric geo target IDs that campaign specs need. Pass names like ['Spain', 'Madrid', 'United States']. Returns each match with its ID, canonical name, and target type.
Inputs: location_names (required), locale, country_code. Returns: result
suggest_keywordsARead-only
Generate keyword ideas from seed terms and/or a URL, with average monthly search volume, competition, and top-of-page bid range. Requires the geo and language IDs you intend to target so the volumes are relevant.
Inputs: customer_id (required), geo_target_ids (required), limit, seed_url, +3 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 41 tools
Most tools target a distinct resource or action, and the descriptions clearly separate pairs like pause_keywords vs pause_ad_groups and add_negative_keywords vs add_shared_negative_keywords. However, the four performance-variant tools, the preview_campaign/forecast_campaign pair, and the governance tools (policy_status, list_capabilities, explain_capability) require careful reading to pick correctly, and the generic mutate/run_gaql escape hatches broadly overlap with the specific tools.
Almost all tool names are snake_case with an imperative verb first, following a list_/create_/preview_/pause_/remove_/promote_ pattern. The main deviations are the noun-style report tools like keyword_performance, ad_asset_performance, geo_performance, search_terms, and conversion_actions, which are consistent in style but not verb_noun. Overall the naming is predictable and readable.
At 41 tools, this is well over the 25-tool threshold and makes for a heavy selection surface that will consume significant agent context. The broad Google Ads scope justifies much of the breadth, but clusters like the four performance reports, the capability/proposal machinery, and the generic mutate path could be consolidated. It is capable but oversized.
The toolset covers the campaign lifecycle, keyword/ad group/ad operations, negative keywords, drafts, audits, forecasting, performance analysis, and governance, with mutate and run_gaql as escape hatches so there are no dead ends. A few common operations such as pausing/toggling campaigns or creating ad groups are not first-class tools and must go through mutate, and shared-list creation is left to raw API calls. These are workable gaps rather than blocking ones.
Related MCP Connectors
Google Ads MCP server: run Search, Display, Demand Gen and PMax campaigns from AI.
Google Ads MCP server — manage campaigns, keywords, and metrics.
Hosted MCP server for marketing agencies: connect Google Ads, GA4, Search Console, Meta, LinkedIn and more to Claude or ChatGPT. Pull reports and make changes via OAuth login, no setup.
Hosted Google Ads MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP server for AI agents to manage ad campaigns across Google, Meta, LinkedIn, Microsoft, Reddit, TikTok, and more21445 npm21MIT
- FlicenseNot gradedqualityDmaintenanceMCP server that lets any LLM manage Google Ads campaigns from the terminal. Supports read and write operations.-
- AlicenseBqualityCmaintenanceOpen-source MCP server for Google Ads (Meta Ads coming soon) that lets AI assistants manage ad campaigns, reporting, keywords, and targeting in plain English from any MCP client, with safety-first creation of paused campaigns.5451 npm3MIT
- AlicenseAqualityCmaintenanceAn MCP server that provides read and write access to Google Ads, allowing natural language management of campaigns, budgets, ad groups, bids, and keywords, with dry-run validation for safety.18MIT