google-ads-mcp
A typed MCP server that wraps the Google Ads API v20, enabling AI agents to manage campaigns, budgets, keywords, conversions, and run GAQL search via structured MCP tools.
README
<div align="center">
<a href="https://openpromo.app"> <img src="https://openpromo.app/logo.svg" width="80" alt="OpenPromo" /> </a>
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.
</div>
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:
| Area | Status |
|---|---|
| Google Ads API version | v20 |
| Implemented services | 90 / 103 |
| Coverage model | 1:1 service mapping where implemented |
| Type policy | Generated Google Ads protobuf types |
| Feature parity | docs/FEATURE_PARITY.md |
| Detailed audit | TRACKER.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
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:
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:
uv run main.py
Run every registered service group:
uv run main.py --groups all
Run a focused subset:
uv run main.py --groups core,assets,targeting,conversion
Available groups:
| Group | Includes |
|---|---|
core |
Customers, campaigns, budgets, ad groups, keywords, ads, conversions, GAQL |
assets |
Assets, asset groups, asset sets, campaign/ad group/customer assets |
targeting |
Criteria, geo targets, audiences, custom interests, user lists |
bidding |
Strategies, bid modifiers, data exclusions, seasonality adjustments |
planning |
Keyword plans, reach planning, brand suggestions |
reporting |
Search, fields, recommendations, invoices, audience insights |
conversion |
Uploads, adjustments, value rules, goals, user data, remarketing |
organization |
Labels, shared sets, shared criteria |
customizers |
Customizer attributes, campaign/ad group/customer customizers, ad parameters |
account |
Access, manager links, billing, payments, identity, product/data links |
other |
Smart campaigns, batch jobs, user data |
MCP Client
Example stdio configuration:
{
"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
# Format
uv run ruff format .
# Type check
uv run pyright
# Test
uv run pytest
When adding a service:
- Check the Google Ads API v20 generated service types.
- Implement the service wrapper with generated protobuf request, operation, resource, and enum types.
- Register lightweight MCP tools for the service.
- Add focused tests.
- Update
TRACKER.md. - Run
uv run ruff format .anduv run pyright.
Related
| Project | Description |
|---|---|
| OpenPromo | AI-native workspace for creating, publishing, and managing ads |
@promobase/ad-platforms |
TypeScript ad platform SDK with AI SDK tools for Meta, TikTok, and Google Ads work |
promobase/ad-platform-sdks |
Source 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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。