wiki/knowledge/ai-tools/claude-code-google-ads-api.md Layer 2 article 1054 words Updated: 2026-03-04
↓ MD ↓ PDF
ai-tooling claude-code google-ads automation performance-marketing mcp

Claude Code — Google Ads API Diagnosis & Automation

Overview

Claude Code can connect directly to the Google Ads API via MCP (Model Context Protocol) servers to diagnose account problems, execute fixes, and generate change reports — all from a terminal session without logging into the Google Ads console. A live demo during the [1] weekly review on 2026-03-04 showed the tool diagnosing a zero-conversion account, identifying root causes, and executing bulk fixes in a single session.

This capability is relevant to any client account and can be scheduled as a recurring automated job.


How It Works

Architecture

Workflow Pattern

  1. Point Claude at a client account by name
  2. Ask for a general diagnosis or a specific task
  3. Claude pulls live data via the API, builds a structured analysis, and lists problems
  4. Instruct Claude to execute fixes (it calls the API directly — no manual console work)
  5. At session end, ask Claude to write a change report; post to Slack or Google Drive

Agent Swarms & Cron Jobs

Claude Code sessions can be scripted and scheduled as cron jobs, enabling fully automated weekly account audits. Multiple agents can run simultaneously ("agent swarm"), processing several accounts in parallel overnight.


What Claude Code Diagnosed (Quarrowstone Demo)

The Quarrowstone Google Ads account had zero conversions. Claude identified the following root causes within minutes of connecting:

Problem Detail
Conversion goal bloat 16 conversion actions, many auto-created duplicates; bidding algorithm had nothing meaningful to optimize
Wrong bidding strategy "Maximize Conversions" requires ~30 days of conversion history; account had none
Keyword bloat 200 keywords across ad groups; only 10 generated any traffic
Irrelevant broad match traffic Queries like "bronze statues," "marble floor cleaner," "granite countertop repair" were triggering ads
No negative keywords Two largest campaigns had zero negatives; shared lists inherited from unrelated accounts
Low Quality Scores Scores of 2–4 on key keywords; root cause is landing page relevance
Brand search waste Brand terms spread across all campaigns; $0.30 CPC brand clicks displacing $5 CPC non-brand budget
Retargeting audience gap Display retargeting campaign active but getting zero impressions — likely missing audience list
Low optimization score Below 80; Google penalizes accounts under this threshold

Fixes Executed in Session

All of the following were performed by Claude via API calls, not manual console edits:

Conversion Goals

Negative Keywords

Keyword Cleanup

Bidding Strategy (manual, pre-demo)


Remaining Actions (Not Automated)

Some fixes require human or design input and cannot be executed via API:


Setup Recommendations

Based on the demo session, the following setup will make Claude Code more effective for Google Ads work:

  1. Create a dedicated Google Ads workspace — Isolate Google Ads MCP servers and context from the general multi-tool workspace to reduce latency and confusion
  2. Teach it account-specific context — Document bidding philosophy, client goals, and known issues in the project memory
  3. Schedule cron jobs for recurring tasks: weekly keyword cleanup, optimization score checks, negative keyword expansion
  4. End-of-session error review — Always ask Claude to review errors from the session and store fixes in memory to avoid repeating mistakes
  5. Change report to Slack/Drive — Instruct Claude to write a structured report of every change made; post to the client's Slack channel or Drive folder

Limitations Observed