ad-campaign-optimization
Optimize paid advertising campaigns across Google Ads, Meta, TikTok, LinkedIn, and other platforms. Use when tasks involve bid optimization, audience targeting, creative testing, ROAS improvement, attribution modeling, budget allocation, campaign structure, retargeting strategies, lookalike audiences, or reducing customer acquisition cost. Covers multi-platform campaign management and creative performance analysis.
Best use case
ad-campaign-optimization is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Optimize paid advertising campaigns across Google Ads, Meta, TikTok, LinkedIn, and other platforms. Use when tasks involve bid optimization, audience targeting, creative testing, ROAS improvement, attribution modeling, budget allocation, campaign structure, retargeting strategies, lookalike audiences, or reducing customer acquisition cost. Covers multi-platform campaign management and creative performance analysis.
Teams using ad-campaign-optimization should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/ad-campaign-optimization/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How ad-campaign-optimization Compares
| Feature / Agent | ad-campaign-optimization | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Optimize paid advertising campaigns across Google Ads, Meta, TikTok, LinkedIn, and other platforms. Use when tasks involve bid optimization, audience targeting, creative testing, ROAS improvement, attribution modeling, budget allocation, campaign structure, retargeting strategies, lookalike audiences, or reducing customer acquisition cost. Covers multi-platform campaign management and creative performance analysis.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Ad Campaign Optimization
## Overview
Optimize paid advertising across platforms — Google Ads, Meta (Facebook/Instagram), TikTok, LinkedIn, Twitter/X. Improve ROAS, reduce CAC, and scale winning campaigns.
## Instructions
### Campaign structure
Organize campaigns by objective, then ad sets by audience, then ads by creative variant:
```
Account
├── Campaign: Prospecting (Cold)
│ ├── Ad Set: Lookalike 1% (interest-based seed)
│ │ ├── Ad: Video A — problem/solution hook
│ │ ├── Ad: Video B — testimonial hook
│ │ └── Ad: Static C — benefit-focused
│ ├── Ad Set: Interest targeting (competitor audiences)
│ │ ├── Ad: Video A
│ │ └── Ad: Static D — data-driven hook
│ └── Ad Set: Broad targeting (algorithm-optimized)
│ ├── Ad: Video A
│ └── Ad: Video E — UGC style
│
├── Campaign: Retargeting (Warm)
│ ├── Ad Set: Website visitors 7-30 days
│ ├── Ad Set: Video viewers 50%+ (14 days)
│ └── Ad Set: Cart abandoners (7 days)
│
└── Campaign: Retention (Existing customers)
├── Ad Set: Upsell (purchased product A)
└── Ad Set: Win-back (inactive 60+ days)
```
**Key principles:**
- Separate cold, warm, and hot audiences into different campaigns (different budgets, different optimization)
- Use Campaign Budget Optimization (CBO) within each campaign
- Exclude audiences across campaigns (retarget pool excluded from prospecting)
- Keep 3-5 ads per ad set minimum for creative rotation
### Audience strategy
**Prospecting (cold):**
- Lookalike audiences: Seed from highest-value customers, start with 1% lookalike, expand to 2-5% as you scale
- Interest-based: Layer interests with demographics. Instead of "fitness" (too broad), use "fitness AND CrossFit AND 25-44"
- Broad targeting: On Meta, broad targeting often outperforms detailed targeting at scale
**Retargeting (warm)** — build exclusion-layered audiences:
```
Tier 1 (hottest): Cart/checkout abandoners, 0-7 days
Tier 2: Product page viewers, 7-14 days
Tier 3: Any website visitor, 14-30 days
Tier 4: Video viewers (50%+), 14-30 days
Tier 5: Social engagers, 30-60 days
Each tier excludes all tiers above it.
Tier 1 gets highest bid/budget (closest to conversion).
```
**Lookalike seed quality** (in order): Top 25% LTV customers > Repeat purchasers > All purchasers > Add-to-cart users > High-engagement visitors. Minimum seed: 1,000 users.
### Creative strategy
Break winning ads into components:
```
HOOK (first 3 seconds)
├── Pattern interrupt: unexpected visual/sound
├── Curiosity gap: "I tried X for 30 days..."
├── Problem callout: "Tired of [specific pain]?"
└── Social proof: "500K people already switched"
BODY (next 10-20 seconds)
├── Problem amplification → Solution introduction
├── Proof elements: testimonials, data, demos
└── Differentiation: why this, not alternatives
CTA (final 3-5 seconds)
├── Direct: "Start your free trial"
├── Urgency or risk reversal
└── Social: "Join 50,000 happy customers"
```
**Formats by platform:**
- **Meta**: 15-30s vertical video, carousels (3-5 cards), static images, UGC-style
- **TikTok**: Native-feeling video, 1-2s hook, text overlays, Spark Ads
- **Google**: Search (headline = keyword match + benefit + CTA), Performance Max (diverse assets), YouTube bumpers
- **LinkedIn**: Document ads, thought leadership ads, lead gen forms
**Creative testing:**
- Phase 1: Test 3-5 hooks/angles, $20-50/day each, 3-5 days → winner by CTR and CPA
- Phase 2: Test 3-5 variations of winner, $30-75/day, 5-7 days → winner by CPA and ROAS
- Phase 3: Scale winners 20-30%/day, refresh at frequency >3.0
### Bid strategy and budget
```
Awareness: CPM bidding, optimize for reach
Consideration: CPC bidding or landing page view optimization
Conversion: CPA/ROAS bidding (need 50+ conversions/week)
Retention: Value-based bidding (optimize for LTV)
```
Start with 70/20/10 split: 70% prospecting, 20% retargeting, 10% testing. Scale winners by increasing budget 20-30% every 3 days.
Meta and Google need 50 conversion events per ad set per week to exit the learning phase. If not hitting this: consolidate ad sets, move optimization event up the funnel, or increase budget.
### Attribution
```
Last-click: Simple but undervalues awareness
First-click: Values discovery but ignores nurturing
Time-decay: More credit to recent touchpoints
Data-driven: ML-based, available at scale (Google, Meta)
```
Cross-platform solutions: UTM parameters (tag every link), incrementality testing (10% holdout), Marketing Mix Modeling (statistical model), post-purchase surveys.
### Performance metrics
```
EFFICIENCY: CPA (<1/3 of LTV), ROAS (>3:1), CTR (1-2% Meta, 3-5% Google Search), CPC
QUALITY: Conversion rate, bounce rate, frequency (<3.0), Quality Score (Google 1-10)
SCALE: Daily spend, CAC trend, impression share, audience saturation
```
## Examples
### Set up a Meta Ads campaign for an e-commerce launch
```prompt
We're launching a DTC skincare brand with $3,000/month ad budget on Meta. Our product is $45, target audience is women 25-40 interested in clean beauty. Set up the full campaign structure — prospecting, retargeting, creative strategy, and bid optimization. Include audience definitions, exclusion rules, and creative brief for the first 5 ads.
```
### Diagnose and fix a declining ROAS
```prompt
Our Google Ads ROAS dropped from 4.2x to 2.1x over the past month. Monthly spend is $15,000 across Search and Performance Max campaigns. Analyze potential causes (creative fatigue, audience saturation, competition, seasonality) and provide a 2-week recovery plan with specific actions for each campaign type.
```
### Build a multi-platform attribution model
```prompt
We run ads on Meta, Google, TikTok, and LinkedIn with $50K/month total spend. Each platform reports different ROAS numbers and we suspect double-counting. Design an attribution framework that gives us a single source of truth for cross-platform performance. Include UTM structure, holdout testing plan, and weekly reporting template.
```
## Guidelines
- Always separate cold, warm, and hot audiences into different campaigns with independent budgets
- Never double budgets overnight — algorithmic learning resets with dramatic changes
- Ensure every ad link has UTM parameters before launch
- Monitor creative frequency and replace fatigued ads before performance tanks (frequency >3.0)
- Run incrementality tests quarterly to validate platform-reported attribution
- Start with proven formats (UGC video, testimonial) before testing experimental creative
- Keep at least 3 ads per ad set for rotation and learningRelated Skills
gcp-waf-cost-optimization
Apply the Google Cloud Well-Architected Framework's Cost Optimization pillar to evaluate workloads and recommend FinOps practices — billing exports, budgets, rightsizing via Active Assist, Spot VMs, Committed Use Discounts, storage lifecycle policies, and serverless adoption. Use for cloud cost reviews, monthly billing analysis, and architecture cost decisions.
app-store-optimization
Optimize mobile app listings for discovery and conversion in Apple App Store and Google Play. Use when tasks involve ASO keyword research, title and subtitle optimization, screenshot and preview video design, A/B testing store listings, review management, localization for international markets, tracking keyword rankings, or improving download conversion rates. Covers both iOS and Android store algorithms and best practices.
zustand
You are an expert in Zustand, the small, fast, and scalable state management library for React. You help developers manage global state without boilerplate using Zustand's hook-based stores, selectors for performance, middleware (persist, devtools, immer), computed values, and async actions — replacing Redux complexity with a simple, un-opinionated API in under 1KB.
zoho
Integrate and automate Zoho products. Use when a user asks to work with Zoho CRM, Zoho Books, Zoho Desk, Zoho Projects, Zoho Mail, or Zoho Creator, build custom integrations via Zoho APIs, automate workflows with Deluge scripting, sync data between Zoho apps and external systems, manage leads and deals, automate invoicing, build custom Zoho Creator apps, set up webhooks, or manage Zoho organization settings. Covers Zoho CRM, Books, Desk, Projects, Creator, and cross-product integrations.
zod
You are an expert in Zod, the TypeScript-first schema declaration and validation library. You help developers define schemas that validate data at runtime AND infer TypeScript types at compile time — eliminating the need to write types and validators separately. Used for API input validation, form validation, environment variables, config files, and any data boundary.
zipkin
Deploy and configure Zipkin for distributed tracing and request flow visualization. Use when a user needs to set up trace collection, instrument Java/Spring or other services with Zipkin, analyze service dependencies, or configure storage backends for trace data.
zig
Expert guidance for Zig, the systems programming language focused on performance, safety, and readability. Helps developers write high-performance code with compile-time evaluation, seamless C interop, no hidden control flow, and no garbage collector. Zig is used for game engines, operating systems, networking, and as a C/C++ replacement.
zed
Expert guidance for Zed, the high-performance code editor built in Rust with native collaboration, AI integration, and GPU-accelerated rendering. Helps developers configure Zed, create custom extensions, set up collaborative editing sessions, and integrate AI assistants for productive coding.
zeabur
Expert guidance for Zeabur, the cloud deployment platform that auto-detects frameworks, builds and deploys applications with zero configuration, and provides managed services like databases and message queues. Helps developers deploy full-stack applications with automatic scaling and one-click marketplace services.
zapier
Automate workflows between apps with Zapier. Use when a user asks to connect apps without code, automate repetitive tasks, sync data between services, or build no-code integrations between SaaS tools.
zabbix
Configure Zabbix for enterprise infrastructure monitoring with templates, triggers, discovery rules, and dashboards. Use when a user needs to set up Zabbix server, configure host monitoring, create custom templates, define trigger expressions, or automate host discovery and registration.
yup
Validate data with Yup schemas. Use when adding form validation, defining API request schemas, validating configuration, or building type-safe validation pipelines in JavaScript/TypeScript.