Google Ads Analyzer for Claude Code
A Claude Code skill + MCP server setup for expert-level Google Ads campaign analysis. Includes GAQL query templates, Quality Score diagnostics, Smart Bidding evaluation, Performance Max deep dives, and 12 reference documents.
What It Does
When installed, Claude Code can:
Read & Analyze:
- Query your Google Ads accounts directly using GAQL (Google Ads Query Language)
- Analyze campaign, ad group, keyword, and search term performance
- Diagnose Quality Score issues at the component level (expected CTR, ad relevance, landing page)
- Evaluate Impression Share to identify budget vs rank opportunities
- Assess Smart Bidding performance and learning status
- Deep dive Performance Max campaigns (asset groups, ad strength, cannibalization)
- Review search term reports and identify negative keyword gaps
- Generate structured analysis reports with prioritized recommendations
Write & Manage:
- Add negative keywords to campaigns (Broad, Phrase, or Exact match)
- Pause or enable campaigns, ad groups, and individual ads
- Update daily budgets
- Change bidding strategies (Target CPA, Target ROAS, Maximize Conversions, Maximize Conversion Value)
Components
Prerequisites
- Claude Code installed
- Python 3.8+
- uv (Python package manager — the MCP server runs via
uvx) - A Google Ads account (with a Developer Token)
- A Google Cloud project with the Google Ads API enabled
Installation
Step 1: Install the Skill
Copy the skill/ folder into your Claude Code project:
# From your Claude Code project root
mkdir -p .claude/skills/google-ads-analyzer
cp -r skill/* .claude/skills/google-ads-analyzer/
The skill is now active. Claude will automatically use it when you ask about Google Ads analysis.
Step 2: Set Up a Google Cloud Project
- Go to Google Cloud Console
- Create a new project (or use an existing one)
- Enable the Google Ads API:
- Go to APIs & Services → Library
- Search for "Google Ads API"
- Click Enable
- Create an OAuth 2.0 Client ID:
- Go to APIs & Services → Credentials
- Click "Create Credentials" → OAuth Client ID
- Application type: Desktop app
- Download the JSON file
Step 3: Get a Developer Token
This is required to access the Google Ads API. It's separate from OAuth credentials.
- Sign in to your Google Ads manager account (MCC)
- Go to Tools & Settings → Setup → API Center
- Your Developer Token is shown there
- If you don't have one, apply for access (test accounts get instant approval)
Token access levels:
- Test Account: Instant approval, only works with test ad accounts
- Basic Access: Requires application review, works with real accounts
- Standard Access: Higher rate limits, requires additional review
For most use cases, Basic Access is sufficient. The review process takes a few business days.
Step 4: Run the Setup Script
cd scripts/
# Place your downloaded OAuth client JSON in this folder
# (or point to it when prompted)
python3 setup.py
The script will:
- Ask for your OAuth client JSON path
- Ask for your Developer Token
- Ask for your Login Customer ID (MCC ID, optional)
- Open a browser for Google OAuth authorization
- Generate
credentials.jsonand.env.google-ads - Configure
.mcp.jsonfor Claude Code - Test the connection
Step 5: Verify
Restart Claude Code, then ask:
"List my Google Ads accounts"
Claude should connect to your account and show available accounts.
Usage Examples
Once installed, you can ask Claude things like:
Analysis:
- "Analyze my Google Ads campaigns from the last 30 days"
- "What's my Quality Score distribution across keywords?"
- "Show me Impression Share breakdown — am I losing to budget or rank?"
- "Review my search terms and suggest negative keywords"
- "Is my Smart Bidding strategy performing within target?"
- "Deep dive into my Performance Max campaign"
- "Compare this month vs last month across all campaigns"
- "Which campaigns have the highest wasted spend?"
Management:
- "Pause campaign X"
- "Add these negative keywords to my Search campaign: [list]"
- "Increase the daily budget on campaign Y to $100"
- "Switch campaign Z to Target ROAS at 4x"
You can also share screenshots or exported data from the Google Ads UI — the skill works with any data format.
What's in the Reference Docs
Troubleshooting
License
MIT