Google Ads Agent
Create, manage, and optimize Google Search Ads campaigns directly from Claude Code. Powered by AdAgent.
Security & Data Handling
- - MCP link is a credential: Your MCP Server URL (
https://adagent.10xboost.org/api/mcp/google-ads/{user_id}/mcp) contains your user ID for credential lookup. Treat it like a password — do not share it publicly. - Token scope: The service uses your Google Ads OAuth refresh token to access your ad accounts. It can create campaigns, modify budgets, enable/pause campaigns, and read performance data.
- Token storage: Your Google Ads OAuth tokens are encrypted with Fernet (AES-128-CBC + HMAC) and stored in MongoDB. They are never exposed in API responses.
- Multi-tenant isolation: Each request is scoped to your user credentials via ASGI middleware. You can only access your own ad accounts.
- No local credentials: No local API keys, environment variables, or secrets are needed. All auth is embedded in the MCP link.
- Third-party service: This skill relies on AdAgent, an AI-powered ad management platform.
Prerequisites
- 1. Sign up at adagent.10xboost.org with Google
- Connect Google Ads — authorize AdAgent to access your Google Ads account
- Get your MCP link: Copy your Google Ads MCP Server URL from the dashboard
- Add to Claude: Paste the MCP link as a Connector — no install, no API key needed
Available Tools
| Tool | Description |
|---|
| INLINECODE1 | List all accessible Google Ads accounts (MCC + sub-accounts) |
| INLINECODE2 |
Get account details (name, type, etc.) |
|
list_campaigns | List all campaigns (active + paused) |
|
create_campaign | Create a complete Search Ads campaign (budget, ad group, keywords, ads) |
|
get_performance | Get all campaigns performance (impressions, clicks, cost, CTR, CPC) |
|
get_campaign_performance | Get daily performance for a specific campaign |
|
keyword_research | Research keywords — get suggestions and search volume |
|
enable_campaign | Enable a paused campaign |
|
pause_campaign | Pause an active campaign |
Workflow
Step 1: List Accounts
Call list_accessible_customers to see all available Google Ads accounts. Then get_customer_info for details.
Step 2: Determine What the User Wants
| User Request | Tool to Use |
|---|
| "Show my Google Ads accounts" | INLINECODE12 |
| "List my campaigns" |
list_campaigns |
| "How are my ads doing?" |
get_performance |
| "Campaign X performance" |
get_campaign_performance |
| "Research keywords for ..." |
keyword_research |
| "Create a search ad for ..." |
create_campaign |
| "Pause campaign X" |
pause_campaign |
| "Enable campaign X" |
enable_campaign |
Step 3: Execute
Check Performance
CODEBLOCK0
Keyword Research
CODEBLOCK1
Create Campaign
CODEBLOCK2
Important: Campaigns are created in PAUSED state. Use enable_campaign to activate.
Step 4: Present Results
- - Performance: Show key metrics in a table (impressions, clicks, CTR, CPC, cost, conversions)
- Keyword research: Show keywords ranked by search volume with competition level
- Campaign creation: Confirm campaign ID and remind user it's paused until enabled
Common Location IDs
| Location | ID |
|---|
| Taiwan | 2158 |
| United States |
2840 |
| Japan | 2392 |
| Hong Kong | 2344 |
| Singapore | 2702 |
Common Language IDs
| Language | ID |
|---|
| Chinese (Traditional) | 1018 |
| Chinese (Simplified) |
1017 |
| English | 1000 |
| Japanese | 1005 |
Error Handling
| Error | Solution |
|---|
| Account not found | Run list_accessible_customers to get valid IDs |
| Permission denied |
Reconnect Google Ads at adagent.10xboost.org |
| Budget too low | Google Ads has minimum budget requirements per market |
| Campaign creation failed | Verify all required fields (headlines >= 3, descriptions >= 2) |
| Token expired | Reconnect Google Ads at adagent.10xboost.org (refresh token is long-lived) |
Documentation
Product website: adagent.10xboost.org
Google Ads 代理
直接从 Claude Code 创建、管理和优化 Google 搜索广告系列。由 AdAgent 提供支持。
安全与数据处理
- - MCP 链接即凭证:您的 MCP 服务器 URL(https://adagent.10xboost.org/api/mcp/google-ads/{userid}/mcp)包含用于凭证查找的用户 ID。请像对待密码一样对待它——不要公开分享。
- 令牌范围:该服务使用您的 Google Ads OAuth 刷新令牌来访问您的广告账户。它可以创建广告系列、修改预算、启用/暂停广告系列以及读取效果数据。
- 令牌存储:您的 Google Ads OAuth 令牌使用 Fernet(AES-128-CBC + HMAC)加密并存储在 MongoDB 中。它们永远不会在 API 响应中暴露。
- 多租户隔离:每个请求都通过 ASGI 中间件限定在您的用户凭证范围内。您只能访问自己的广告账户。
- 无本地凭证:无需本地 API 密钥、环境变量或机密信息。所有身份验证都嵌入在 MCP 链接中。
- 第三方服务:此技能依赖于 AdAgent,一个由 AI 驱动的广告管理平台。
前提条件
- 1. 注册 adagent.10xboost.org(使用 Google 账号)
- 连接 Google Ads — 授权 AdAgent 访问您的 Google Ads 账户
- 获取您的 MCP 链接:从控制面板复制您的 Google Ads MCP 服务器 URL
- 添加到 Claude:将 MCP 链接粘贴为连接器 — 无需安装,无需 API 密钥
可用工具
| 工具 | 描述 |
|---|
| listaccessiblecustomers | 列出所有可访问的 Google Ads 账户(MCC + 子账户) |
| getcustomerinfo |
获取账户详细信息(名称、类型等) |
| list_campaigns | 列出所有广告系列(活跃 + 暂停) |
| create_campaign | 创建完整的搜索广告系列(预算、广告组、关键词、广告) |
| get_performance | 获取所有广告系列的效果(展示次数、点击次数、费用、点击率、每次点击费用) |
| get
campaignperformance | 获取特定广告系列的每日效果 |
| keyword_research | 研究关键词 — 获取建议和搜索量 |
| enable_campaign | 启用已暂停的广告系列 |
| pause_campaign | 暂停活跃的广告系列 |
工作流程
第 1 步:列出账户
调用 listaccessiblecustomers 查看所有可用的 Google Ads 账户。然后使用 getcustomerinfo 获取详细信息。
第 2 步:确定用户需求
| 用户请求 | 使用的工具 |
|---|
| 显示我的 Google Ads 账户 | listaccessiblecustomers |
| 列出我的广告系列 |
list_campaigns |
| 我的广告效果如何? | get_performance |
| 广告系列 X 的效果 | get
campaignperformance |
| 研究关于...的关键词 | keyword_research |
| 为...创建搜索广告 | create_campaign |
| 暂停广告系列 X | pause_campaign |
| 启用广告系列 X | enable_campaign |
第 3 步:执行
查看效果
get_performance(
start_date=2026-03-01,
end_date=2026-03-30
)
关键词研究
keyword_research(
keywords=[AI 代理, 自动化工具],
location_ids=[2158], // 2158=台湾, 2840=美国
language_id=1000 // 1000=中文
)
创建广告系列
create_campaign(
name=2026 春季促销,
dailybudgetusd=10.0,
keywords=[AI 代理, 自动化工具, AI 助手],
ad_headlines=[构建您的 AI 代理, 自动化您的工作, 免费试用 AI 代理],
ad_descriptions=[几分钟内创建强大的 AI 代理。, 通过 AI 自动化提高生产力。],
final_url=https://example.com,
location_ids=[2158],
language_id=1000
)
重要提示:广告系列创建时为暂停状态。使用 enable_campaign 激活。
第 4 步:呈现结果
- - 效果:以表格形式显示关键指标(展示次数、点击次数、点击率、每次点击费用、费用、转化次数)
- 关键词研究:按搜索量排序显示关键词及竞争程度
- 广告系列创建:确认广告系列 ID 并提醒用户广告系列处于暂停状态,需启用后才能运行
常用地点 ID
2840 |
| 日本 | 2392 |
| 香港 | 2344 |
| 新加坡 | 2702 |
常用语言 ID
1017 |
| 英语 | 1000 |
| 日语 | 1005 |
错误处理
| 错误 | 解决方案 |
|---|
| 未找到账户 | 运行 listaccessiblecustomers 获取有效 ID |
| 权限被拒绝 |
在 adagent.10xboost.org 重新连接 Google Ads |
| 预算过低 | Google Ads 对每个市场有最低预算要求 |
| 广告系列创建失败 | 验证所有必填字段(标题 >= 3,描述 >= 2) |
| 令牌已过期 | 在 adagent.10xboost.org 重新连接 Google Ads(刷新令牌长期有效) |
文档
产品网站:adagent.10xboost.org