Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Google Ads Campaigns as Code

БесплатноБез исполняемых скриптовНе проверен

Google Ads search campaigns as reviewable JSON specs — offline plan, --apply creates PAUSED; opt-in budget-cap script pauses scoped campaigns. Use when an…

alexbloch-iaот alexbloch-ia663 установки в других каталогах

Об этом скилле

Google Ads Search Campaigns as Code

The only automatic action tolerable on a system that spends money is the one that PREVENTS spending. Everything else is a proposal a human reads before it runs.

A campaign is a versioned artifact: an agent writes the spec, a human reads the diff, one command creates it paused. Reference implementation: Google Ads API (google-ads-python). The shape is vendor-agnostic; "vendor" below means whichever ad network you point it at.

Access, data, and network

Item Reality
Default mode Plan only (no flag, or --dry-run) — no client built, no environment variable read at all, no network call
Mutating mode Only with the explicit --apply flag, after a human go on the plan. Omitting a flag can never create anything
Dry-run output Carries no account id and no credential. Safe to paste into a ticket for review
Credentials Env vars, read in load_env() on the mutating path only. Never hardcoded, never printed, never logged
Persisted by ads-search.py Nothing. Specs are files you already own; the script writes no state
budget-cap-guard.js — live-account, opt-in, installed by a human Runs hourly in the ad account's own script runner, not in the agent. Reads month spend; at the cap it pauses only ENABLED campaigns whose name contains the required NAME_CONTAINS prefix, and only once a human sets PAUSE_ON_CAP: true (shipped false). There is no account-wide mode. The agent never installs, edits, or schedules it
Written by budget-cap-guard.js Creates one tab it owns (budget-cap-guard) in a dedicated spreadsheet you own, appends one row per hourly breach: timestamp, status, spend, cap, action, writer marker. No PII, no credential. Refuses to write into a tab that already exists with any other header
Retention (enforced, not announced) Every run deletes rows older than CONFIG.RETAIN_DAYS (default 400) — only rows carrying its own writer marker, only in its own tab. 0 = keep forever, an explicit opt-out
Invalid config Missing cap, prefix, or sheet URL, a wrong type, or unreadable spend: the run throws before any pause or write and the script runner reports the failure. Never falls back to "every campaign"
Leaves the machine Only on the mutating path: the campaign tree, to the ad network you authenticated against
Spend authority None. Every campaign is created PAUSED. Going live is a human click in the vendor UI
Prerequisites (mutating path) A dedicated virtualenv with pip install "google-ads==33.0.0" (the script refuses --apply on any other version). No developer token — sunset 2026-09-09. API access = the level of the Google Cloud project that issued the OAuth client: Test (test accounts only) · Explorer (production, 2,880 ops/day, no KeywordPlanIdeaService) · Basic (15,000 ops/day, requires the project's brand verification) · Standard (unlimited, ~10 business days review). Upgrade: Cloud console → Google Ads API overview → Upgrade access level. A new project is at Test and cannot write to production. OAuth Desktop client + refresh token generated elsewhere; an app left in Testing status issues refresh tokens that expire after 7 days. Manager (MCC) account only if you reach the account through one
Your obligations Vendor ad policies, consumer-protection and advertising law apply to everything you publish. Regulated verticals (health, finance, legal, licensed trades) carry statutory constraints on top of vendor policy — clear the copy with the accountable human, not with this skill

Setup for the mutating path only: python3 -m venv .venv && .venv/bin/pip install "google-ads==33.0.0", then export GOOGLE_ADS_CLIENT_ID, GOOGLE_ADS_CLIENT_SECRET, GOOGLE_ADS_REFRESH_TOKEN, GOOGLE_ADS_CUSTOMER_ID, plus GOOGLE_ADS_LOGIN_CUSTOMER_ID only when access goes through a manager account. That is the whole list: the script declares no env var it does not consume. Conversion goals are an account-level setting — configure them in the vendor UI before you enable. The dry-run needs none of this.

When to Use

Trigger Action
"build me a search campaign for X" Write <segment>.json spec → dry-run → hand the plan to a human
"review the campaign before launch" --dry-run, paste the output, wait for an explicit go
"create it / it's approved" Run with --apply. Lands PAUSED. Say so out loud
"make it live" / "unpause" Refuse. Point to the vendor UI. This skill has no enable path
"raise the budget" Propose a spec diff. Never mutate budget on your own authority
"we're overspending" Budget cap script (§10), installed and scoped by a human — not the agent

1. The spec is the artifact

One JSON file per segment. One segment = one campaign = one ad group cluster = one landing page.

Field Type Notes
campaign string Naming convention `_<
Полный SKILL.md на ClawHub

Установить Google Ads Campaigns as Code в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Google Ads Campaigns as Code?

Google Ads search campaigns as reviewable JSON specs — offline plan, --apply creates PAUSED; opt-in budget-cap script pauses scoped campaigns. Use when an agent builds a campaign.

Как установить скилл Google Ads Campaigns as Code?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Google Ads Campaigns as Code запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Google Ads Campaigns as Code с