Google Ads
Google Ads has 3 operations in gum's generated catalog. Start with search when you know the task, use describe to inspect request fields and scopes, then dispatch through the command that matches the operation risk class.
| Count | Value |
|---|---|
| Family | Ads and maps |
| Operations | 3 |
| Risk classes | 3 read |
| Auth strategies | 3 byo_oauth |
Start here
gum search "google ads"
gum describe googleads.keywordPlanIdeas.generateKeywordForecastMetrics
gum read googleads.keywordPlanIdeas.generateKeywordForecastMetrics --args '{"customerId":"<customerId>","keywords":[]}' --output jsonAuth
Auth strategies in this service: 3 byo_oauth. Authenticate the strategy used by the operation you plan to call.
Bring-your-own OAuth
- In Google Cloud, enable Google Ads API.
- Configure the OAuth consent screen. Add your Google account as a test user when the app is still in testing mode.
- Create an OAuth client ID with application type
Desktop app. - Add the scopes this service needs to the consent screen.
- Store the client in gum:
printf '%s' "$GOOGLE_OAUTH_CLIENT_SECRET" \
| gum auth use-oauth-client --client-id "$GOOGLE_OAUTH_CLIENT_ID" --secret-stdin- Store the Google Ads developer token:
printf '%s' "$GOOGLE_ADS_DEVELOPER_TOKEN" | gum auth use-ads-developer-token --stdin- Authorize this service:
gum login --service googleads- Verify the grant before dispatch:
gum auth status --scopes adwords
gum describe googleads.keywordPlanIdeas.generateKeywordForecastMetricsScopes used by these operations:
https://www.googleapis.com/auth/adwords
Service setup notes: Google Ads auth guide.
Operations
| Operation | Risk | Auth | Summary |
|---|---|---|---|
googleads.keywordPlanIdeas.generateKeywordForecastMetrics |
read |
byo_oauth |
Forecast clicks, impressions, cost, and CTR for a list of keywords over a future date range at a given max CPC. Needs keywords; for full campaign control pass a raw body. |
googleads.keywordPlanIdeas.generateKeywordHistoricalMetrics |
read |
byo_oauth |
Fetch historical metrics (average monthly searches, per-month search volumes, competition index, top-of-page bid ranges) for a fixed list of keywords. Needs keywords. |
googleads.keywordPlanIdeas.generateKeywordIdeas |
read |
byo_oauth |
Discover new keyword ideas with monthly search volume, competition, and top-of-page bid ranges from a seed of keywords and/or a landing-page URL. Needs keywords and/or url. |
Next
- Use API workflows for search, describe, invoke, and error handling.
- Use Auth guides for service-specific Google setup.
- Use Command index for CLI flags and generated help.
