npx skills add ...
npx skills add openclaudia/openclaudia-skills --skill google-ads-report
Pull Google Ads performance data and generate reports. Use when asked about ad campaign performance, keyword costs, quality scores, ROAS, conversion tracking, or ad spend analysis. Trigger phrases: "google ads", "adwords", "campaign performance", "ad spend", "quality score", "CPC report", "ROAS", "ad conversion", "keyword performance", "google ads report".
npx skills add openclaudia/openclaudia-skills --skill google-ads-report
Pull campaign, keyword, and conversion data from the Google Ads API.
Requires:
GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET (OAuth)GOOGLE_ADS_DEVELOPER_TOKEN (apply at https://ads.google.com/home/tools/manager-accounts/)GOOGLE_ADS_CUSTOMER_ID (the account ID, format: XXX-XXX-XXXX, passed without dashes)GOOGLE_ADS_LOGIN_CUSTOMER_ID (if using a manager account, the manager account ID)Set in .env, .env.local, or ~/.claude/.env.global.
Google Ads API uses GAQL (Google Ads Query Language) via REST.
Headers:
Overview of all campaigns with key metrics.
All cost values in Google Ads API are in micros (1/1,000,000 of the currency unit). Divide by 1,000,000 to get the actual amount.
See how individual keywords perform.
Quality Score Components:
See what users actually searched for (vs. your keywords).
Use this to:
Use these built-in date ranges in GAQL:
TODAY, YESTERDAYLAST_7_DAYS, LAST_14_DAYS, LAST_30_DAYSTHIS_MONTH, LAST_MONTHTHIS_QUARTER, LAST_QUARTERsegments.date BETWEEN '2024-01-01' AND '2024-03-31'When asked for a full ads report:
| Error | Cause |
|---|---|
AUTHENTICATION_ERROR | Invalid or expired access token |
AUTHORIZATION_ERROR | Developer token issue or account access |
REQUEST_ERROR | GAQL syntax error |
QUOTA_ERROR | API quota exceeded |
WHERE segments.date DURING ... (required for most metric queries)REMOVED status filter incorrectlycostMicros division by 1,000,000searchStream instead of search for large result sets (no pagination needed)