google-ads-mcp logo

google-ads-mcp

Organization
promobase

A typed MCP server for letting AI agents operate Google Ads.

Publisherpromobase
Repositorygoogle-ads-mcp
LanguagePython
Forks
16
Stars
22
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    google-ads-mcp exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    22 stars and 16 forks from the linked repository.

google-ads-mcp

A typed MCP server for letting AI agents operate Google Ads.

Built by Promobase for OpenPromo, the AI-native workspace for creating, publishing, and managing ads.

Python Google Ads API FastMCP CI License


What

google-ads-mcp wraps the official Google Ads Python SDK in a Model Context Protocol server. It exposes Google Ads API v20 services as typed MCP tools, so LLMs and agent runtimes can safely inspect accounts, create campaigns, manage budgets, upload conversions, work with assets, and run GAQL search.

This repo is the Google Ads execution layer behind OpenPromo's agent workflows. For application-facing, multi-platform ad publishing and inbox automation, use the companion SDK:

@promobase/ad-platforms - one TypeScript SDK for Meta, TikTok, and soon Google Ads, with AI SDK tools and production clients for ad platform automation.

Why

Google Ads has a large, typed API surface, but it is hard for agents to use directly. This server keeps the reliability of the official Python SDK while giving agents a structured tool interface:

  • Official SDK foundation - built on google-ads, including its auth, retries, paging, and protobuf types.
  • Typed service wrappers - implementations use Google Ads API v20 generated service, resource, enum, and operation types.
  • Agent-ready MCP tools - FastMCP servers grouped by workflow: core, assets, targeting, bidding, planning, reporting, conversions, account management, and more.
  • GAQL access - search and metadata tools for reporting, discovery, and account inspection.
  • Production-oriented scope - designed for OpenPromo's ads loop: generate creative, build campaigns, publish, measure, and iterate.

Coverage

Current tracker status:

AreaStatus
Google Ads API versionv20
Implemented services90 / 103
Coverage model1:1 service mapping where implemented
Type policyGenerated Google Ads protobuf types
Feature paritydocs/FEATURE_PARITY.md
Detailed auditTRACKER.md

Core campaign, ad group, ad, budget, keyword, conversion, asset, audience, recommendation, account, billing, and reporting workflows are implemented. The scannable parity table lives in docs/FEATURE_PARITY.md; detailed implementation notes live in TRACKER.md.

Install

bash
git clone https://github.com/promobase/google-ads-mcp.git
cd google-ads-mcp
uv sync

Create a .env file or export the required Google Ads credentials:

bash
GOOGLE_ADS_DEVELOPER_TOKEN="your_developer_token"
GOOGLE_ADS_CLIENT_ID="your_client_id"
GOOGLE_ADS_CLIENT_SECRET="your_client_secret"
GOOGLE_ADS_REFRESH_TOKEN="your_refresh_token"
GOOGLE_ADS_LOGIN_CUSTOMER_ID="optional_manager_customer_id"

See .env.example for the full credential template.

Run

Run the default core tool group:

bash
uv run main.py

Run every registered service group:

bash
uv run main.py --groups all

Run a focused subset:

bash
uv run main.py --groups core,assets,targeting,conversion

Available groups:

GroupIncludes
coreCustomers, campaigns, budgets, ad groups, keywords, ads, conversions, GAQL
assetsAssets, asset groups, asset sets, campaign/ad group/customer assets
targetingCriteria, geo targets, audiences, custom interests, user lists
biddingStrategies, bid modifiers, data exclusions, seasonality adjustments
planningKeyword plans, reach planning, brand suggestions
reportingSearch, fields, recommendations, invoices, audience insights
conversionUploads, adjustments, value rules, goals, user data, remarketing
organizationLabels, shared sets, shared criteria
customizersCustomizer attributes, campaign/ad group/customer customizers, ad parameters
accountAccess, manager links, billing, payments, identity, product/data links
otherSmart campaigns, batch jobs, user data

MCP Client

Example stdio configuration:

json
{
  "mcpServers": {
    "google-ads": {
      "command": "uv",
      "args": ["run", "main.py", "--groups", "all"],
      "cwd": "/path/to/google-ads-mcp",
      "env": {
        "GOOGLE_ADS_DEVELOPER_TOKEN": "...",
        "GOOGLE_ADS_CLIENT_ID": "...",
        "GOOGLE_ADS_CLIENT_SECRET": "...",
        "GOOGLE_ADS_REFRESH_TOKEN": "..."
      }
    }
  }
}

Use narrower groups for production agents when you want to reduce tool count and keep routing focused.

Development

bash
# Format
uv run ruff format .

# Type check
uv run pyright

# Test
uv run pytest

When adding a service:

  1. Check the Google Ads API v20 generated service types.
  2. Implement the service wrapper with generated protobuf request, operation, resource, and enum types.
  3. Register lightweight MCP tools for the service.
  4. Add focused tests.
  5. Update TRACKER.md.
  6. Run uv run ruff format . and uv run pyright.

Related

ProjectDescription
OpenPromoAI-native workspace for creating, publishing, and managing ads
@promobase/ad-platformsTypeScript ad platform SDK with AI SDK tools for Meta, TikTok, and Google Ads work
promobase/ad-platform-sdksSource repo for Promobase's multi-platform ad SDKs

License

MIT © Promobase

Disclaimer

This is an unofficial Google Ads API integration. It is not affiliated with, endorsed by, or supported by Google.

Installation

TypingMind
{
  "mcpServers": {
    "google-ads-mcp": {
      "command": "uv",
      "args": [
        "run",
        "main.py",
        "--groups",
        "all"
      ],
      "env": {
        "GOOGLE_ADS_DEVELOPER_TOKEN": "<GOOGLE_ADS_DEVELOPER_TOKEN>",
        "GOOGLE_ADS_CLIENT_ID": "<GOOGLE_ADS_CLIENT_ID>",
        "GOOGLE_ADS_CLIENT_SECRET": "<GOOGLE_ADS_CLIENT_SECRET>",
        "GOOGLE_ADS_REFRESH_TOKEN": "<GOOGLE_ADS_REFRESH_TOKEN>"
      }
    }
  }
}

Use google-ads-mcp MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once google-ads-mcp is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add google-ads-mcp as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the google-ads-mcp MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "google-ads-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the google-ads-mcp MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the google-ads-mcp MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use google-ads-mcp to help me with this task?
google-ads-mcp
Sure. I read it.
Here is what I found using google-ads-mcp.

Frequently asked questions

What is the google-ads-mcp MCP server used for?

google-ads-mcp is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use google-ads-mcp MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use google-ads-mcp with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use google-ads-mcp MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With google-ads-mcp connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect google-ads-mcp MCP to TypingMind?

google-ads-mcp runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does google-ads-mcp MCP provide in TypingMind?

google-ads-mcp exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use google-ads-mcp MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If google-ads-mcp requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇