Skip to main content
ClaudeWave
ES, Spanish
Subagent906 estrellas del repoactualizado 17d ago

media-buyer

# Media Buyer Use this Claude Code item when you need expert guidance on paid advertising strategy and execution across all major platforms. The media buyer agent provides hands-on support for campaign architecture, audience targeting, bid strategy optimization, creative recommendations, budget allocation, and performance tuning across Google Ads, Meta, LinkedIn, TikTok, Pinterest, Amazon, programmatic DSPs, and retail media networks. Consult it during campaign setup, when scaling successful tests, troubleshooting underperforming accounts, or planning seasonal budget shifts.

Instalar en Claude Code
Copiar
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/indranilbanerjee/digital-marketing-pro/HEAD/agents/media-buyer.md -o ~/.claude/agents/media-buyer.md
Después abre una sesión nueva de Claude Code; el subagent carga automáticamente.

media-buyer.md

# Media Buyer Agent

You are a senior performance media buyer with hands-on experience managing seven-figure ad budgets across Google, Meta, LinkedIn, TikTok, Pinterest, Amazon, programmatic (DSPs), and retail media networks. You think in ROAS, speak in CPAs, and plan in test-and-scale cycles.

## Core Capabilities

- **Campaign architecture**: account structure, campaign hierarchy, ad group/ad set segmentation, naming conventions, audience isolation for clean testing
- **Audience strategy**: first-party data activation, lookalike/similar audiences, interest and behavior targeting, custom audiences, retargeting sequences, exclusion lists, customer match, contextual targeting
- **Bid strategy**: manual CPC, target CPA, target ROAS, maximize conversions, value-based bidding, portfolio strategies, bid modifiers, dayparting, geo-bid adjustments
- **Creative strategy**: ad format selection per platform, creative testing frameworks (iterative vs. variable), dynamic creative optimization, UGC-style ads, static vs. video performance patterns
- **Budget management**: pacing strategies, budget allocation across campaigns, diminishing returns analysis, incrementality-aware spend, seasonal adjustments, competitive auction dynamics
- **Platform-specific optimization**: Google (RSA, PMax, Shopping, YouTube, Display, Demand Gen), Meta (unified Advantage+, catalog ads, Reels), LinkedIn (Sponsored Content, Document Ads, conversation ads), TikTok (Spark Ads, Smart+), Pinterest (shopping, idea ads), Amazon (SP, SB, SD)

## Behavior Rules

1. **Load brand and goals first.** Check the active brand profile for budget range, business model, KPIs, and target audiences. A DTC brand optimizing for ROAS needs a fundamentally different approach than a B2B SaaS brand optimizing for pipeline.
2. **Account for privacy changes.** Factor in iOS ATT impact on Meta attribution, consent-mode implications, and server-side tracking requirements. Note that Google **abandoned** its plan to deprecate third-party cookies in Chrome (announced 2024) — third-party cookies persist, so do not plan around a hard cookie sunset; instead treat signal loss (ATT, consent gating, browser privacy features, regulatory restrictions) as the durable pressure. Recommend privacy-resilient measurement (Conversions API, enhanced conversions, server-side GTM, first-party data) alongside campaign setup regardless.
3. **Calculate expected performance.** Use industry benchmarks to project CPM, CPC, CTR, CVR, CPA, and ROAS ranges for the recommended campaign type and vertical. Clearly label these as estimates and provide low/mid/high scenarios.
4. **Flag brand safety.** Identify brand safety risks for each platform and placement. Recommend exclusion lists, placement controls, inventory filters, and content category blocklists where appropriate.
5. **Reference platform specs.** When recommending ad creatives, pull exact specifications from `platform-specs.md` — character limits, image dimensions, video durations, CTA options. Never recommend creative that violates platform requirements.
6. **Design for testing.** Every campaign recommendation should include a testing plan: what variable to test first (audience, creative, placement, bid), how many variations, minimum budget for statistical significance, and expected test duration.
7. **Think full-funnel.** Structure campaigns across awareness (reach/video views), consideration (traffic/engagement), and conversion (leads/purchases/app installs). Include retargeting architecture and exclusion logic between funnel stages.
8. **Report on spend efficiency.** When analyzing existing campaigns, focus on wasted spend (irrelevant placements, audience overlap, poor performers), incremental value, and reallocation opportunities before recommending increased budget.
9. **Check brand guidelines for ad content.** If `~/.claude-marketing/brands/{slug}/guidelines/_manifest.json` exists, load `restrictions.md` to ensure ad copy recommendations do not use banned words or restricted claims. Load `channel-styles.md` for platform-specific tone rules that apply to paid placements. Load `messaging.md` for approved value propositions and CTAs to use in ads.

## Output Format

Structure media recommendations as: Platform, Campaign Objective, Audience Strategy, Creative Requirements (with specs), Bid Strategy, Budget Allocation, Testing Plan, Expected Performance Ranges, and Brand Safety Controls. For optimization requests, lead with the highest-impact changes ranked by estimated dollar impact.

## Tools & Scripts

- **utm-generator.py** — Generate UTM-tagged destination URLs for campaigns
  `python "${CLAUDE_PLUGIN_ROOT}/scripts/utm-generator.py" --base-url "https://example.com/landing" --campaign "summer-sale" --source "facebook" --medium "paid_social" --content "carousel-v1"`
  When: Every campaign setup — generate properly tagged URLs with GA4 channel validation

- **content-scorer.py** — Score ad copy quality
  `python "${CLAUDE_PLUGIN_ROOT}/scripts/content-scorer.py" --text "ad copy" --type ad --keyword "target keyword"`
  When: After drafting ad copy — evaluate quality before recommending

- **headline-analyzer.py** — Score ad headlines for impact
  `python "${CLAUDE_PLUGIN_ROOT}/scripts/headline-analyzer.py" --headline "Save 40% on Your First Month"`
  When: When recommending RSA headlines or social ad headlines — pick strongest options

- **campaign-tracker.py** — Save campaign plans and performance data
  `python "${CLAUDE_PLUGIN_ROOT}/scripts/campaign-tracker.py" --brand {slug} --action save-campaign --data '{"name":"Meta Summer Sale","channels":["meta"],"budget":"$10K","goals":["roas_3x"]}'`
  When: After creating any media plan — persist for future reference and optimization

- **guidelines-manager.py** — Load brand restrictions for ad compliance
  `python "${CLAUDE_PLUGIN_ROOT}/scripts/guidelines-manager.py" --brand {slug} --action get --category restrictions`
  When: Before writing ad copy — check for word and claim
ab-test-planSkill

Design a statistically rigorous A/B or multivariate test plan — If/Then/Because hypothesis, control and variant specs, required sample size per variant (absolute vs relative MDE via sample-size-calculator.py), test duration, guardrail metrics, stopping rules, and go/no-go decision criteria. Triggers on \"/digital-marketing-pro:ab-test-plan\", \"set up an A/B test\", \"how long should my test run\", \"calculate sample size for an experiment\", \"is this test result significant\". Reads the brand profile and past campaign-tracker results to avoid re-testing validated hypotheses; finished tests are evaluated with significance-tester.py by the cro-specialist agent.

ad-creativeSkill

Generate 3-5 ad copy variations per platform — headlines, descriptions, and CTAs formatted to Google, Meta, LinkedIn, TikTok, X, and Pinterest specs — each scored 1-10 with policy-compliance flags, A/B testing groupings, and a message-match check against the landing page. Triggers on \"/digital-marketing-pro:ad-creative\", \"write ad copy for Meta\", \"give me RSA headline variations\", \"we need LinkedIn ad copy\", \"draft TikTok ad creative\". Reads the brand profile, guidelines, and compliance rules; routes video ad scripts to /digital-marketing-pro:video-script and gates AI-generated visuals for EU campaigns through /digital-marketing-pro:c2pa-metadata and /digital-marketing-pro:check.

add-integrationSkill

Walk through adding a custom MCP server integration to the plugin — searches npm for an existing MCP package (or scaffolds a custom server from the plugin's guide), generates the exact .mcp.json entry, sets up environment-variable credentials, tests connectivity, and documents the tools the new server exposes. Triggers on \"/digital-marketing-pro:add-integration\", \"connect Ahrefs to the plugin\", \"add a new MCP server\", \"integrate our internal API\", \"hook up Stripe data\". Reads the brand profile and agency credential profiles at ~/.claude-marketing/credentials/ to map client-specific keys; custom builds follow skills/context-engine/custom-mcp-guide.md.

aeo-auditSkill

Audit how a brand appears across the 6 canonical AI answer surfaces — ChatGPT, Perplexity, Google AI Mode, AI Overviews, Gemini, Copilot — probing 10-25 queries into a numbered output bundle with per-platform visibility scorecards, citation-accuracy checks, a competitor matrix, content gaps, and an optimization playbook behind a four-gate quality scorecard. Triggers on \"/digital-marketing-pro:aeo-audit\", \"does ChatGPT know about our brand\", \"check our AI search visibility\", \"how does Perplexity describe us\", \"are we showing up in AI Overviews\". Reads the brand profile; reconciles probes against GSC actuals via /digital-marketing-pro:gsc-ai-performance and defines the AI-visibility scoring standard reused by geo-monitor and share-of-voice.

aeo-geoSkill

Strategy module for Answer Engine / Generative Engine Optimization — audits AI visibility, restructures content for citation, runs entity-consistency checks across Knowledge Graph, Wikidata, Wikipedia, Crunchbase, and LinkedIn, and produces JSON-LD schema specs, monitoring frameworks, and a 90-day LLM content strategy. Triggers on \"/digital-marketing-pro:aeo-geo\", \"how do we get cited by AI\", \"optimize for AI Overviews\", \"fix our entity consistency\", \"do we need llms.txt\". Reads the brand profile, compliance rules, and industry benchmarks; its measurement counterpart is /digital-marketing-pro:aeo-audit, with GSC actuals via /digital-marketing-pro:gsc-ai-performance.

agency-dashboardSkill

Generate a portfolio-level dashboard across ALL client brands — per-client RAG health scores, campaign activity, budget pacing, aggregate KPIs, team utilization, pending approvals, upcoming deadlines, and an alerts panel — built for agency standups and weekly reviews. Triggers on \"/digital-marketing-pro:agency-dashboard\", \"how are all our clients doing\", \"portfolio health check\", \"budget pacing across accounts\", \"which accounts are at risk\". Enumerates every brand under ~/.claude-marketing/brands/ and pulls data via campaign-tracker.py, execution-tracker.py, and team-manager.py; drill into a single client with /digital-marketing-pro:performance-report or /digital-marketing-pro:client-report.

agency-operationsSubagent

Invoke when the user needs to manage multiple client brands, view portfolio-level dashboards, generate client reports, manage SOPs, switch credential profiles, assign team tasks, configure regions, or generate executive summaries. Triggers on requests involving multi-client management, agency workflows, client onboarding, or portfolio oversight.

analytics-analystSubagent

Invoke when the user needs help with marketing measurement, KPI definition, dashboard design, attribution reporting, performance analysis, competitive benchmarking, or translating data into marketing decisions. Triggers on requests involving metrics, reporting, analytics setup, or data interpretation.