AIO Copilot

Claude Code for Google Ads: What It Can Reach, the Jobs It Does Well, and the Guardrails

Claude Code is quick at the slow parts of paid search, such as reading a long search terms export and testing a negative keyword list against it. It should not change a live account without a person approving each change. This is what it can reach, the jobs worth giving it, and a setup that keeps it read-only.

Updated 2 November 202614 min read

What can Claude Code do for Google Ads?

Claude Code can read Google Ads exports, write the analysis and the scripts, and draft changes as files that a person uploads. Used that way it is a fast analyst for search terms, negative keywords, ad copy limits and account settings. It has no access to Google Ads of its own: anything it reaches in a live account comes through a route you set up, and the safe routes are read-only.

Anthropic describes Claude Code as "an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools", available in a terminal, an IDE, a desktop app and the browser. On ad work the codebase is a folder: CSV exports from the account, a file of account rules, and the scripts Claude writes to process them. Our guide to using Claude Code for SEO covers the same setup for Search Console and crawl data, and most of it carries over.

Claude Code comes with every paid Claude plan and not with the free one. As of November 2026, Anthropic's pricing page lists Pro at $20 a month billed monthly ($17 a month billed annually), Max at $100 a month with five times Pro's usage, Ultra at $200 a month, and Team standard seats at $25 a month billed monthly. Teams that connect through the API pay per token instead; Anthropic's cost documentation puts the average across enterprise deployments at about $13 per developer per active day, and under $30 a day for 90% of users. Pro is the cheapest way to find out whether the work suits you.

How does Claude Code connect to a Google Ads account?

There are four routes, and they differ in the one thing that matters more than convenience: whether anything can change in the account.

RouteWhat Claude Code getsCan it change the account?What you need
ExportsCSV files from the Google Ads interface or Google Ads EditorNo. You import and post changes yourselfOrdinary account access
Google Ads scriptsIt writes JavaScript that you paste into the accountOnly when you run the script liveAccount access to authorize the script
Google Ads APIReports through GAQL queries, and changes if you write themYes, unless every change request is validate-onlyA Google Cloud project with Explorer access or higher, and OAuth credentials
Google's MCP serverTools Claude can call during a sessionRead-only per Google's docs; newer versions add optional asset and label toolsThe same Cloud project access and credentials

Exports and Google Ads Editor

The search terms report downloads from Campaigns, then Insights and reports, then Search terms, according to Google's help page for the report. Google Ads Editor exports the whole account, selected campaigns and ad groups, or the current view as CSV. The return trip carries the safety catch. A CSV imported into Editor appears as proposed changes that you keep or reject, and nothing reaches Google until someone clicks Post, after which, Google says, "successfully posted changes are reflected in your account immediately." That click belongs to a person.

Google Ads scripts

Scripts are JavaScript that runs inside Google Ads, written in a browser-based editor and schedulable hourly, daily, weekly or monthly. Claude Code can write one but cannot run it; you paste it in and authorize it. Preview mode makes "no changes to the actual campaign data", with two catches Google documents: calls that do not go through AdsApp, such as emails and spreadsheet writes, still happen, and an entity a script creates in preview does not exist when the same script reads it back. A script in an advertiser account is cancelled after 30 minutes.

The Google Ads API, now without a developer token

The API's access rules changed on 9 September 2026, when Google sunset developer tokens. Access now belongs to the Google Cloud project that owns your OAuth client, the token header is still accepted but ignored, and a manager account is needed only to manage several accounts through the API. Instructions written before September, possibly including what Claude learned in training, describe applying for a token in the API Center, a page Google now calls deprecated.

Enabling the API in a Cloud project grants Test access, which reaches test accounts only. Google's access levels page sets Explorer at 2,880 operations a day on production accounts, Basic at 15,000 (it requires brand verification of the Cloud project) and Standard at no daily cap, after a manual review that Google says typically takes 10 business days. For read-only reporting, start at Explorer and apply for more only if you reach its cap.

Change requests in the API carry a validate_only field. On the request that adds campaign negatives, Google defines it this way: "If true, the request is validated but not executed. Only errors are returned, not results." Any code Claude writes that could change an account should send validate-only by default and need a deliberate edit to do anything else.

Google's MCP server and agent skills

Google published an open-source Google Ads API MCP server, announced on its Ads Developer Blog on 7 October 2025. Google's documentation for the server calls it "strictly read-only" and lists three tools: one lists the accounts you can reach, one runs GAQL queries, one describes a resource type such as a campaign. It needs a Cloud project with Explorer, Basic or Standard access, plus OAuth or application default credentials.

The code has moved faster than the docs. The repository's README now also lists tools that create assets, upload video assets and manage labels. They use a propose-and-confirm step that previews by default, and the README says to set labels: false and assets: false in tools_config.yaml for a strictly read-only deployment. Check which version you install before calling it read-only.

Claude Code adds a local server with claude mcp add, and in interactive sessions it asks for approval before using servers defined in a project's shared .mcp.json file. Anthropic's connectors directory listed no Google Ads connector in November 2026; Google's docs instead explain how to add a Cloud Run deployment of its server to Claude as a custom connector. Google also publishes agent skills for the API, installed in Claude Code with npx skills add google/skills/skills/ads --agent=claude-code, including one that diagnoses conversion loss and lost impression share through the MCP server. Our guide to Claude skills for SEO explains how skills load and what to check before installing one.

Google rebuilt API access around Cloud projects and AI agents within a year of Claude Code's release.
24 February 2025Anthropic releases Claude Code as a limited research preview
22 May 2025Claude Code becomes generally available
7 July 2025Google asks developers to help shape a Google Ads API MCP server
7 October 2025Google open-sources the Google Ads API MCP server
16 October 2025Anthropic launches Agent Skills, including in Claude Code
24 June 2026Google announces Agent Skills for Google Advertising and Measurement
9 September 2026Google sunsets developer tokensAPI access levels move to the Google Cloud project that owns the OAuth client.
22 September 2026Anthropic releases Claude Opus 5.5 at $4 and $20 per million input and output tokens
14 October 2026Google releases version 26 of the Google Ads API
Sources: Anthropic, Claude 3.7 Sonnet and Claude Code, Claude 4, Agent Skills and Claude Opus 5.5; Google, Ads Developer Blog, developer token sunset and API release dates. Checked 2 November 2026.

How should you set up a folder for Google Ads work?

Use one folder per account, keep raw exports apart from anything Claude writes, and put the account's rules in a CLAUDE.md file. Claude Code reads CLAUDE.md at the start of every session, so it is the place for the currency, the conversion actions that count, the brand terms and the campaigns nobody touches.

harbour-finch-ads/
  CLAUDE.md                 account rules, read every session
  .claude/settings.json     deny rules (below)
  exports/                  raw downloads, never edited
    search-terms_2026-08-01_2026-10-31.csv
    keywords_2026-10-31.csv
    shared-negative-lists_2026-10-31.csv
    editor-export_2026-10-31.csv
  scripts/                  code Claude writes; you read it before it runs
  out/                      proposals only: negatives.csv, rsa-check.csv, report.md

Then make the rules enforceable. Claude Code checks permission rules in a fixed order, "deny, then ask, then allow", so a project settings file can stop edits to the raw exports and remove the MCP tools that write. Here the Google Ads server was added under the name googleads:

{
  "permissions": {
    "deny": [
      "Edit(./exports/**)",
      "mcp__googleads__create_asset",
      "mcp__googleads__upload_video_asset",
      "mcp__googleads__manage_labels",
      "mcp__googleads__manage_label_associations"
    ]
  }
}

Plan mode, in which Claude "reads files and runs read-only shell commands to explore but doesn't edit your source files", suits a first pass on an account you do not know. Anthropic's permissions documentation is plain about the limits of all this: a Bash deny rule matches the command text Claude writes and "isn't a security boundary around the program", which is why Claude Code also has a sandbox. The strongest boundary is not having write credentials in the folder at all.

How do you analyse a search terms report with Claude Code?

Download the report for a period long enough to hold real conversions, ask Claude Code to group the terms into themes and total cost, clicks and conversions for each theme with a script, and have it print the rows behind every total. This is the job it does best, because the work is grouping and arithmetic over a file you can check yourself.

Two properties of the report shape what those totals mean. Google omits "some search terms that don't have enough query activity", so the visible rows will not add up to the campaign's spend. The gap is real money on searches you cannot see, and it should be reported as a gap rather than spread across the terms you can. The Match type column, meanwhile, records how each search related to the keyword that triggered it, which tells you whether waste comes from broad match reaching too far or from a keyword that was wrong to begin with.

Read exports/search-terms_2026-08-01_2026-10-31.csv.
Set aside any total or summary rows. Treat "--" as missing, not zero.
Write scripts/themes.py to group search terms into themes by shared words
and intent, then total cost, clicks and conversions per theme.
Print how many rows and how much cost you read, next to the campaign totals,
so the spend on hidden terms is visible as its own line.
Do not estimate anything. Every figure in out/themes.md must come from the
script's output and name the rows it was computed from.

Give it three months rather than three weeks if the account's volume allows. At a 2% conversion rate, a term with ten clicks and no conversion is what chance alone produces about 82% of the time (0.98 to the power of ten). Our guide to finding wasted Google Ads spend works through that arithmetic and the thresholds that follow from it.

How do you build a negative keyword list with Claude Code?

Ask for a proposed list in a file, with a match type and a scope for every negative, and a test of each proposal against every row in the export, so you can see what each one would block before anything is uploaded. That test is the part a person cannot do by eye on a large report, and the part a model gets wrong when it reasons about negatives as if they behaved like ordinary keywords.

They do not. Google says negative keywords "won't match to close variants or other expansions", so synonyms and singular and plural forms have to be added separately, although casing and misspellings are handled for you. Each match type blocks a different set of searches, shown here for the negative free consultation:

Negative match typeBlocks the search whenBlocksDoes not block
Broad (the default)It contains all the words, in any orderconsultation free lawyerfree lawyer
PhraseIt contains the words together, in order, with others allowed around themfree consultation lawyer torontoconsultation free lawyer
ExactIt is exactly those words, with nothing addedfree consultationfree consultation lawyer

Google adds one more limit: a negative may fail to block a search longer than 16 words. Scope matters as much as match type. A negative on an ad group keeps the search out of that ad group only, while a shared list applies to every campaign it is attached to, and a later edit to the list reaches all of them. Google allows 20 shared lists per account and 5,000 negatives per list.

A sample case shows why the collateral test matters. In an invented export for Harbour & Finch LLP, a sample Toronto law firm (sample data, not a real account), the term "free legal advice employment toronto" spends with no conversions. The obvious fix, free as a broad negative, would also block "free consultation wrongful dismissal lawyer", a term in the same export that converted. An exact negative on the wasted term blocks only that term.

Read out/negatives.csv (columns: negative, match_type, scope).
For each proposed negative, apply Google's negative matching rules:
  broad  = all words present, any order, no close variants
  phrase = words present together, in order
  exact  = the search is exactly the negative
Test it against every row of exports/search-terms_2026-08-01_2026-10-31.csv.
Write out/collateral.csv: negative, every term it would block, and the cost,
clicks and conversions of each. Put any negative that blocks a converting
term at the top. Change nothing in negatives.csv; I will decide.

The free Ads leak check does this on your own export in the browser: it finds the terms that spent without converting, proposes an exact negative for each, and shows what a broader negative would also have blocked, converting terms included. For the upload, ask for the CSV in the column headers of your own Editor export. Editor lets you remap headers during import, but Google recommends its standard headers.

How do you find spend on searches that never convert?

First prove that conversions are being recorded, then leave out the most recent week, and only then look for terms with enough clicks that zero conversions means something. Claude Code does the last part in seconds. The first two decide whether its answer is true.

Check the status of each conversion action in Goals. Google's troubleshooter lists five: Active, Needs attention, Misconfigured (conversions have stopped recording), Awaiting conversions (none recorded in the last seven days) and Removed. If the action that matters is misconfigured, every search term shows zero conversions and every one looks like waste. A negative list built from that export would block searches that were working.

Then the dates. Google Ads reports conversions on the ad impression date, and Google says "it can take up to 7 days for conversion data to fully appear in reports." A click on a Thursday that converts the following Tuesday is credited back to Thursday, so the last week of any export undercounts. Tell Claude to end the window seven days before the export date, or to use the Conversions (by conv. time) column when matching Google Ads against another tool.

Put both checks in CLAUDE.md so they run every time. Searches that do convert can be waste too, if the site already ranks for them organically. That is a different test, covered in our guide to bidding on keywords you already rank for, and the free paid vs organic checker joins a search terms export to Search Console to find them.

Can Claude Code check ad copy against Google's character limits?

Yes, and it should do it with a script rather than by reading. A responsive search ad takes up to 15 headlines of 30 characters and up to 4 descriptions of 90 characters, and the display URL path fields take 15 characters each, according to Google's responsive search ad help page. Every character in a double-width language such as Japanese, Korean or Chinese counts as two.

Anthropic's guidance on writing skills says to prefer scripts for deterministic operations, and counting is one. A script gives the same answer on every run and can be rerun after each edit.

Read exports/editor-export_2026-10-31.csv and find every responsive search ad.
Write scripts/rsa_check.py. For each ad, count characters in every headline,
description and path, counting double-width characters as 2.
Flag: headlines over 30, descriptions over 90, paths over 15, fewer than
3 headlines or 2 descriptions, and headlines that repeat another in the ad.
Write out/rsa-check.csv with campaign, ad group, field, text, length, problem.
Do not rewrite any copy.

Claude can draft replacement headlines once the check has run, but the count decides whether they fit, and a person decides whether they are true. Pinning deserves a look as well: Google says pinning identical or very similar text to the same position can lower Ad Strength.

How do you audit Search Partners and location settings with Claude Code?

Pull the settings for every campaign in one query, have Claude list the campaigns that differ from what you intended, and look at performance split by network and by location type before changing anything. Two settings deserve that check on every account, because their defaults reach further than many advertisers expect.

Search partners are "sites in the Search Network that partner with Google to show ads", and Google's Search Network help page says that "when you create a campaign for the Search Network, search partners are included by default." They are switched off under Networks in campaign settings. Before switching, compare cost per conversion with the Network (with search partners) segment, which Google says compares Google Search, search partners and Display Network performance, and look at the partner placement reporting that Google's 2025 highlights say it expanded to Search campaigns in December 2025.

Location targeting defaults to Presence or Interest: people in, regularly in, or who have shown interest in the places you target. The alternative, Presence, reaches only people in or regularly in them, and exclusions always work on Presence. For a firm that serves one city, interest-based reach can mean paying for clicks from people who live somewhere else. Google notes that most campaigns get fewer impressions when they move away from the default; whether those impressions were worth buying is what the split shows.

SELECT
  campaign.name,
  campaign.advertising_channel_type,
  campaign.network_settings.target_search_network,
  campaign.network_settings.target_partner_search_network,
  campaign.geo_target_type_setting.positive_geo_target_type,
  campaign.geo_target_type_setting.negative_geo_target_type
FROM campaign
WHERE campaign.status = 'ENABLED'

That query runs through the API or the MCP server's search tool. For the split, the API's geographic_view reports metrics by country with a location type of either location of presence or area of interest, and segments.ad_network_type splits results by network. Without API access, export the segmented tables from the interface and point Claude at those files instead.

Can Claude Code write a Google Ads report?

It can assemble one in a fixed structure from exports or API queries, and it is dependable at that when a script computes every number and every claim names the file and rows behind it. The risk in a report is the sentence that sounds like analysis and rests on nothing, such as "conversion rate rose because of the new headlines" when no test separated the headlines from the season.

Write the structure once: the period, spend and conversions by campaign, search term themes, proposed negatives with their collateral, settings that changed, and a section headed "Not measured" for what the data cannot support. Save it as a skill so the same shape comes back each month. In Claude Code a skill is a folder with a SKILL.md file, which Claude loads when it is relevant or when you type its name as a slash command. Anything sent to a client still needs a person to read it against the account.

Where does Claude Code go wrong on Google Ads work?

Five failures come up again and again, and each has a fix.

Invented metrics. Asked for a number it cannot find, a language model may produce one that looks right. The defence is structural: numbers come from scripts that print their inputs, the prompt forbids estimates, and a person checks one total against the Google Ads interface before trusting the rest. Anthropic's skill guidance recommends the same validate, fix and repeat loop for quality-critical tasks.

Writing to a live account. Editor posts take effect immediately, an API change request without validate-only executes, and the newer tools in Google's MCP repository can create assets once confirmed. Claude Code's bypassPermissions mode skips its permission prompts, and Anthropic's permissions page says to "only use this mode in isolated environments like containers or VMs where Claude Code can't cause damage." An ad account with a card attached is not that.

Broken conversion tracking. A misconfigured conversion action turns every search term into apparent waste. Claude will analyse the zeros faithfully unless the folder's rules tell it to check the status first.

The rows you cannot see. The search terms report hides low-volume terms, so shares computed from the visible rows overstate how much of the spend you understand.

Text from outside. Anthropic warns that MCP servers which fetch external content can expose you to prompt injection. Install servers and skills only from sources you trust, and read what a skill contains before you run it.

What guardrails should you put around Claude Code on an ad account?

Start read-only, keep a person on every change, and test on copies before anything touches the account. In practice that means:

  • Read-only credentials, or none. Exports need no credentials in the folder; an API or MCP setup should use a Cloud project at Explorer access and the server's read tools only.
  • Deny rules in .claude/settings.json for the raw exports and every tool that writes, committed with the folder so they apply to everyone who opens it.
  • Every change delivered as a file: a negatives CSV, a script or a list of settings, reviewed by someone who knows the account.
  • Editor's proposed changes reviewed before Post, or validate-only on every API change request until a person signs off.
  • Scripts run in preview first, remembering that preview still sends emails and writes to spreadsheets.
  • API code tested against a test account, which is all Test access can reach.

Which route to choose follows from how many accounts you run. With one or two, exports and Editor are enough and keep credentials out of the picture. Across many, the API or Google's MCP server at Explorer access saves the downloading, and the read tools are all the analysis needs. Write access is a separate decision for a team that already has review and rollback in place. AIO Copilot's Google Ads waste audit takes the same line: it prices waste in Search campaigns from the search terms report, writes negatives with match types and the collateral each would cause, and changes nothing until a person approves it.

The test for any setup fits in one question: could Claude Code, misreading one instruction, spend money or stop a campaign? If the answer is yes, take that credential out of the folder.

Questions

Can Claude Code make changes in my Google Ads account?

Only through a route you give it. Working from exports it cannot touch the account: you import its CSV into Google Ads Editor, review the proposed changes and post them yourself. Through the Google Ads API it can change anything its credentials allow unless each request is sent validate-only, and recent versions of Google's MCP server include optional tools that create assets and manage labels after a confirmation step.

Do I still need a Google Ads developer token to use the API?

No. Google sunset developer tokens on 9 September 2026. Access levels now belong to the Google Cloud project that owns your OAuth client: Test reaches only test accounts, Explorer allows 2,880 operations a day on production accounts, Basic allows 15,000 and Standard has no daily cap. You can still send the token header, but Google's servers ignore it.

Is there an official Google Ads MCP server for Claude?

Google publishes an open-source Google Ads API MCP server on GitHub, announced on its Ads Developer Blog on 7 October 2025. Google's documentation describes it as read-only, with tools that list the accounts you can reach, run GAQL queries and read resource metadata. Anthropic's connectors directory listed no Google Ads connector in November 2026, but Google documents how to add a deployment of its server to Claude as a custom connector.

How much does Claude Code cost for PPC work?

Claude Code is included in Claude Pro at $20 a month billed monthly ($17 a month billed annually), Max at $100 a month and Ultra at $200 a month, according to Anthropic's pricing page in November 2026. The free plan does not include it. Through the API you pay per token instead, and Anthropic says enterprise deployments average about $13 per developer per active day.

Can Claude Code run Google Ads scripts?

It can write them, but it cannot run them inside Google Ads: you paste the script into the account's script editor and authorize it. Run it in preview first. Google says preview makes no changes to campaign data, though emails and spreadsheet writes made by the script still happen, and a script in an advertiser account is cancelled after 30 minutes.

New studies, by email

Our own studies, and what each new release changes for SEO, AEO and Google Ads.

Or get your price for the app