Google ads

From mvanhorn/printing-press-library · View interactive version

Google ads is an AI agent skill from the GitHub repository mvanhorn/printing-press-library. Google Ads API for account discovery, GAQL reporting, campaigns, budgets, assets, conversions, audiences, planning, and billing operations. Trigger phrases: `pull a Google Ads report`, `GAQL query`, `check campaign performance`, `use google-ads`.

How to use this skill

Skill file

Google Ads — Printing Press CLI

Prerequisites: Install the CLI

This skill drives the google-ads-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:

  1. Install via the Printing Press installer. It defaults binaries to $HOME/.local/bin on macOS/Linux and %LOCALAPPDATA%\Programs\PrintingPress\bin on Windows:

```bash

npx -y @mvanhorn/printing-press-library install google-ads --cli-only

```

  1. Verify: google-ads-pp-cli --version
  2. Ensure the reported install directory is on $PATH for the agent/runtime that will invoke this skill.

If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.6 or newer):

go install github.com/mvanhorn/printing-press-library/library/marketing/google-ads/cmd/google-ads-pp-cli@latest

If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.

Command Reference

audience_insights — Google Ads audience insights operations

customers — Google Ads customers operations

customers_account_budget_proposals — Google Ads customers account budget proposals operations

customers_account_links — Google Ads customers account links operations

customers_ad_group_ad_labels — Google Ads customers ad group ad labels operations

customers_ad_group_ads — Google Ads customers ad group ads operations

customers_ad_group_asset_sets — Google Ads customers ad group asset sets operations

customers_ad_group_assets — Google Ads customers ad group assets operations

customers_ad_group_bid_modifiers — Google Ads customers ad group bid modifiers operations

customers_ad_group_criteria — Google Ads customers ad group criteria operations

customers_ad_group_criterion_customizers — Google Ads customers ad group criterion customizers operations

customers_ad_group_criterion_labels — Google Ads customers ad group criterion labels operations

customers_ad_group_customizers — Google Ads customers ad group customizers operations

customers_ad_group_labels — Google Ads customers ad group labels operations

customers_ad_groups — Google Ads customers ad groups operations

customers_ad_parameters — Google Ads customers ad parameters operations

customers_ads — Google Ads customers ads operations

customers_asset_generations — Google Ads customers asset generations operations

customers_asset_group_assets — Google Ads customers asset group assets operations

customers_asset_group_listing_group_filters — Google Ads customers asset group listing group filters operations

customers_asset_group_signals — Google Ads customers asset group signals operations

customers_asset_groups — Google Ads customers asset groups operations

customers_asset_set_assets — Google Ads customers asset set assets operations

customers_asset_sets — Google Ads customers asset sets operations

customers_assets — Google Ads customers assets operations

customers_audiences — Google Ads customers audiences operations

customers_batch_jobs — Google Ads customers batch jobs operations

customers_bidding_data_exclusions — Google Ads customers bidding data exclusions operations

customers_bidding_seasonality_adjustments — Google Ads customers bidding seasonality adjustments operations

customers_bidding_strategies — Google Ads customers bidding strategies operations

customers_billing_setups — Google Ads customers billing setups operations

customers_campaign_asset_sets — Google Ads customers campaign asset sets operations

customers_campaign_assets — Google Ads customers campaign assets operations

customers_campaign_bid_modifiers — Google Ads customers campaign bid modifiers operations

customers_campaign_budgets — Google Ads customers campaign budgets operations

customers_campaign_conversion_goals — Google Ads customers campaign conversion goals operations

customers_campaign_criteria — Google Ads customers campaign criteria operations

customers_campaign_customizers — Google Ads customers campaign customizers operations

customers_campaign_drafts — Google Ads customers campaign drafts operations

customers_campaign_goal_configs — Google Ads customers campaign goal configs operations

customers_campaign_groups — Google Ads customers campaign groups operations

customers_campaign_labels — Google Ads customers campaign labels operations

customers_campaign_lifecycle_goal — Google Ads customers campaign lifecycle goal operations

customers_campaign_shared_sets — Google Ads customers campaign shared sets operations

customers_campaigns — Google Ads customers campaigns operations

customers_conversion_actions — Google Ads customers conversion actions operations

customers_conversion_custom_variables — Google Ads customers conversion custom variables operations

customers_conversion_goal_campaign_configs — Google Ads customers conversion goal campaign configs operations

customers_conversion_value_rule_sets — Google Ads customers conversion value rule sets operations

customers_conversion_value_rules — Google Ads customers conversion value rules operations

customers_custom_audiences — Google Ads customers custom audiences operations

customers_custom_conversion_goals — Google Ads customers custom conversion goals operations

customers_custom_interests — Google Ads customers custom interests operations

customers_customer_asset_sets — Google Ads customers customer asset sets operations

customers_customer_assets — Google Ads customers customer assets operations

customers_customer_client_links — Google Ads customers customer client links operations

customers_customer_conversion_goals — Google Ads customers customer conversion goals operations

customers_customer_customizers — Google Ads customers customer customizers operations

customers_customer_labels — Google Ads customers customer labels operations

customers_customer_lifecycle_goal — Google Ads customers customer lifecycle goal operations

customers_customer_manager_links — Google Ads customers customer manager links operations

customers_customer_negative_criteria — Google Ads customers customer negative criteria operations

customers_customer_sk_ad_network_conversion_value_schemas — Google Ads customers customer sk ad network conversion value schemas operations

customers_customer_user_access_invitations — Google Ads customers customer user access invitations operations

customers_customer_user_accesses — Google Ads customers customer user accesses operations

customers_customizer_attributes — Google Ads customers customizer attributes operations

customers_data_links — Google Ads customers data links operations

customers_experiment_arms — Google Ads customers experiment arms operations

customers_experiments — Google Ads customers experiments operations

customers_goals — Google Ads customers goals operations

customers-google-ads — Google Ads customers google ads operations

customers_invoices — Google Ads customers invoices operations

customers_keyword_plan_ad_group_keywords — Google Ads customers keyword plan ad group keywords operations

customers_keyword_plan_ad_groups — Google Ads customers keyword plan ad groups operations

customers_keyword_plan_campaign_keywords — Google Ads customers keyword plan campaign keywords operations

customers_keyword_plan_campaigns — Google Ads customers keyword plan campaigns operations

customers_keyword_plans — Google Ads customers keyword plans operations

customers_labels — Google Ads customers labels operations

customers_local_services — Google Ads customers local services operations

customers_local_services_leads — Google Ads customers local services leads operations

customers_offline_user_data_jobs — Google Ads customers offline user data jobs operations

customers_operations — Google Ads customers operations operations

customers_payments_accounts — Google Ads customers payments accounts operations

customers_product_link_invitations — Google Ads customers product link invitations operations

customers_product_links — Google Ads customers product links operations

customers_recommendation_subscriptions — Google Ads customers recommendation subscriptions operations

customers_recommendations — Google Ads customers recommendations operations

customers_remarketing_actions — Google Ads customers remarketing actions operations

customers_shared_criteria — Google Ads customers shared criteria operations

customers_shared_sets — Google Ads customers shared sets operations

customers_smart_campaign_settings — Google Ads customers smart campaign settings operations

customers_third_party_app_analytics_links — Google Ads customers third party app analytics links operations

customers_user_list_customer_types — Google Ads customers user list customer types operations

customers_user_lists — Google Ads customers user lists operations

geo_target_constants — Google Ads geo target constants operations

google_ads — Google Ads google ads operations

google_ads_fields — Google Ads google ads fields operations

keyword_theme_constants — Google Ads keyword theme constants operations

Finding the right command

When you know what you want to do but not which command does it, ask the CLI directly:

google-ads-pp-cli which "<capability in your own words>"

which resolves a natural-language capability query to the best matching command from this CLI's curated feature index. Exit code 0 means at least one match; exit code 2 means no confident match — fall back to --help or use a narrower query.

Auth Setup

Authenticate via the OAuth2 flow. auth login opens a browser, runs the consent flow, and stores a refresh token so access tokens are minted automatically:

google-ads-pp-cli auth login --client-id YOUR_CLIENT_ID --client-secret YOUR_CLIENT_SECRET

--client-id / --client-secret default to $GOOGLE_ADS_CLIENT_ID / $GOOGLE_ADS_CLIENT_SECRET when set. Check or clear the stored grant with google-ads-pp-cli auth status and google-ads-pp-cli auth logout.

Also set GOOGLE_ADS_DEVELOPER_TOKEN; set GOOGLE_ADS_LOGIN_CUSTOMER_ID when calling through a manager account.

Run google-ads-pp-cli doctor to verify setup.

Agent Mode

Add --agent to any command. Expands to: --json --compact --no-input --no-color --yes.

```bash

google-ads-pp-cli customers-google-ads search mock-value --agent --select id,name,status

```

Response envelope

Commands that read from the local store or the API wrap output in a provenance envelope:

{
  "meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
  "results": <data>
}

Parse .results for data and .meta.source to know whether it's live or local. A human-readable N results (live) summary is printed to stderr only when stdout is a terminal — piped/agent consumers get pure JSON on stdout.

Agent Feedback

When you (or the agent) notice something off about this CLI, record it:

google-ads-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
google-ads-pp-cli feedback --stdin < notes.txt
google-ads-pp-cli feedback list --json --limit 10

Entries are stored locally at ~/.google-ads-pp-cli/feedback.jsonl. They are never POSTed unless GOOGLE_ADS_FEEDBACK_ENDPOINT is set AND either --send is passed or GOOGLE_ADS_FEEDBACK_AUTO_SEND=true. Default behavior is local-only.

Write what surprised you, not a bug report. Short, specific, one line: that is the part that compounds.

Output Delivery

Every command accepts --deliver <sink>. The output goes to the named sink in addition to (or instead of) stdout, so agents can route command results without hand-piping. Three sinks are supported:

| Sink | Effect |

|------|--------|

| stdout | Default; write to stdout only |

| file:<path> | Atomically write output to <path> (tmp + rename) |

| webhook:<url> | POST the output body to the URL (application/json or application/x-ndjson when --compact) |

Unknown schemes are refused with a structured error naming the supported set. Webhook failures return non-zero and log the URL + HTTP status on stderr.

Named Profiles

A profile is a saved set of flag values, reused across invocations. Use it when a scheduled agent calls the same command every run with the same configuration - HeyGen's "Beacon" pattern.

google-ads-pp-cli profile save briefing --json
google-ads-pp-cli --profile briefing customers-google-ads search mock-value
google-ads-pp-cli profile list --json
google-ads-pp-cli profile show briefing
google-ads-pp-cli profile delete briefing --yes

Explicit flags always win over profile values; profile values win over defaults. agent-context lists all available profiles under available_profiles so introspecting agents discover them at runtime.

Async Jobs

For endpoints that submit long-running work, the generator detects the submit-then-poll pattern (a job_id/task_id/operation_id field in the response plus a sibling status endpoint) and wires up three extra flags on the submitting command:

| Flag | Purpose |

|------|---------|

| --wait | Block until the job reaches a terminal status instead of returning the job ID immediately |

| --wait-timeout | Maximum wait duration (default 10m, 0 means no timeout) |

| --wait-interval | Initial poll interval (default 2s; grows with exponential backoff up to 30s) |

Use async submission without --wait when you want to fire-and-forget; use --wait when you want one command to return the finished artifact.

Exit Codes

| Code | Meaning |

|------|---------|

| 0 | Success |

| 2 | Usage error (wrong arguments) |

| 3 | Resource not found |

| 4 | Authentication required |

| 5 | API error (upstream issue) |

| 7 | Rate limited (wait and retry) |

| 10 | Config error |

Argument Parsing

Parse $ARGUMENTS:

  1. Empty, help, or --help → show google-ads-pp-cli --help output
  2. Starts with install → ends with mcp → MCP installation; otherwise → see Prerequisites above
  3. Anything else → Direct Use (execute as CLI command with --agent)

MCP Server Installation

  1. Install the MCP server:

```bash

go install github.com/mvanhorn/printing-press-library/library/marketing/google-ads/cmd/google-ads-pp-mcp@latest

```

  1. Register with Claude Code:

```bash

claude mcp add google-ads-pp-mcp -- google-ads-pp-mcp

```

  1. Verify: claude mcp list

Direct Use

  1. Check if installed: which google-ads-pp-cli

If not found, offer to install (see Prerequisites at the top of this skill).

  1. Match the user query to the best command from the Unique Capabilities and Command Reference above.
  2. Execute with the --agent flag:

```bash

google-ads-pp-cli <command> [subcommand] [args] --agent

```

  1. If ambiguous, drill into subcommand help: google-ads-pp-cli <command> --help.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.