google-ads-mcp-write
Provides tools for making changes to a Google Ads account, including pausing/resuming campaigns, ad groups, and keywords; changing budgets; adding negative keywords; creating search campaigns, ad groups, keywords, and responsive search ads; switching campaigns to manual CPC; and pausing auto-apply recommendations, with validation and audit logging.
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-mcp-write Pause the Brand campaign"
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-mcp-write
An MCP server that lets an AI assistant make changes to a Google Ads account: pause and resume campaigns, ad groups and keywords, add negative keywords, change budgets, create search campaigns and ads, switch bidding back to manual CPC and turn off auto-applied recommendations.
It is the write-side companion to Google's official, read-only googleads/google-ads-mcp. Use the official server to read (reports, search terms, change history) and this one to act.
Every change runs in two steps: the tool first asks Google to validate the change without applying it, and only executes when called again with the confirmation token it returned. Each plan and execution is written to an audit log.
Tools
Tool | What it does |
| Shows the active configuration: allowed accounts, budget limits, kill switch, audit log path |
| Lists campaigns with id, status and daily budget (read-only, to build plans) |
| Pauses or resumes a campaign |
| Pauses or resumes an ad group |
| Pauses or resumes several keywords of an ad group at once |
| Changes a campaign's daily budget |
| Switches campaigns to manual CPC, so ad group bids apply again |
| Pauses every active auto-apply recommendation subscription |
| Creates a Search campaign (always paused), with budget, location and language targeting and a first ad group |
| Creates an ad group in an existing campaign |
| Adds keywords to an ad group (EXACT, PHRASE or BROAD) |
| Adds campaign-level negative keywords |
| Creates a responsive search ad (3–15 headlines, 2–4 descriptions) |
Amounts (budgets, CPC bids) are in the account's currency, as plain numbers: 30 means 30.00.
The two-step flow
you: "pause the Brand campaign"
assistant → set_campaign_status(customer_id, campaign_id, "PAUSED")
server → asks Google to validate the change (validateOnly), stores the plan
← {"status": "awaiting_confirmation", "summary": "campaign 123 -> PAUSED",
"confirm_token": "9f41…", "valid_for_seconds": 3600}
assistant → set_campaign_status(…, confirm_token="9f41…")
server → applies the change and appends it to the audit log
← {"status": "executed", …}Pair this with your client's tool-approval prompts (see Approving each change) so that you approve each call yourself.
Related MCP server: Google Ads MCP
Guardrails
Account allowlist. The server only touches the accounts listed in
GOOGLE_ADS_MCP_WRITE_CUSTOMERS. With the variable empty, every write is refused.Budget limits. A daily budget can't go above
GOOGLE_ADS_MCP_MAX_BUDGET_MICROS, and a single change can't raise a budget by more thanGOOGLE_ADS_MCP_MAX_BUDGET_INCREASE_PCT.No deletions. There is no REMOVE operation: things are paused, never deleted. New campaigns are created paused.
Kill switch.
GOOGLE_ADS_MCP_WRITE_ENABLED=0blocks every write without uninstalling anything.Audit log. Every plan and every execution, with the exact operations sent and Google's response, goes to a JSON Lines file.
Plans expire after one hour and each confirmation token works once.
Requirements
A Google Ads developer token with Basic or Standard access (Google Ads UI → Tools → API Center). A token with only Explorer/test access works on test accounts.
A Google Cloud project with the Google Ads API enabled.
Google credentials with the
https://www.googleapis.com/auth/adwordsscope, found through Application Default Credentials.Python 3.10 or newer.
Getting credentials
The simplest route is your own Google account through gcloud, with an OAuth client of type Desktop app created in your Cloud project (APIs & Services → Credentials). Download its JSON and run:
gcloud auth application-default login \
--client-id-file=/path/to/client_secret.json \
--scopes=https://www.googleapis.com/auth/adwords,https://www.googleapis.com/auth/cloud-platform
gcloud auth application-default set-quota-project YOUR_CLOUD_PROJECTThe official read-only server uses the same credentials, so one login serves both.
In Google Workspace organizations with session-control policies, these credentials may expire every day or so (
invalid_rapt/ "Reauthentication is needed"). Run the same command again when that happens.
Install
pipx install git+https://github.com/andersonbuzzi/google-ads-mcp-write.gitor run it without installing:
uvx --from git+https://github.com/andersonbuzzi/google-ads-mcp-write.git google-ads-mcp-writeConfiguration
All configuration comes from environment variables, set in your MCP client's server entry.
Variable | Required | Default | Meaning |
| yes | — | Your developer token |
| yes | — | Comma-separated customer ids the server may change, e.g. |
| when using a manager account | — | Manager (MCC) id to act through |
| no |
| Highest daily budget allowed, in micros (200000000 = 200.00) |
| no |
| Largest increase allowed in one budget change, in percent |
| no | — | Default location ids for new campaigns, e.g. |
| no | — | Default language ids for new campaigns, e.g. |
| no |
| Where the audit log is written |
| no |
|
|
| no |
| Google Ads REST API version |
| sometimes | — | Quota project, if your credentials don't carry one |
Location and language ids come from Google's geo targets and language codes tables.
Connecting an MCP client
Most MCP clients accept a server entry in this format:
{
"mcpServers": {
"google-ads-write": {
"command": "google-ads-mcp-write",
"env": {
"GOOGLE_ADS_DEVELOPER_TOKEN": "your-token",
"GOOGLE_ADS_MCP_WRITE_CUSTOMERS": "1234567890",
"GOOGLE_ADS_LOGIN_CUSTOMER_ID": "9876543210"
}
}
}
}Check your client's documentation for where this file lives.
Approving each change
If your client can ask before running a tool, turn that on for every tool that changes the account, which is all of them except write_status and list_campaigns:
set_campaign_status, set_ad_group_status, set_keyword_status, set_campaign_budget, set_campaign_manual_cpc, pause_auto_apply_recommendations, create_search_campaign, create_ad_group, create_keyword, add_negative_keyword, create_responsive_search_ad.
Together with the two-step flow, nothing changes in the account without you seeing the plan and saying yes.
Using it with the official read-only server
Install googleads/google-ads-mcp next to this one. A typical session: the assistant reads search terms through the official server, proposes negatives, and adds them through add_negative_keyword after you approve.
Good to know
Auto-apply recommendations can undo your settings. Google may switch bidding strategies or broaden keyword match types on its own when auto-apply is on.
pause_auto_apply_recommendationsturns off every subscription the API can address. Subscription types newer than the API version come back asUNKNOWNand can only be turned off in the UI (Recommendations → Auto-apply); the tool tells you how many there are.Campaign creation is a chain (budget → campaign → targeting → ad group). Google can only dry-run the first step, because the others reference resources that don't exist yet. If a later step fails, pass the created
budget_idto retry without leaving an orphan budget.Plans live in memory. Restarting the server drops pending plans; just ask again.
Development
git clone https://github.com/andersonbuzzi/google-ads-mcp-write.git
cd google-ads-mcp-write
python -m venv .venv && .venv/bin/pip install -e ".[dev]"
.venv/bin/ruff check . && .venv/bin/pytestThe tests replace the Google Ads API with a fake, so they run offline and never touch a real account.
License
MIT. Not affiliated with or endorsed by Google. Google Ads is a trademark of Google LLC.
Available Tools
13 toolsadd_negative_keywordAdd Negative KeywordC
Add several campaign-level negative keywords, blocking unwanted searches.
Inputs: texts (required), campaign_id (required), customer_id (required), match_type, +1 more. Returns: object
create_ad_groupCreate Ad GroupC
Create an ad group in an existing campaign (CPC in the account currency).
Inputs: name (required), campaign_id (required), customer_id (required), default_cpc (required), +1 more. Returns: object
create_keywordCreate KeywordC
Create several keywords in an ad group. match_type: EXACT, PHRASE or BROAD.
Inputs: texts (required), match_type (required), ad_group_id (required), customer_id (required), +1 more. Returns: object
create_responsive_search_adCreate Responsive Search AdC
Create a responsive search ad. Needs 3-15 headlines (30 chars) and 2-4 descriptions (90).
Inputs: final_url (required), headlines (required), ad_group_id (required), customer_id (required), +2 more. Returns: object
create_search_campaignCreate Search CampaignA
Create a PAUSED Search campaign with a budget, location/language targeting and one ad group.
Amounts are in the account currency. It is created paused on purpose: nothing spends until you resume it explicitly. geo_target_ids and language_ids are Google criterion ids (e.g. 2076 = Brazil, 1014 = Portuguese); when omitted they come from GOOGLE_ADS_MCP_DEFAULT_GEO_TARGETS / GOOGLE_ADS_MCP_DEFAULT_LANGUAGES. budget_id reuses an existing budget instead of creating one, which helps to resume a sequence that failed after the budget was already created.
Inputs: name (required), customer_id (required), default_cpc (required), daily_budget (required), +5 more. Returns: object
list_campaignsList CampaignsB
List campaigns with id, status and budget. Read-only, to build plans.
Inputs: customer_id (required). Returns: result
pause_auto_apply_recommendationsPause Auto Apply RecommendationsC
Turn off auto-applied recommendations (every active subscription).
Inputs: customer_id (required), confirm_token. Returns: object
set_ad_group_statusSet Ad Group StatusC
Pause or resume an ad group.
Inputs: status (required), ad_group_id (required), customer_id (required), confirm_token. Returns: object
set_campaign_budgetSet Campaign BudgetC
Change a campaign's daily budget (account currency), within the cap and max increase.
Inputs: customer_id (required), daily_amount (required), campaign_budget_id (required), confirm_token. Returns: object
set_campaign_manual_cpcSet Campaign Manual CpcC
Switch campaigns to manual CPC (no enhanced CPC); ad group bids apply again.
Inputs: customer_id (required), campaign_ids (required), confirm_token. Returns: object
set_campaign_statusSet Campaign StatusA
Pause or resume a campaign. Without confirm_token returns the plan; with it, executes.
Inputs: status (required), campaign_id (required), customer_id (required), confirm_token. Returns: object
set_keyword_statusSet Keyword StatusC
Pause or resume several keywords of the same ad group in one operation.
Inputs: status (required), ad_group_id (required), customer_id (required), criterion_ids (required), +1 more. Returns: object
write_statusWrite StatusA
Show the active guardrails: allowed accounts, budget limits and kill switch.
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Tools cleanly partition by resource+action: campaign vs ad group vs keyword status setters, plus distinct budget, CPC, and creation tools. Minor friction comes from set_campaign_status having a plan/confirm_token execute mode while other mutators don't state one, and write_status sounding like a write operation when it is a read-only guardrail view.
Nearly all names follow verb_noun (set_campaign_status, create_ad_group, add_negative_keyword, list_campaigns). Deviations are small: write_status is a noun-ish outlier for a read tool, and set_campaign_manual_cpc swaps the noun slot compared to the set_X_status pattern.
13 tools is well within the sweet spot and every tool maps to a concrete write operation or safety check. Nothing looks redundant or padded for the stated write-focused scope.
Creation (campaign, ad group, keyword, RSA, negative keyword), pausing, budgets, and guardrails are covered, but there are notable gaps: only list_campaigns exists (no list_ad_groups/keywords/ads), no delete/remove operations, and no tool to set ad group or keyword bids even though manual CPC defers to 'ad group bids'.
Related MCP Connectors
Read and change Google Ads campaigns, keywords and budgets. Every change waits for your approval.
Google Ads for AI agents: live reports, Keyword Planner, and changes with preview, confirm and undo.
Manage Google, Microsoft, ChatGPT and Meta Ads safely: previewed, confirmed, logged changes.
- AdCopilotDeprecatedcloud.adcopilot
Google Ads, GA4, Search Console and Tag Manager for AI assistants. Every change is proposed first.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to manage Google Ads accounts by providing tools for querying account data and performing write operations such as updating campaign budgets, statuses, and bidding strategies.2Apache 2.0
- AlicenseAqualityFmaintenanceEnables managing Google Ads campaigns through an AI assistant with read-only reporting, recommendations, and gated write operations for bids, budgets, and statuses, all backed by preview and audit logging.311MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to read and modify a Google Ads account by running reports and creating or editing campaigns, budgets, ad groups, keywords, ads, and conversion actions, with validation-only and paused-by-default safeguards.MIT
- AlicenseBqualityBmaintenanceEnables AI assistants to run a Google Ads account through conversation, covering reporting and GAQL queries, campaign and Performance Max creation, ads, keywords, budgets and MCC hierarchies. Spend-affecting actions return a cost preview and require explicit confirmation, with optional hard spend limits enforced even after approval.47Apache 2.0