ADS
Manage Google Ads from Claude Code with MCP: A Safe, Reporting-First Setup
If you already live in a terminal with a coding agent, it is tempting to ask it about your ad account too: "Why did cost per click jump last week?" The Model Context Protocol (MCP) makes that possible by letting an AI client call tools that talk to the Google Ads API.
The temptation to go further, to "let it optimize my campaigns", is where accounts get hurt. This post describes a reporting-first setup, the checks that keep it trustworthy, and where changes to spend should stay in human hands. We have not run these connectors against a live advertising account for this article, so treat the steps as a plan to verify, and follow each project's own documentation.
Start with what the official server actually exposes
Google publishes an open-source Ads MCP server. Google's integration guide describes the current release as read-only, and the repository lists tools for discovering accessible customer accounts, running search (GAQL) queries, and inspecting resource metadata. Read-only means the server will not create or edit campaigns, whatever your prompt says. For a first integration that is a feature.
The exact configuration and authentication steps change between versions, and the guide and README have differed on credential requirements. Follow the current instructions for the revision you install rather than a recipe from a blog post, including this one. Our Google Ads MCP setup guide walks through a configuration and the version-sensitive parts.
Add it to Claude Code
Claude Code supports MCP servers through its own configuration; see Anthropic's Claude Code MCP documentation for the current commands and scopes. A few choices worth making deliberately:
- Scope: register the server for the one project or directory where you do ad analysis rather than globally, so it is not available in every session.
- Credentials: keep keys and credential files outside the repository and out of version control. Use environment variables or a secrets manager.
- Account access: authenticate as a user (or service account) that can reach only the advertiser account you intend to analyze.
After adding it, list the tools Claude Code discovered. That list is your real boundary. A prompt that says "do not make changes" is a request, not a permission control. If a server exposes a write tool and you only want reports, remove or deny that tool.
Run a small report and check it against the UI
Your first query should be boring on purpose:
For the connected account, show campaign name, impressions, clicks and cost for the last seven complete days. Show the GAQL you ran, the timezone, the currency, and any filters. Do not propose changes.
Then open the same view in the Google Ads interface with the same date range and compare totals. Common reasons for mismatch are timezone, currency or micros conversion (the API reports cost in micros, so a value of 1,000,000 equals one unit of currency), included or excluded campaign statuses, and segment filters. Do not trust analysis on top of numbers you have not reconciled.
Once a query is right, save it. A short file of known-good GAQL in your repo, with a comment on what each returns, is worth more than asking the model to rediscover the schema each time. The metadata tool helps when you need a field you have not used.
Questions that work well in read-only mode
- Explaining change: compare this week with last week by campaign and list which moved cost, clicks, or conversions most. Require the model to show the numbers behind each statement.
- Finding waste candidates: list search terms with spend and no conversions over a stated period. Treat the output as a list to review, since small samples and attribution delay can mislead.
- Checking hygiene: campaigns without conversion tracking, ad groups without active ads, disapproved ads.
- Building a recurring brief: a weekly summary you paste into your notes.
Whatever you ask, ask for the query and the limitations alongside the answer. A fluent explanation with no query attached is hard to audit.
Keep writes behind a reviewable step
Changing budgets, bids, targeting, or status affects real money. If you later add a write-capable tool, whether from a third-party MCP server or your own script, adopt these rules first:
- The agent proposes a change as a diff: the resource, the current value, the new value, and the reason.
- You approve each change, or a clearly bounded set, before it is applied.
- New campaigns are created paused, and activation is a separate step.
- Every applied change is logged with the resource ID so you can undo it.
The Ads MCP comparison lists several implementations for Google, Meta and LinkedIn and what each says about writes. Third-party servers are not endorsed by the ad platforms, so review code, permissions and where tokens and report data are stored before connecting one. Also note that ad data sent to a model can be sensitive. Prefer aggregates over customer-level exports.
Separate analysis from creative and approval
Finding a problem and fixing it are different jobs. Once the report tells you that one ad group wastes budget, you still need new copy and a decision about whether to spend more. You can keep that step in the same terminal using the AICMOHQ MCP server (install the aicmo CLI, authenticate, and point your MCP host at aicmo mcp; the MCP reference has the client configs). It is a separate server from the Google one: it does not give Claude Code access to your Google Ads account and does not replace the reporting server.
What it adds is marketing context: your positioning, ICP, and voice. The AI Ads agent drafts ad variants and scores them against your ideal customer profile, and drafts wait in an approval queue (the default is approve mode). AICMOHQ can connect a Google Ads account to pull spend and performance, but campaign launch is not live, so you would still create or edit the campaign in Google Ads. That separation is useful: the drafts are reviewable text, and the spend decision stays with you.
If your job is a fixed weekly export, a plain script or Google Ads CLI can be simpler and more repeatable than an agent. Use MCP when you want to ask follow-up questions in conversation.
A minimal project instruction file
Put your standing rules in the project instructions so every session starts with them. Adapt this:
Ads analysis rules
- Read-only. Never apply changes to campaigns, budgets, bids or status.
- Always show the GAQL used, date range, timezone and currency.
- Costs from the API are in micros; convert before reporting.
- Flag any conclusion based on fewer than a meaningful number of conversions.
- Propose changes as a diff with a reason; a human applies them in the Google Ads UI.
This does not enforce anything by itself, and tool permissions remain the hard control, but it makes the model's behavior consistent and reviewable.
Setup checklist
- Install the server version you reviewed and follow its current auth steps.
- Scope it to one project and one advertiser account.
- List discovered tools and remove any write tools you do not need.
- Run a seven-day report and reconcile with the Google Ads UI.
- Save working queries in the repo.
- Require query, filters and limitations with every answer.
- Keep every spend change behind a human decision.
Connect your marketing context to your coding agent
Install the aicmo CLI and point your MCP client at it. Drafts stay behind approval.