google-ads-write-mcp
Click on "Install 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-write-mcpCreate a paused search campaign named 'CLAUDE - Spring Sale' with a $50 daily budget"
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-write-mcp
A small, allow-listed write-side MCP server for Google Ads, plus a read-only
Keyword Planner tool. It is the companion to Google's official
google-ads-mcp, which is
read-only by design: use that one to look things up, and this one to change them.
Works with Claude Code (and any MCP client over stdio).
Safety model
Dry run by default. Every mutating tool sends its request with
validate_only=true— Google checks auth and payload and changes nothing. Passconfirm=trueto apply.Atomic. Each call is one
MutateGoogleAdsRequestwith partial failure off: either everything in it is created, or nothing is.Additive. Tools add ads, keywords, assets, ad groups and campaigns, or toggle ENABLED/PAUSED, or tune budget and target CPA. Nothing edits existing ad text. New campaigns are created PAUSED.
One guarded delete.
remove_entityrefuses anything that does not sit under a campaign carrying the managed label (defaultclaude-managed, whichcreate_search_campaignattaches to every campaign it creates), and verifies that with a read query first. Removal in Google Ads is permanent; there is no restore.Audited. Every call — dry run or applied, success or rejection — is appended to a local JSONL audit log with timestamp, tool, customer, payload and API result. No secrets are written.
Local limits. RSA headline/description counts and lengths, sitelink, callout and snippet lengths, image size and aspect ratio are checked before anything is sent.
Tools
Tool | Purpose |
| Build a complete Search campaign in one atomic mutate: budget, campaign, location and language criteria, campaign negatives, the managed label, every ad group with its keywords, optional ad-group negatives, optional final URL suffix (UTMs) and one responsive search ad. Created PAUSED; Google Search only; Maximize conversions (optional target CPA) or Maximize clicks |
| Add one ad group with keywords, optional negatives, optional final URL suffix and one RSA to an existing campaign |
| Add a new RSA to an ad group (existing ads untouched) |
| Add positive keywords to an ad group |
| Add negatives at campaign or ad-group level |
| Create the assets and attach them to a campaign; |
| Upload PNG/JPEG files and attach them to a Search campaign ( |
| ENABLED / PAUSED on a campaign, ad group, ad or keyword |
| Change a campaign's non-shared daily budget |
| Set tCPA on a Maximize-conversions campaign |
| Update final URLs (ads, assets) and final URL suffixes (ad groups, ads) in one atomic mutate — e.g. move UTMs into the final URL itself |
| Campaign-level device bid adjustments in percent; −100 excludes a device (mobile-only = desktop −100, tablet −100). Call it after |
| Permanently remove a campaign, ad group, ad, keyword, campaign criterion (e.g. a campaign negative) or an asset link (campaign/ad-group asset) — one resource name or a list of the same kind, atomically — only under a campaign carrying the managed label |
| Keyword Planner ideas with monthly volume and bid ranges (read-only, 1 request/second) |
| Last N audit-log entries |
Customer ids may contain dashes. Use the read-only MCP first to look up campaign and ad-group ids and resource names.
Prerequisites
You need the same three things the official read-only server needs — this package creates none of them:
A Google Ads API developer token (from a manager account's API Center).
An OAuth client in a Google Cloud project, and an Ads ADC file produced by
gcloud auth application-default login --scopes=https://www.googleapis.com/auth/adwords(anauthorized_userJSON with client id, client secret and refresh token).Edit access on the Google Ads accounts you intend to change. Read-only users can query but every mutate is rejected.
Keep the token and the ADC file out of any repository.
Install
pipx install "git+https://github.com/Luxand/google-ads-write-mcp@v0.5.2"
google-ads-write-mcp --check # shows which credential files it found; no secrets printed
google-ads-write-mcp --list-toolsThe install is pinned to a tag, so pipx upgrade will not move it; upgrade
with pipx install --force "git+https://github.com/Luxand/google-ads-write-mcp@<new tag>".
Configuration
Everything is optional if the defaults fit:
Variable | Meaning | Default |
| the token itself | — |
| file holding the token |
|
| Ads ADC JSON |
|
| manager (MCC) id when the target account sits under one; | none |
| audit log path |
|
| Google Ads label that marks campaigns |
|
A login customer id applies to the whole client, so register one server entry per manager context you need.
Register in Claude Code
# direct accounts
claude mcp add --scope user google-ads-write -- "$(command -v google-ads-write-mcp)"
# accounts under a manager
claude mcp add --scope user google-ads-write-luxand \
--env GOOGLE_ADS_LOGIN_CUSTOMER_ID=1234567890 \
-- "$(command -v google-ads-write-mcp)"Then in Claude Code, /mcp should list the server and its tools. A safe first
call is audit_log_tail, then any tool without confirm (a dry run).
Scripted use
--call TOOL ARGS.json runs one tool from a JSON file through the same code
path, same dry-run default and same audit log:
google-ads-write-mcp --call create_search_campaign /abs/path/campaign.jsonUseful for pushing a large campaign generated from a spreadsheet, where passing
hundreds of keywords as chat tool arguments is impractical. Add "confirm": true
to the JSON to apply.
Things the API taught us
Search campaigns accept image assets only as
AD_IMAGE;MARKETING_IMAGE/SQUARE_MARKETING_IMAGEare Performance Max and Display field types and are rejected withFIELD_TYPE_INCOMPATIBLE_WITH_CAMPAIGN_TYPE.contains_eu_political_advertisingis required on campaign creation in current API versions; this server sets it to "does not contain".Geo and language criteria are plain resource names (
geoTargetConstants/2840,languageConstants/1000).GenerateKeywordIdeasis limited to 1 request per second per customer id and returnsRESOURCE_EXHAUSTEDabove that;keyword_ideasspaces and retries.A mutate request may hold at most 10,000 operations; a 20-ad-group Search campaign with ~250 keywords is about 370.
Device criteria (desktop 30000, mobile 30001, tablet 30002) exist implicitly on every campaign; set a bid modifier by updating
campaignCriteria/<campaign>~<id>. Namebid_modifierin the update mask explicitly: a field mask built by comparing against defaults drops a 0.0 (−100%) value and the request succeeds while changing nothing.
License
MIT.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Search Meta, Google Ads, LinkedIn, and TikTok ad libraries plus creative analysis via MCP.
OpenAI Ads MCP for ChatGPT Ads campaigns, creatives, audiences, insights, and conversions.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Luxand/google-ads-write-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server