Google ads

From pedronauck/skills · View interactive version

Google ads is an AI agent skill from the GitHub repository pedronauck/skills. Query, audit, and optimize Google Ads campaigns. Use an attached browser or the Google Ads API for campaign, keyword, budget, conversion-tracking, and wasted-spend analysis, or when the user explicitly requests a reviewed account change. Defaults to read-only reporting; account mutations require a b

How to use this skill

Skill file

Google Ads

Analyze Google Ads safely. Stay read-only unless the user explicitly requests an account change and approves the exact proposed diff at action time.

Browser mode requires a user-attached, logged-in Google Ads session. API mode requires Python plus locally configured Google Ads credentials. Neither mode is a universal activation requirement.

Trust Boundaries

Choose a Mode

Choose from capabilities that are actually available; do not make either mode a universal prerequisite.

  1. Attached browser — Use for quick, user-visible inspection when the user has attached the intended logged-in Google Ads session.
  2. API — Use for repeatable queries, larger result sets, or structured reporting when the Python client and local authentication are already configured.
  3. Neither — Explain the two options. Do not ask the user to paste credentials into chat.

Safe API readiness checks inspect presence and behavior only:

python3 -c "from google.ads.googleads.client import GoogleAdsClient; print('google-ads client available')"
test -r "$HOME/.google-ads.yaml" && echo "Google Ads config file is readable"

Do not display the file or environment values. A browser-only workflow does not require Python or API credentials.

Progressive Loading

Read-Only Audit Workflow

  1. Confirm the exact account or customer ID and manager context.
  2. Confirm the reporting date range, timezone, and comparison period.
  3. Ask for the business objective: revenue, qualified pipeline, trials, leads, awareness, or another stated goal.
  4. Identify the primary conversion actions and whether conversion lag, attribution settings, offline imports, or value rules affect interpretation.
  5. Retrieve only the requested fields and entities.
  6. Separate observations, interpretations, uncertainties, and proposed next investigations.
  7. Report recommendations without applying them.

Analysis Principles

Never recommend a pause, budget change, or bid change from one metric alone. Interpret performance using the user's goal and, where relevant:

Optimization score is a Google recommendation signal, not an automatic action threshold. A zero-conversion or high-CPA entity is an investigation candidate until the relevant context is checked.

Common Read-Only Questions

| Question | Minimum evidence |

|---|---|

| Campaign performance | Spend, conversions or key business outcome, value when available, date range, comparison period |

| Wasted-spend candidates | Search terms or keywords, spend, clicks, conversion lag, negatives, match type, campaign goal |

| Budget constraints | Lost impression share, budget status, marginal return, campaign priority, recent changes |

| Conversion health | Primary actions, recording status, last activity, attribution, tag/import diagnostics |

| Policy or delivery issues | Entity status, policy details, dates, affected scope, recent edits |

Reporting Contract

Use a compact evidence table:

| Entity | Observation | Goal context | Evidence period | Uncertainty | Recommendation |

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

Then list proposed account changes separately as not executed. Each proposal must include the exact entity identifiers and current and proposed values so it can enter the mutation workflow if the user chooses.

Account Changes

The initial request establishes intent, not approval for an unseen diff. For any pause, enable, bid, budget, targeting, conversion, label, or other account mutation:

  1. Fetch current state.
  2. Load references/mutation-workflow.md.
  3. Build the bounded preview required there.
  4. Obtain explicit approval for that exact preview.
  5. Execute and verify using the reference contract.

If identity, scope, validation, approval, or readback cannot be completed, stop without changing the account.

Troubleshooting

Compatibility Baseline

These instructions use version-neutral service and field concepts and were reviewed on 2026-08-29 against the then-current Google Ads API v25.1 documentation and Python client patterns. Before changing API code or publishing a new skill version, re-check the official release notes, upgrade guide, client library guide, and limits. Do not force an API version in a client call unless the tested client requires it.

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.