← 返回
未分类 中文

Google Ads

Inspect Google Ads accounts and campaigns, run GAQL reports, and coordinate campaign or audience changes with confirmation via the Google Ads API. Use this s...
检查Google Ads账户和广告系列,运行GAQL报告,并通过Google Ads API确认协调广告系列或受众变更。
hith3sh hith3sh 来源
未分类 clawhub v1.0.5 2 版本 99935.4 Key: 无需
★ 6
Stars
📥 1,428
下载
💾 1
安装
2
版本
#latest

概述

Google Ads

!Google Ads

Access Google Ads via the Google Ads API with OAuth authentication. Inspect accounts and campaigns, run GAQL reports, and coordinate campaign or audience changes.

This skill uses ClawLink for hosted connection flows and credentials so you do not need to configure Google Ads API access yourself.

Setup in 3 Steps

Step 1: InstallStep 2: Pair AccountStep 3: Connect Google Ads
:---::---::---:
!Install!PairApp-specific connection GIF coming soon
Run the install command in OpenClawSign in and approve the deviceOpen the dashboard and connect Google Ads

How It Works

┌─────────────────┐     ┌──────────────┐     ┌──────────────────┐
│   OpenClaw      │────▶│   ClawLink   │────▶│  Google Ads API  │
│   (User Chat)   │     │   (OAuth)    │     │   (REST/GAQL)    │
└─────────────────┘     └──────────────┘     └──────────────────┘
         │                       │                       │
         │  1. Install Plugin    │                       │
         │  2. Pair Device       │                       │
         │  3. Connect Google Ads                        │
         │                       │  4. Secure Token      │
         │                       │  5. Proxy Requests    │
         │                       │                       │
         ▼                       ▼                       ▼
   ┌──────────┐           ┌──────────┐           ┌──────────┐
   │  SKILL   │           │ Dashboard│           │ Google   │
   │  File    │           │ Auth     │           │ Ads      │
   └──────────┘           └──────────┘           └──────────┘

Install

Install the verified ClawLink plugin from ClawHub. After the user confirms, complete the full setup so ClawLink tools are visible in the next OpenClaw chat.

openclaw plugins install clawhub:clawlink-plugin
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
openclaw gateway restart

Then tell the user: "OpenClaw has been restarted. Send /new as a standalone message to start a fresh chat, then ask for Google Ads again."

Quick Start

# List accessible customers
clawlink_call_tool --tool "google_ads_list_accessible_customers" --params '{}'

# Get campaign details
clawlink_call_tool --tool "google_ads_get_campaign" --params '{"customer_id": "123-456-7890", "campaign_id": 123456789}'

# Run a GAQL report
clawlink_call_tool --tool "google_ads_search" --params '{"customer_id": "123-456-7890", "query": "SELECT campaign.id, campaign.name, metrics.impressions FROM campaign WHERE segments.date DURING LAST_7_DAYS"}'

Authentication

All Google Ads tool calls are authenticated automatically by ClawLink using the user's connected Google account.

No API key is required in chat. ClawLink stores the OAuth token securely and injects it into every Google Ads API request on the user's behalf.

Getting Connected

  1. Install the ClawLink plugin (see Install above).
  2. Pair the plugin with clawlink_begin_pairing if it is not configured yet.
  3. Open https://claw-link.dev/dashboard?add=google-ads and connect Google Ads.
  4. Call clawlink_list_integrations to verify the connection is active.

Connection Management

List Connections

clawlink_list_integrations

Response: Returns all connected integrations. Look for google-ads in the list.

Verify Connection

clawlink_list_tools --integration google-ads

Response: Returns the live tool catalog for Google Ads.

Reconnect

If Google Ads tools are missing or the connection shows an error:

  1. Direct the user to https://claw-link.dev/dashboard?add=google-ads
  2. After they confirm, call clawlink_list_integrations to verify
  3. Then call clawlink_list_tools --integration google-ads

Security & Permissions

  • Access is scoped to Google Ads accounts accessible to the connected Google account.
  • All write operations require explicit user confirmation. Before executing any campaign, ad group, or audience changes, confirm the intended effect with the user.
  • Destructive actions (pausing campaigns, removing audiences) are marked as high-impact and must be confirmed.
  • GAQL queries are read-only and do not modify account data.

Tool Reference

Account & Customer Management

ToolDescriptionMode
-------------------------
google_ads_list_accessible_customersList all customer accounts accessible to the userRead
google_ads_get_customerGet customer account detailsRead

Campaigns

ToolDescriptionMode
-------------------------
google_ads_list_campaignsList campaigns for a customerRead
google_ads_get_campaignGet campaign details by IDRead
google_ads_create_campaignCreate a new campaignWrite
google_ads_update_campaignUpdate campaign settingsWrite

Ad Groups

ToolDescriptionMode
-------------------------
google_ads_list_ad_groupsList ad groups in a campaignRead
google_ads_get_ad_groupGet ad group detailsRead
google_ads_create_ad_groupCreate a new ad groupWrite

Audiences & Customer Lists

ToolDescriptionMode
-------------------------
google_ads_list_audiencesList audiences for a customerRead
google_ads_list_customer_listsList customer match listsRead
google_ads_create_customer_listCreate a new customer listWrite
google_ads_add_customer_list_membersAdd members to a customer listWrite

Reporting

ToolDescriptionMode
-------------------------
google_ads_searchRun a GAQL query and return resultsRead
google_ads_get_campaign_budgetGet campaign budget detailsRead

Code Examples

List campaigns

clawlink_call_tool --tool "google_ads_list_campaigns" \
  --params '{
    "customer_id": "123-456-7890"
  }'

Run a GAQL report

clawlink_call_tool --tool "google_ads_search" \
  --params '{
    "customer_id": "123-456-7890",
    "query": "SELECT campaign.id, campaign.name, campaign.status, metrics.impressions, metrics.clicks, metrics.cost_micros FROM campaign WHERE segments.date DURING LAST_30_DAYS"
  }'

Create a customer list

clawlink_call_tool --tool "google_ads_create_customer_list" \
  --params '{
    "customer_id": "123-456-7890",
    "name": "High Value Customers",
    "description": "List of high-value customer emails for remarketing"
  }'

Update campaign status

clawlink_call_tool --tool "google_ads_update_campaign" \
  --params '{
    "customer_id": "123-456-7890",
    "campaign_id": 123456789,
    "status": "PAUSED"
  }'

Discovery Workflow

  1. Call clawlink_list_integrations to confirm Google Ads is connected.
  2. Call clawlink_list_tools --integration google-ads to see the live catalog.
  3. Treat the returned list as the source of truth. Do not guess or assume what tools exist.
  4. If the user describes a capability but the exact tool is unclear, call clawlink_search_tools with a short query and integration google-ads.
  5. If no Google Ads tools appear, direct the user to https://claw-link.dev/dashboard?add=google-ads.

Execution Workflow

┌─────────────────────────────────────────────────────────────┐
│  READ OPERATIONS (Safe)                                     │
│  list → get → search (GAQL) → call                          │
│                                                             │
│  Example: List campaigns → Get campaign → Run GAQL report   │
└─────────────────────────────────────────────────────────────┘
                              │
                              ▼
┌─────────────────────────────────────────────────────────────┐
│  WRITE OPERATIONS (Require Confirmation)                    │
│  describe → preview → confirm → create/update               │
│                                                             │
│  Example: Preview campaign change → User confirms           │
│           → Execute update                                   │
└─────────────────────────────────────────────────────────────┘
  1. For unfamiliar tools, ambiguous requests, or any write action, call clawlink_describe_tool first.
  2. Use the returned guidance, schema, whenToUse, askBefore, safeDefaults, examples, and followups to shape the call.
  3. Prefer account inspection, campaign reads, and GAQL queries before writes.
  4. For campaign, ad group, or audience changes, call clawlink_preview_tool first, then confirm with the user.
  5. Execute with clawlink_call_tool. Pass confirmation only after the preview matches the user's intent.
  6. If the tool call fails, report the real error. Do not invent results or restate the failure as a missing capability unless the live catalog supports that conclusion.

Notes

  • Customer IDs use format 123-456-7890 (hyphen-separated, not dashes in the API).
  • GAQL queries must use valid Google Ads field names and resources. Invalid queries return 400 errors.
  • Campaign and ad group IDs are unique within a customer account but may conflict across accounts.
  • Some features require Google Ads API permissions granted during OAuth consent.

Error Handling

Status / ErrorMeaning
-------------------------
Tool not foundThe tool name does not exist in the current catalog. Verify with clawlink_list_tools --integration google-ads.
Missing connectionGoogle Ads is not connected. Direct the user to https://claw-link.dev/dashboard?add=google-ads.
404 Not FoundCampaign, ad group, or customer ID does not exist.
400 Bad RequestInvalid GAQL query syntax or invalid parameter values.
403 ForbiddenInsufficient OAuth scopes or permissions.
Write rejectedUser did not confirm a write action. Always confirm before executing writes.

Troubleshooting: Tools Not Visible

  1. Check that the ClawLink plugin is installed:

```bash

openclaw plugins list

```

  1. If the plugin is installed but tools are missing, tell the user to send /new as a standalone message to reload the catalog.
  2. If a fresh chat does not help, run:

```bash

openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json

openclaw gateway restart

```

  1. After restart, tell the user to send /new again and retry.

Troubleshooting: Invalid Tool Call

  1. Ensure the integration slug is exactly google-ads.
  2. Use clawlink_describe_tool to verify parameter names and types before calling.
  3. For write operations, always call clawlink_preview_tool first.

Resources


Powered by ClawLink — an integration hub for OpenClaw

!ClawLink Logo

版本历史

共 2 个版本

  • v1.0.5 当前
    2026-06-09 16:17 安全 安全
  • v0.1.1
    2026-05-08 00:49 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

business-ops

Stripe

byungkyu
Stripe API 集成,支持托管 OAuth,实现对客户、订阅、发票、产品、价格和支付的可写金融集成。
★ 27 📥 26,041
business-ops

Trello

steipete
使用 Trello REST API 管理看板、列表和卡片
★ 162 📥 41,312
dev-programming

GitHub

hith3sh
通过 GitHub REST 和GraphQL API 与仓库、议题、拉取请求、提交、分支、发布和工作流进行交互。在需要时使用此技能。
★ 6 📥 1,958