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.
| Step 1: Install | Step 2: Pair Account | Step 3: Connect Google Ads |
|---|---|---|
| :---: | :---: | :---: |
| !Install | !Pair | App-specific connection GIF coming soon |
| Run the install command in OpenClaw | Sign in and approve the device | Open the dashboard and connect Google Ads |
┌─────────────────┐ ┌──────────────┐ ┌──────────────────┐
│ 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 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."
# 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"}'
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.
clawlink_begin_pairing if it is not configured yet.clawlink_list_integrations to verify the connection is active.clawlink_list_integrations
Response: Returns all connected integrations. Look for google-ads in the list.
clawlink_list_tools --integration google-ads
Response: Returns the live tool catalog for Google Ads.
If Google Ads tools are missing or the connection shows an error:
clawlink_list_integrations to verifyclawlink_list_tools --integration google-ads| Tool | Description | Mode |
|---|---|---|
| ------ | ------------- | ------ |
google_ads_list_accessible_customers | List all customer accounts accessible to the user | Read |
google_ads_get_customer | Get customer account details | Read |
| Tool | Description | Mode |
|---|---|---|
| ------ | ------------- | ------ |
google_ads_list_campaigns | List campaigns for a customer | Read |
google_ads_get_campaign | Get campaign details by ID | Read |
google_ads_create_campaign | Create a new campaign | Write |
google_ads_update_campaign | Update campaign settings | Write |
| Tool | Description | Mode |
|---|---|---|
| ------ | ------------- | ------ |
google_ads_list_ad_groups | List ad groups in a campaign | Read |
google_ads_get_ad_group | Get ad group details | Read |
google_ads_create_ad_group | Create a new ad group | Write |
| Tool | Description | Mode |
|---|---|---|
| ------ | ------------- | ------ |
google_ads_list_audiences | List audiences for a customer | Read |
google_ads_list_customer_lists | List customer match lists | Read |
google_ads_create_customer_list | Create a new customer list | Write |
google_ads_add_customer_list_members | Add members to a customer list | Write |
| Tool | Description | Mode |
|---|---|---|
| ------ | ------------- | ------ |
google_ads_search | Run a GAQL query and return results | Read |
google_ads_get_campaign_budget | Get campaign budget details | Read |
clawlink_call_tool --tool "google_ads_list_campaigns" \
--params '{
"customer_id": "123-456-7890"
}'
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"
}'
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"
}'
clawlink_call_tool --tool "google_ads_update_campaign" \
--params '{
"customer_id": "123-456-7890",
"campaign_id": 123456789,
"status": "PAUSED"
}'
clawlink_list_integrations to confirm Google Ads is connected.clawlink_list_tools --integration google-ads to see the live catalog.clawlink_search_tools with a short query and integration google-ads.┌─────────────────────────────────────────────────────────────┐
│ 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 │
└─────────────────────────────────────────────────────────────┘
clawlink_describe_tool first.whenToUse, askBefore, safeDefaults, examples, and followups to shape the call.clawlink_preview_tool first, then confirm with the user.clawlink_call_tool. Pass confirmation only after the preview matches the user's intent.123-456-7890 (hyphen-separated, not dashes in the API).| Status / Error | Meaning |
|---|---|
| ---------------- | --------- |
| Tool not found | The tool name does not exist in the current catalog. Verify with clawlink_list_tools --integration google-ads. |
| Missing connection | Google Ads is not connected. Direct the user to https://claw-link.dev/dashboard?add=google-ads. |
404 Not Found | Campaign, ad group, or customer ID does not exist. |
400 Bad Request | Invalid GAQL query syntax or invalid parameter values. |
403 Forbidden | Insufficient OAuth scopes or permissions. |
| Write rejected | User did not confirm a write action. Always confirm before executing writes. |
```bash
openclaw plugins list
```
/new as a standalone message to reload the catalog.```bash
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
openclaw gateway restart
```
/new again and retry.google-ads.clawlink_describe_tool to verify parameter names and types before calling.clawlink_preview_tool first.Powered by ClawLink — an integration hub for OpenClaw
共 2 个版本