marketerswiki
HomeCommunity
Resources
Learn
marketerswiki

The open playbook for performance marketers who build with AI.

Resources

  • SimpleCRM
  • Ads OS
  • Ledgeros
  • Tag Manager Engine
  • Skills
  • Playbooks
  • Vibecoding

Learn

  • Harness Engineering
  • Glossary
  • How-To Guides
  • Compare Tools
  • Claude Code For...
  • AI Tools Directory

Company

  • About
  • Community
  • Privacy Policy
  • Terms of Service

© 2026 marketers wiki. All rights reserved.

Built withClaude Code
  1. Home
  2. /
  3. How-To
  4. /
  5. Connect Claude Code to Google Ads
How-To Guide

How to Connect Claude Code to Google Ads

No developer experience required.

By Chetan Parmar  ·  April 1, 2026  ·  10 min read

Existing guides for connecting Claude Code to Google Ads - from Metaflow.ai and Stormy AI - are excellent. They assume you know what a developer token is, can navigate Google Cloud Console without instructions, and are comfortable editing JSON config files. Most performance marketers are not starting from that baseline.

This guide fills that gap. It covers every step from scratch, explains what each credential does and why you need it, and gets you to a working connection where you can ask Claude Code plain English questions about your Google Ads account.

The setup takes about 45 minutes the first time. Every subsequent Google Ads task you run with Claude Code costs minutes instead of hours.

Key Takeaways

  • 1.The full setup takes about 45 minutes - a one-time investment that saves hours every week afterward.
  • 2.You need a Google Ads developer token and OAuth2 credentials from Google Cloud Console before Claude Code can read your account.
  • 3.The MCP (Model Context Protocol) server is what bridges Claude Code to Google Ads - it handles authentication so you do not write any code.
  • 4.Once connected, plain English commands can audit an entire account, generate ad copy, and pull performance data for any date range.
  • 5.Marketers who complete this setup report spending 70% less time on weekly reporting tasks.

What you will be able to do after setup

01

Pull all campaign performance data for any date range with a single sentence

02

Generate 10-15 Responsive Search Ad variations for any product or service

03

Audit an entire account for quality score issues, broken extensions, and bid strategy gaps

04

Find search term anomalies and identify wasted spend automatically

05

Cross-reference Google Ads data with GA4 conversion data without manual exports

06

Build a weekly reporting summary that writes itself before Monday morning

What you need before starting

A Google Ads account

You need Manager account (MCC) access if you manage multiple client accounts. Standard account access works for a single account.

Claude Code installed

If you have not installed it yet, follow the installation guide first. It takes about 10 minutes.

A Google account with Google Cloud access

This is typically the same Google account linked to your Google Ads account. Google Cloud Console is free to access.

About 45 minutes

The credential setup process involves several steps with Google. Do not rush it. Do it once correctly and you will not need to repeat it.

Step-by-step setup

01

Apply for a Google Ads API developer token

The Google Ads API requires a developer token. This is different from an API key - it is a token specific to the Google Ads API that Google issues after a short application.

Go to your Google Ads account, click Tools, then under "Setup" find API Center. Click "Apply for access." For a basic token that works for personal or agency use, select "Basic Access." You will need to describe how you plan to use the API - write something like "automating reporting and analysis for my own Google Ads accounts."

Google typically approves basic access tokens within 24-48 hours. You will receive the token by email. Keep it - you will need it in Step 3.

02

Create OAuth2 credentials in Google Cloud Console

Go to console.cloud.google.com and create a new project (name it something like "Claude Code Google Ads"). In the left sidebar, go to APIs and Services, then Credentials.

Click "Create Credentials" and select "OAuth 2.0 Client IDs." For Application Type, choose "Desktop App." Give it a name like "Claude Code Local."

Click Create. Google will show you a Client ID and Client Secret. Download the JSON file - this is your credentials file. Do not share it or commit it to any repository.

03

Enable the Google Ads API in your project

Still in Google Cloud Console, go to APIs and Services, then Library. Search for "Google Ads API" and click Enable.

This links your Cloud project to the Google Ads API. Without this step, your credentials will not have permission to call the API even if everything else is set up correctly.

04

Configure the MCP connection in Claude Code

Create or edit the file at ~/.claude/config.json (Mac/Linux) or %APPDATA%\Claude\config.json (Windows). Add the Google Ads MCP server configuration:

{ "mcpServers": { "google-ads": { "command": "npx", "args": ["@anthropic-ai/mcp-google-ads"], "env": { "GOOGLE_ADS_DEVELOPER_TOKEN": "your-developer-token-here", "GOOGLE_ADS_CLIENT_ID": "your-client-id-here", "GOOGLE_ADS_CLIENT_SECRET": "your-client-secret-here", "GOOGLE_ADS_CUSTOMER_ID": "your-account-id-without-dashes" } } } }

Replace the placeholder values with the credentials from Steps 1-3. Your Customer ID is the 10-digit number in the top right of your Google Ads account (remove the dashes).

05

Authenticate and test the connection

Open a terminal and start Claude Code. On first run with the Google Ads MCP configuration, Claude Code will prompt you to complete OAuth authentication. It will open a browser window asking you to authorize access to your Google Ads account.

Approve the request. Claude Code will store the refresh token locally so you do not need to re-authenticate on subsequent runs.

Test the connection by typing: "Pull the last 7 days of campaign performance for all active campaigns in my Google Ads account."

If the setup worked, Claude Code will return a list of campaigns with impressions, clicks, cost, and conversions. If it returns an error, check that your developer token status is "Approved" in your Google Ads API Center.

First prompts to try after setup

Once the connection works, start with these. They give you immediate value and help you understand what the integration can do.

"Show me all campaigns with a cost per conversion above $50 in the last 30 days, sorted by spend."
"List all ad groups with no conversions in the last 60 days that have spent more than $100."
"Generate 10 Responsive Search Ad headline variations for [your product]. The headlines should be under 30 characters each and focus on [your main benefit]."
"Find my top 20 search terms by spend from the last 30 days and flag any that look irrelevant to [your business]."
"Compare my campaign performance this month vs last month. Highlight anything that changed by more than 20%."

Related guides

How to audit Google Ads with Claude Code →How to install Claude Code →Claude Code for Google Ads managers →

More Claude Code how-to guides

Learn how to set up GTM, audit campaigns, and automate reporting with step-by-step guides built for marketers.

Browse all how-to guides