Community研究與資料分析github.com

ComposioHQ/googleads-automation

透過 Rube MCP (Composio) 自動化 Google Ads 分析任務:列出 Google Ads 連結、執行 GA4 報告、檢查相容性、列出資源和帳戶。請務必先搜尋工具以取得最新架構。

googleads-automation 是什麼?

這個技能讓您能透過 Rube MCP 和 Google Analytics 工具包,直接自動化 Google Ads 資料分析工作流程。它支援列出與 GA4 資源相關聯的 Google Ads 帳戶、執行自訂 GA4 成效報告(包含維度、指標與日期範圍),以及使用 `GOOGLE_ANALYTICS_CHECK_COMPATIBILITY` 驗證維度/指標組合以避免 400 錯誤。此外,您還可以使用 `GOOGLE_ANALYTICS_LIST_ACCOUNTS` 和 `GOOGLE_ANALYTICS_LIST_PROPERTIES` 來探索帳戶與資源,並使用 `GOOGLE_ANALYTICS_GET_METADATA` 發現可用的分析欄位。此技能適用於任何支援 MCP 的用戶端(例如 Claude Code、Cursor),依賴 Composio 的 Rube MCP 伺服器。設定步驟包括新增 MCP 端點、透過 Artifacts 管理連線,以及務必在執行任何工作流程前先呼叫 `RUBE_SEARCH_TOOLS` 以取得最新的工具架構。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComposioHQ/awesome-codex-skills/tree/main/composio-skills/googleads-automation

Installed? Explore more 研究與資料分析 skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

透過 Rube MCP 自動化 Google Ads

透過 Google Analytics 整合存取 Google Ads 資料、執行成效報告、列出已連結的 Ads 帳戶,並使用 Rube MCP (Composio) 分析廣告活動指標。

工具包文件:composio.dev/toolkits/googleads

先決條件

  • Rube MCP 必須已連線(RUBE_SEARCH_TOOLS 可用)
  • 透過 RUBE_MANAGE_CONNECTIONS 啟用 google_analytics 工具包的有效連線
  • 請務必先呼叫 RUBE_SEARCH_TOOLS 以取得當前工具架構

設定

取得 Rube MCP:在用戶端設定中將 https://rube.app/mcp 新增為 MCP 伺服器。無需 API 金鑰 — 只需新增端點即可使用。

  1. 確認 RUBE_SEARCH_TOOLS 有回應,以驗證 Rube MCP 是否可用
  2. 以 google_analytics 工具包呼叫 RUBE_MANAGE_CONNECTIONS
  3. 若連線狀態不是 ACTIVE,請依照回傳的驗證連結完成設定
  4. 在執行任何工作流程前,確認連線狀態顯示為 ACTIVE

注意:Google Ads 資料是透過 Google Analytics 工具包整合來存取。下列工具使用的是與 Google Ads 帳戶連結的 GA4 資源。

核心工作流程

1. 列出資源的 Google Ads 連結

使用 GOOGLE_ANALYTICS_ANALYTICS_ADMIN_PROPERTIES_GOOGLE_ADS 取得為 GA4 資源設定的所有 Google Ads 帳戶連結。

工具:GOOGLE_ANALYTICS_ANALYTICS_ADMIN_PROPERTIES_GOOGLE_ADS
參數:
  - parent(必填):資源名稱(格式:"properties/{propertyId}")
  - pageSize:最大結果數(1-200,預設 50)
  - pageToken:分頁令牌

2. 執行 GA4 成效報告

使用 GOOGLE_ANALYTICS_RUN_REPORT 執行自訂報告,可包含維度、指標、日期範圍和篩選條件。

工具:GOOGLE_ANALYTICS_RUN_REPORT
參數:
  - property(必填):資源名稱(格式:"properties/{property_id}")
  - dimensions:維度物件陣列(例如:[{"name": "sessionCampaignName"}, {"name": "date"}])
  - metrics:指標物件陣列(例如:[{"name": "sessions"}, {"name": "totalRevenue"}])
  - dateRanges:含 startDate 和 endDate 的陣列(例如:[{"startDate": "2025-01-01", "endDate": "2025-01-31"}])
  - dimensionFilter:依維度值篩選
  - metricFilter:依指標值篩選(匯總後套用)
  - orderBys:排序結果
  - limit:最大回傳行數(1-250000)

3. 檢查維度/指標相容性

使用 GOOGLE_ANALYTICS_CHECK_COMPATIBILITY 在執行報告前驗證維度和指標的組合。

工具:GOOGLE_ANALYTICS_CHECK_COMPATIBILITY
說明:在執行報告前,驗證所選維度或指標的相容性。
注意:請呼叫 RUBE_SEARCH_TOOLS 以取得此工具的完整架構。

4. 列出 GA4 帳戶

使用 GOOGLE_ANALYTICS_LIST_ACCOUNTS 列舉所有可存取的 Google Analytics 帳戶。

工具:GOOGLE_ANALYTICS_LIST_ACCOUNTS
參數:
  - pageSize:最大回傳帳戶數
  - pageToken:分頁令牌
  - showDeleted:包含軟刪除的帳戶

5. 列出帳戶底下的 GA4 資源

使用 GOOGLE_ANALYTICS_LIST_PROPERTIES 列出指定 GA4 帳戶的資源。

工具:GOOGLE_ANALYTICS_LIST_PROPERTIES
參數:
  - account(必填):帳戶名稱(格式:"accounts/{account_id}")
  - pageSize:最大資源數(1-200)
  - pageToken:分頁令牌
  - showDeleted:包含已移至垃圾桶的資源

6. 取得可用的維度與指標

使用 GOOGLE_ANALYTICS_GET_METADATA 探索所有可用欄位以建立報告。

工具:GOOGLE_ANALYTICS_GET_METADATA
說明:取得 GA4 資源的維度、指標和比較項目的中繼資料。
注意:請呼叫 RUBE_SEARCH_TOOLS 以取得此工具的完整架構。

常見模式

  • 探索後再報告:先使用 GOOGLE_ANALYTICS_LIST_ACCOUNTS 尋找帳戶 ID,再使用 GOOGLE_ANALYTICS_LIST_PROPERTIES 尋找資源 ID,最後使用 GOOGLE_ANALYTICS_RUN_REPORT 提取資料。
  • 查詢前先驗證:在執行報告前,使用 GOOGLE_ANALYTICS_CHECK_COMPATIBILITY 驗證維度/指標組合,以避免 400 錯誤。
  • 廣告活動成效:使用 sessionCampaignName、sessionSource、sessionMedium 等維度,以及 sessions、activeUsers、totalRevenue 等指標來執行報告。
  • Ads 連結探索:使用 GOOGLE_ANALYTICS_ANALYTICS_ADMIN_PROPERTIES_GOOGLE_ADS 尋找每個 GA4 資源連結了哪些 Google Ads 帳戶。
  • 欄位探索:在建構複雜報告前,使用 GOOGLE_ANALYTICS_GET_METADATA 列出所有可用的維度和指標。

已知陷阱

  • 維度/指標相容性:GA4 API 有嚴格的相容性規則。並非所有維度都能與所有指標搭配。人口統計維度(例如 userAgeBracket、userGender)通常與工作階段範圍的維度/篩選條件(例如 sessionCampaignName、sessionSource)不相容。
  • dateRange 不是維度:請勿在維度陣列中包含 dateRange。請改用 date、dateHour、year、month 或 week。
  • exits 無效:exits 在 GA4 中既不是有效的維度也不是有效的指標。
  • 資源 ID 格式:必須是 properties/{numeric_id}(例如 properties/123456789)。請勿使用 Google 帳戶 ID(長的 OAuth ID)。
  • 帳戶 ID 格式:必須是 accounts/{numeric_id},其中數字 ID 為 6-10 位數。
  • 篩選條件分離:請僅將 dimensionFilter 用於維度欄位,並僅將 metricFilter 用於指標欄位。混用會導致錯誤。
  • 每個報告請求最多 9 個維度和 10 個指標。

快速參考

動作工具主要參數
列出 Ads 連結GOOGLE_ANALYTICS_ANALYTICS_ADMIN_PROPERTIES_GOOGLE_ADSparent
執行報告GOOGLE_ANALYTICS_RUN_REPORTproperty、dimensions、metrics、dateRanges
檢查相容性GOOGLE_ANALYTICS_CHECK_COMPATIBILITY(透過 RUBE_SEARCH_TOOLS 取得完整架構)
列出帳戶GOOGLE_ANALYTICS_LIST_ACCOUNTSpageSize
列出資源GOOGLE_ANALYTICS_LIST_PROPERTIESaccount、pageSize
取得中繼資料GOOGLE_ANALYTICS_GET_METADATA(透過 RUBE_SEARCH_TOOLS 取得完整架構)

由 Composio 提供技術支援

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComposioHQ/-21risk-automation

Automate 21risk tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/-2chat-automation

Automate 2chat tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/ably-automation

Automate Ably tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abstract-automation

Automate Abstract tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abuselpdb-automation

Automate Abuselpdb tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abyssale-automation

Automate Abyssale tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accelo-automation

Automate Accelo tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accredible-certificates-automation

Automate Accredible Certificates tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/acculynx-automation

Automate Acculynx tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/active-campaign-automation

Automate ActiveCampaign tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/addresszen-automation

Automate Addresszen tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adobe-automation

Automate Adobe tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adrapid-automation

Automate Adrapid tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adyntel-automation

Automate Adyntel tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aeroleads-automation

Automate Aeroleads tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aero-workflow-automation

Automate Aero Workflow tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinda-automation

Automate Affinda tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinity-automation

Automate Affinity tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agencyzoom-automation

Automate Agencyzoom tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agent-deep-links

Build, validate, and troubleshoot deep links for Codex, Cursor, VS Code, Visual Studio, and similar tools. Use when users ask for clickable links (especially in Slack) that open threads, files, folders, or app settings.

相關技能