google-ads-structure-map
Decode a Google Ads account's naming convention (campaigns + ad groups) into a taxonomy of dimensions — product line/code, program, funnel stage, match type…
от portermetricsample★ 22 звезды на GitHub
Установить google-ads-structure-map в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Google Ads — Structure Map
Goal (job-to-be-done)
Turn the account's campaign/ad-group name strings into structure: infer the per-account
naming grammar, decode each name into a taxonomy of dimensions (program, product family→line,
type, funnel, match, bidding, audience, geo, test), and expose those dimensions as navigable
segmentation parameters. The emitted JSON includes the account_profile (naming
grammar + product hierarchy + lexicons + brand/competitor terms + ambiguous tokens) that the
deterministic scripts of OTHER skills (structure-audit, term-routing, future relevance,
intent-discovery) consume — see ../../../_framework/account-profile.md.
- Who: analyst / media buyer / whoever builds reports and views by segment.
- When: getting to know a new account, or feeding an "Account Structure" page / dashboard filters. Cached per account; re-infer only when campaigns change.
- Decision it drives: how to slice the account (which filters/groupings exist), and which tokens still need the team's dictionary before they can be trusted.
- The differentiator: it infers the grammar per account and flags by confidence — what parses for sure vs what needs research or the team dictionary. It never guesses an internal code as if it were truth.
Scope
- ✅ Decode + map. Infer the grammar, extract the dimensions, list segmentation parameters,
flag ambiguity by confidence, emit the
account_profile. - ❌ Judge consistency / find errors →
structure-audit(it validates; this one extracts). The "Phase 1: infer convention" ofstructure-auditis a lite version of this skill's core. - ❌ Generate a convention for new campaigns → future
naming-conventionskill. - ❌ Performance / spend / bids / budgets.
Components (read these references as needed)
- Tools / data plan:
references/tools.md— the 2 structure queries (campaign-grain + keyword-grain) + the optional site-research tools. - Framework / rubric:
references/framework.md— the brain: the dimension catalog, grammar inference, product hierarchy (family→line), the 3 decode levels, disambiguation by crossing levels, and the confidence discipline. - Output schema:
references/output.md— the JSON this skill emits (the structure map plus theaccount_profile). - Deterministic core:
scripts/process.py+scripts/query.json— the decode runs as code, in ms, not by the model (see below).
Operate
Input: per row, a campaign name and (Search) an ad-group name, plus the real
dimensions for validation (campaign_advertising_channel_type,
campaign_bidding_strategy_type, keyword_info_match_type) and impressions only to return
rows. Two queries are needed for coverage (the keyword query omits keyword-less campaigns like
Demand Gen / PMax). Optional: site research via tool:porter-tools:scrape/crawl to confirm
product lines and map codes.
Process (split brain):
Deterministic decode →
scripts/process.py. Feed it the rawquery_dataJSON ({columns, rows}). It derives the vocabularies from the account itself (never hardcoding an advertiser's products) and returns the inferred grammar, thesegmentation_params(dimension → distinct values), thecode_to_lineshierarchy (family → product lines), thead_group_subsegments, and theambiguous_tokens. This is the deterministic, universal half — true for any Google Ads account in any industry.LLM triage (judgment half). The model does NOT re-decode. It ONLY:
- resolves the
ambiguous_tokensit can — via site research (flag "inferred from site") or by crossing levels (e.g.GIcampaign confirmed as Guaranteed Issue by its ad groups "Guaranteed Issue", "Pre-Existing Conditions", "Severe Heart"); - leaves the truly unknown internal codes (
AO,Embedded) as "ambiguous, needs team dictionary" — never invents a meaning; - fills the
keyword_lexicon,brand_terms,competitorsof theaccount_profile; - assigns a confidence level (
confirmed/inferred/ambiguous) per decoded token.
Apply the rubric in
references/framework.md. Validate tokens against real data where it exists (type/match/bidding) to raise confidence. Treat the parentheses code → product word as a 2-level hierarchy (family→line), NOT as inconsistency.- resolves the
Emit the JSON in references/output.md:
structure_map— the inferred grammar, the per-campaign decode (each campaign → its dimensions, with confidence), thesegmentation_params, and theambiguouslist.account_profile— the cached, per-account config (naming, products with the family→line hierarchy and lexicons, brand/compet
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/framework.md
- references/output.md
- references/tools.md
- scripts/process.py
- scripts/query.json
FAQ
Что делает скилл google-ads-structure-map?
Decode a Google Ads account's naming convention (campaigns + ad groups) into a taxonomy of dimensions — product line/code, program, funnel stage, match type, bidding, audience, geo, test — and expose them as navigable segmentation parameters. This is the PRODUCER of the per-account `account_profile` that every other Google Ads skill consumes. Use this skill whenever the user is onboarding a new Google Ads account, asks "how is this account structured", wants account-structure dashboard filters / segmentation angles, needs to know what a campaign/ad-group naming token means, or mentions naming convention, taxonomy, product codes, or decoding campaign names — even if they don't say "structure map". Maps and decodes ONLY; it does NOT judge whether the structure is right (that is `structure-audit`) and does NOT generate new conventions.
Как установить скилл google-ads-structure-map?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл google-ads-structure-map запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…