mcpField
G
google-ads-mcp

google-ads-mcp

github.com/itallstartedwithaideaMarketing & growth4237 installsUpdated 28w ago
Repository

About google-ads-mcp

A setup skill for connecting google-ads-mcp to MCP clients, aimed at people managing Google Ads accounts. It covers account analysis and guarded campaign changes through the server’s tools.

Key features

  1. 01Google Ads credential setup
  2. 02Account and campaign reporting
  3. 03GAQL query execution
  4. 04Audits and optimization data
  5. 05Dry-run campaign mutations
  6. 06GAQL and workflow references

Use cases

  1. 01Review campaign, keyword, or ad performance
  2. 02Inspect search terms and wasted spend
  3. 03Preview budget or bidding changes
  4. 04Create or update campaigns after review

MCP support

Configures and runs the google-ads-mcp MCP server for clients such as Claude Code, Claude Desktop, and Cursor. The server exposes Google Ads reporting, audit, documentation, and mutation tools.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/itallstartedwithaidea/google-ads-skills --skill google-ads-mcp

After installing, type/google-ads-mcpin Claude Code to confirm it loaded.

Details

From the project README

Google Ads MCP Server

This skill configures the google-ads-mcp server for live Google Ads API access through Claude Code, Claude Desktop, Cursor, or any MCP client.

Quick Setup

1. Install
pip install git+https://github.com/itallstartedwithaidea/google-ads-mcp.git
2. Configure Credentials

Create a .env file or set environment variables:

GOOGLE_ADS_DEVELOPER_TOKEN=your-developer-token
GOOGLE_ADS_CLIENT_ID=your-oauth-client-id
GOOGLE_ADS_CLIENT_SECRET=your-oauth-client-secret
GOOGLE_ADS_REFRESH_TOKEN=your-refresh-token
GOOGLE_ADS_LOGIN_CUSTOMER_ID=123-456-7890

Or point to an existing google-ads.yaml:

GOOGLE_ADS_CREDENTIALS=/path/to/google-ads.yaml
GOOGLE_ADS_LOGIN_CUSTOMER_ID=123-456-7890
3. Run
python -m ads_mcp.server

Claude Code Configuration

Place .mcp.json in your project root:

{
  "mcpServers": {
    "google-ads": {
      "type": "stdio",
      "command": "python",
      "args": ["-m", "ads_mcp.server"],
      "env": {
        "GOOGLE_ADS_CREDENTIALS": "${GOOGLE_ADS_CREDENTIALS}",
        "GOOGLE_ADS_LOGIN_CUSTOMER_ID": "${GOOGLE_ADS_LOGIN_CUSTOMER_ID}"
      }
    }
  }
}

Claude Code auto-discovers .mcp.json and loads the server on startup.

Claude Desktop Configuration

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "google-ads": {
      "command": "python",
      "args": ["-m", "ads_mcp.server"],
      "env": {
        "GOOGLE_ADS_CREDENTIALS": "/path/to/google-ads.yaml",
        "GOOGLE_ADS_LOGIN_CUSTOMER_ID": "123-456-7890"
      }
    }
  }
}

Available Tools (29)

Read Tools (9)
ToolDescription
list_accessible_customersList all accessible customer accounts
list_accountsList accounts under an MCC with details
execute_gaqlRun custom GAQL queries
get_campaign_performanceCampaign metrics with date range
get_keyword_performanceKeyword metrics and quality scores
get_search_termsSearch term report with wasted spend
get_ad_performanceAd creative performance
get_account_budget_summaryBudget utilization analysis
generate_keyword_ideasKeyword Planner search volume and CPC
Audit Tools (7)
ToolDescription
get_auction_insightsCompetitive auction data
get_change_historyRecent account changes
get_device_performancePerformance by device type
get_geo_performancePerformance by location
get_recommendationsGoogle's optimization suggestions
get_pmax_performancePerformance Max campaign data
get_impression_shareImpression share and lost opportunity
Write Tools (11) — dry-run by default
ToolDescription
update_campaign_budgetChange daily budget
update_campaign_statusPause or enable a campaign
update_ad_group_statusPause or enable an ad group
update_keyword_bidChange keyword CPC bid
add_keywordsAdd keywords to an ad group
add_negative_keywordsAdd negative keywords
remove_negative_keywordRemove a negative keyword
create_campaignCreate a new campaign (paused)
create_ad_groupCreate a new ad group
switch_bidding_strategyChange bidding strategy
generic_mutateRaw Google Ads API mutation

All write tools use confirm=False by default (dry-run preview). Pass confirm=True only after reviewing the preview.

Doc Tools (2)
ToolDescription
get_gaql_referenceGAQL syntax and field reference
get_workflow_guideStep-by-step workflow instructions

Credential Sources

ValueWhere to Get It
Developer Tokenads.google.com → Tools & Settings → API Center
Client IDconsole.cloud.google.com → Credentials
Client Secretconsole.cloud.google.com → Credentials
Refresh TokenOAuth Playground or google-ads Python auth helper
Login Customer IDYour MCC account ID (top of Google Ads UI)

Troubleshooting

ProblemFix
UNAUTHENTICATEDRefresh token expired — regenerate via OAuth Playground
PERMISSION_DENIEDAccount not accessible under your MCC
DEVELOPER_TOKEN_NOT_APPROVEDApply for Basic Access at ads.google.com → API Center
Rate limit exceededBasic Access: 15K ops/day. Use LIMIT clauses and filters.

Related

Comments

Markdown supported