googleads-automation
它能做什么
这个工具可以把 Google Ads 与 Google Analytics 连接起来,方便你查看广告数据。它可以列出已关联的账号、创建效果报告,还能检查你想分析的数据是否兼容。
适用场景
- ✓当你想知道哪些 Google Ads 账号已关联到你的 Google Analytics 时。
- ✓想创建广告系列效果的自定义报告时。
- ✓想确认某组指标和维度能否一起用于报告时。
技能链接
https://github.com/ComposioHQ/awesome-claude-skills/blob/master/composio-skills/googleads-automation/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“列出与 Google Analytics 资源 '123456789' 关联的 Google Ads 账号。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具通过 Rube MCP 系统访问你的 Google Analytics 数据。它会先检查连接是否有效,然后使用特定命令获取你需要的信息,比如账号列表或报告数据。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Google Ads Automation via Rube MCP
Access Google Ads data through Google Analytics integration, run performance reports, list linked Ads accounts, and analyze campaign metrics using Rube MCP (Composio).
Toolkit docs: composio.dev/toolkits/googleads
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active connection via
RUBE_MANAGE_CONNECTIONSwith toolkitgoogle_analytics - Always call
RUBE_SEARCH_TOOLSfirst to get current tool schemas
Setup
Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
- Verify Rube MCP is available by confirming
RUBE_SEARCH_TOOLSresponds - Call
RUBE_MANAGE_CONNECTIONSwith toolkitgoogle_analytics - If connection is not ACTIVE, follow the returned auth link to complete setup
- Confirm connection status shows ACTIVE before running any workflows
Note: Google Ads data is accessed through the Google Analytics toolkit integration. The tools below use GA4 properties linked to Google Ads accounts.
Core Workflows
1. List Google Ads Links for a Property
Use GOOGLE_ANALYTICS_ANALYTICS_ADMIN_PROPERTIES_GOOGLE_ADS to retrieve all Google Ads account links configured for a GA4 property.
Tool: GOOGLE_ANALYTICS_ANALYTICS_ADMIN_PROPERTIES_GOOGLE_ADS
Parameters:
- parent (required): Property resource name (format: "properties/{propertyId}")
- pageSize: Max results (1-200, default 50)
- pageToken: Pagination token
2. Run a GA4 Performance Report
Use GOOGLE_ANALYTICS_RUN_REPORT to run customized reports with dimensions, metrics, date ranges, and filters.
Tool: GOOGLE_ANALYTICS_RUN_REPORT
Parameters:
- property (required): Property resource (format: "properties/{property_id}")
- dimensions: Array of dimension objects (e.g., [{"name": "sessionCampaignName"}, {"name": "date"}])
- metrics: Array of metric objects (e.g., [{"name": "sessions"}, {"name": "totalRevenue"}])
- dateRanges: Array with startDate and endDate (e.g., [{"startDate": "2025-01-01", "endDate": "2025-01-31"}])
- dimensionFilter: Filter by dimension values
- metricFilter: Filter by metric values (applied after aggregation)
- orderBys: Sort results
- limit: Max rows to return (1-250000)
3. Check Dimension/Metric Compatibility
Use GOOGLE_ANALYTICS_CHECK_COMPATIBILITY to validate dimension and metric combinations before running a report.
Tool: GOOGLE_ANALYTICS_CHECK_COMPATIBILITY
Description: Validates compatibility of chosen dimensions or metrics
before running a report.
Note: Call RUBE_SEARCH_TOOLS to get the full schema for this tool.
4. List GA4 Accounts
Use GOOGLE_ANALYTICS_LIST_ACCOUNTS to enumerate all accessible Google Analytics accounts.
Tool: GOOGLE_ANALYTICS_LIST_ACCOUNTS
Parameters:
- pageSize: Max accounts to return
- pageToken: Pagination token
- showDeleted: Include soft-deleted accounts
5. List GA4 Properties Under an Account
Use GOOGLE_ANALYTICS_LIST_PROPERTIES to list properties for a specific GA4 account.
Tool: GOOGLE_ANALYTICS_LIST_PROPERTIES
Parameters:
- account (required): Account resource name (format: "accounts/{account_id}")
- pageSize: Max properties (1-200)
- pageToken: Pagination token
- showDeleted: Include trashed properties
6. Get Available Dimensions and Metrics
Use GOOGLE_ANALYTICS_GET_METADATA to discover all available fields for building reports.
Tool: GOOGLE_ANALYTICS_GET_METADATA
Description: Gets metadata for dimensions, metrics, and comparisons
for a GA4 property.
Note: Call RUBE_SEARCH_TOOLS to get the full schema for this tool.
Common Patterns
- Discover then report: Use
GOOGLE_ANALYTICS_LIST_ACCOUNTSto find account IDs, thenGOOGLE_ANALYTICS_LIST_PROPERTIESto find property IDs, thenGOOGLE_ANALYTICS_RUN_REPORTto pull data. - Validate before querying: Use
GOOGLE_ANALYTICS_CHECK_COMPATIBILITYto validate dimension/metric combinations before running reports to avoid 400 errors. - Campaign performance: Run reports with dimensions like
sessionCampaignName,sessionSource,sessionMediumand metrics likesessions,activeUsers,totalRevenue. - Ads link discovery: Use
GOOGLE_ANALYTICS_ANALYTICS_ADMIN_PROPERTIES_GOOGLE_ADSto find which Google Ads accounts are linked to each GA4 property.
…
常见问题
什么是 Rube MCP?
它是一个让 AI 与其他工具(比如 Google Analytics)交互,以获取并分析数据的系统。
我需要 API 密钥吗?
不需要。你只需在系统中设置好 Rube MCP,连接会自动完成。
我怎么知道数据是否适合做报告?
在创建报告之前,你可以使用“Check Compatibility”功能,确保你选择的指标和维度可以一起使用。
详情
作者的原始描述
Automate Google Ads analytics tasks via Rube MCP (Composio): list Google Ads links, run GA4 reports, check compatibility, list properties and accounts. Always search tools first for current schemas.
热度
- GitHub 星标
- 77k
- 排名
- #2111
- 许可证
- —
- 更新时间
- 2026/9/18
评论
- …
同一仓库的更多技能
artifacts-builder
77k帮助你的智能体构建复杂的用户界面。它借助现代技术,创建功能丰富的交互式网页。
brand-guidelines
77k帮助你的智能体把官方品牌色和字体应用到各类材料中。适合需要体现公司视觉形象的场景,保持视觉统一。
canvas-design
77k让你的智能体创作 .png 和 .pdf 格式的原创视觉作品。当用户需要海报、艺术作品或其他静态设计时使用。
changelog-generator
77k帮助你的智能体根据代码提交记录撰写面向用户的更新说明。它能把技术内容转换成通俗易懂的文字。