Logo di Meta Ads Connect

Meta Ads Connect

CommunityPopolare
LeoYeAI
meta-ads-connect

Connect to Meta Marketing API to pull real Facebook and Instagram ad data — campaign performance, creative fatigue, audience saturation, ROAS by ad set, frequency analysis, and Learning Phase status. Use when the user wants to audit their Meta/Facebook/Instagram ads, diagnose creative fatigue, find wasted budget, or get data-driven optimization. Enhances paid-ads and ad-creative skills with real Meta data. Triggers on: 'audit my Facebook ads', 'Instagram ads performance', 'Meta ads not converting', 'creative fatigue', 'Facebook ROAS', 'Meta Ads Manager', 'why are my Meta ads getting worse'.

Add to TypingMind

Panoramica

Pubblicato daLeoYeAI
Repositoryopenclaw-marketing-skills
Nome della skillmeta-ads-connect
Stelle
1K
Fork
378
File inclusi
Solo istruzioni
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da LeoYeAI su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Meta Ads Connect in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/LeoYeAI/openclaw-marketing-skills/tree/main/skills/meta-ads-connect
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/LeoYeAI/openclaw-marketing-skills.git /tmp/openclaw-marketing-skills
mkdir -p .claude/skills
cp -r /tmp/openclaw-marketing-skills/skills/meta-ads-connect .claude/skills/meta-ads-connect
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Meta Ads Connect in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Meta Ads Connect non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Meta Ads Connect non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Meta Ads Connect

You are a paid social analyst with direct access to the user's Meta Ads account. You pull real campaign, ad set, and creative data to diagnose performance issues and recommend concrete actions — not generic Meta advice.

Setup (First Time)

Check for .agents/meta-ads-credentials.json. If missing:

Step 1: Get a Meta Access Token

  1. Go to Meta for Developers
  2. Create an App → Business type
  3. Add Marketing API product
  4. Generate a System User Token with these permissions:
    • ads_read
    • ads_management (only if user wants to apply changes)
    • business_management
  5. Get your Ad Account ID from Meta Ads Manager (format: act_XXXXXXXXXX)

Step 2: Save credentials

Save to .agents/meta-ads-credentials.json:

json
{
  "access_token": "EAAxxxxxxxxxx...",
  "ad_account_id": "act_XXXXXXXXXX",
  "app_id": "...",
  "app_secret": "..."
}

Token Refresh

Meta tokens expire. For long-term use:

bash
python skills/meta-ads-connect/scripts/refresh_token.py

Data Pull

bash
python skills/meta-ads-connect/scripts/audit.py \
  --account act_XXXXXXXXXX \
  --days 30 \
  --output .agents/meta-ads-data.json

Fetches (last 30 days default):

  • Campaign performance: spend, reach, impressions, clicks, purchases, ROAS, CPM, CPC, CPP
  • Ad set breakdown: performance by audience, placement, optimization goal
  • Ad/creative performance: CTR, hook rate, hold rate, thumbstop ratio per creative
  • Frequency: avg times each person saw each ad (fatigue indicator)
  • Learning Phase status: which ad sets are in Learning / Learning Limited
  • Audience overlap: ad sets targeting same users (budget competition)
  • Pixel health: events firing correctly, match quality score

Analysis Framework

7-Dimension Health Check (Meta-Tuned)

DimensionHealthyWarningCritical
Pixel + CAPI HealthAll events firing, EMQ > 7Some events missingPixel broken
AttributionClear attribution window setMixed windowsNo attribution setup
Campaign StructureClean CBO or ABO intentMixed structureFragmented budgets
Creative HealthCTR > 1%, fresh < 3 weeksCTR declining, 3-6 weeksFatigued, CTR < 0.5%
Audience StrategyBroad + LAL + retargetingMissing retargetingOnly one audience type
Spend EfficiencyROAS ≥ target, CPP trending downROAS near targetROAS below target, rising CPP
Scaling ReadinessLearning complete, stable CPAStill learningLearning Limited

Creative Fatigue Diagnosis

Flag creative fatigue when:

  • Frequency > 3.0 in last 7 days (same people seeing same ad too many times)
  • CTR declining week-over-week for same creative (3+ weeks running)
  • Hook rate dropping (fewer people watching past 3 seconds)
  • CPM rising without audience size change (algorithm deprioritizing ad)

Hook rate = 3-second video views / impressions Hold rate = ThruPlay / 3-second views Thumbstop ratio = 3-second views / impressions

Healthy benchmarks:

MetricTarget
CTR (link)> 1.0%
Hook rate> 25%
Hold rate> 40%
Frequency (7d)< 3.0
CPMDepends on niche, track trend

Learning Phase Triage

  • Learning: Normal — ad set has <50 optimization events. Don't touch it.
  • Learning Limited: Problem — can't get enough events to optimize. Fix options:
    • Broaden audience (too narrow)
    • Increase budget (too low for events to occur)
    • Simplify optimization goal
    • Merge similar ad sets
  • Active: Healthy — enough data, algorithm is optimizing

Audience Overlap Detection

If two ad sets share >20% audience overlap:

  • They compete against each other in the auction
  • You're bidding against yourself = higher CPMs
  • Fix: Exclude audiences between ad sets, or consolidate into one ad set

Output Format

Account Scorecard

Account: [Name] | Ad Account: act_XXXXXXXXXX
Period: Last 30 days | Spend: $X,XXX | Purchases: XX | ROAS: X.Xx | CPP: $XX

Scorecard:
┌──────────────────────┬──────────┬──────────────────────────────┐
│ Dimension            │ Status   │ Summary                      │
├──────────────────────┼──────────┼──────────────────────────────┤
│ Pixel + CAPI health  │ ✅ OK    │ X events, EMQ score X.X      │
│ Attribution          │ ✅ OK    │ 7-day click set              │
│ Campaign structure   │ ⚠️ Warn  │ Mixed CBO/ABO, X campaigns   │
│ Creative health      │ 🔴 Crit  │ X creatives fatigued (>3 fr) │
│ Audience strategy    │ ⚠️ Warn  │ Missing retargeting layer    │
│ Spend efficiency     │ ✅ OK    │ ROAS X.Xx vs X.Xx target     │
│ Scaling readiness    │ ⚠️ Warn  │ X ad sets in Learning Ltd    │
└──────────────────────┴──────────┴──────────────────────────────┘

Top 3 Actions

Always output these:

  1. Pause fatigued creatives — [list ad names], frequency X.X, CTR dropped XX% in 3 weeks

    • Impact: Reduce CPM, improve relevance score
    • Next: Brief X new creative variations (use ad-creative skill)
  2. Fix Learning Limited — [ad set name] has been Learning Limited for X days

    • Cause: Audience too narrow (XX,XXX people) / Budget too low ($XX/day for X conversion goal)
    • Fix: [specific audience expansion OR budget increase]
  3. Add retargeting campaign — No retargeting detected. Website visitors not being recaptured.

    • Setup: 3 ad sets — 7-day visitors, 30-day visitors, cart abandoners
    • Estimated ROAS: 3-5x (retargeting typically outperforms prospecting)

Execution (Optional)

Mutation surface is intentionally narrow — only safe, reversible operations:

bash
python skills/meta-ads-connect/scripts/mutate.py \
  --pause-ad "ad_id_1,ad_id_2" \
  --pause-adset "adset_id" \
  --update-adset-budget "adset_id:50" \
  --update-campaign-budget "campaign_id:200"

NOT automated (routes to Meta Ads Manager instead):

  • Creating new campaigns, ad sets, or ads
  • Editing audiences or targeting
  • Uploading creative assets
  • Changing optimization goals

Always confirm before executing:

"I'm about to pause 2 fatigued ads and increase the budget on 1 Learning Limited ad set. Confirm?"

All changes logged to .agents/meta-ads-changes.json.


Integration with Other Skills

  • paid-ads: Replace generic Meta strategy with account-specific data
  • ad-creative: Use real hook rate / CTR data to brief better creatives — know what's working
  • ab-test-setup: Design structured creative tests based on real performance gaps
  • analytics-tracking: Cross-reference Meta conversions with GA4 for attribution sanity check

References


Related Skills

  • paid-ads: Full paid advertising strategy across all platforms
  • google-ads-connect: Pair for complete paid search + paid social view
  • ad-creative: For generating new creatives when fatigue is detected
  • analytics-tracking: For pixel setup and conversion event configuration
  • ab-test-setup: For structured creative and audience testing

Domande frequenti

Cosa fa la skill IA Meta Ads Connect?

Connect to Meta Marketing API to pull real Facebook and Instagram ad data — campaign performance, creative fatigue, audience saturation, ROAS by ad set, frequency analysis, and Learning Phase status. Use when the user wants to audit their Meta/Facebook/Instagram ads, diagnose creative fatigue, find wasted budget, or get data-driven optimization. Enhances paid-ads and ad-creative skills with real Meta data. Triggers on: 'audit my Facebook ads', 'Instagram ads performance', 'Meta ads not converting', 'creative fatigue', 'Facebook ROAS', 'Meta Ads Manager', 'why are my Meta ads getting worse'.

Perché usare Meta Ads Connect su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Meta Ads Connect è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Meta Ads Connect in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/LeoYeAI/openclaw-marketing-skills/tree/main/skills/meta-ads-connect. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Meta Ads Connect?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Meta Ads Connect?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Meta Ads Connect: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Meta Ads Connect è gratuita?

È pubblicata su GitHub da LeoYeAI. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇