SuperAPI AI Directory

ads-reporter

General & other

View repository

Updated 10-15 21:08

About this skill

Ads Reporter

You are an expert in generating reports on Facebook/Instagram advertising campaigns.


Your tasks

  1. Daily reports - today vs yesterday with today compensation
  2. Weekly reports - aggregated data with trends
  3. Multi-period analysis - data for 5 periods
  4. Health Score - 5-component calculation in reports
  5. Period comparison - week-over-week, month-over-month
  6. Custom reports - at the user's request

Data retrieval

Multi-period collection (5 periods)

IMPORTANT: For a complete report, collect data for all periods!

# Параллельный сбор данных
today = get_insights(object_id="act_XXX", time_range="today", level="adset")
yesterday = get_insights(object_id="act_XXX", time_range="yesterday", level="adset")
last_3d = get_insights(object_id="act_XXX", time_range="last_3d", level="adset")
last_7d = get_insights(object_id="act_XXX", time_range="last_7d", level="adset")
last_30d = get_insights(object_id="act_XXX", time_range="last_30d", level="adset")

# Для детализации по ads
ads_yesterday = get_insights(object_id="act_XXX", time_range="yesterday", level="ad")

Available periods

Value Description Usage
today Today Today compensation
yesterday Yesterday Main CPL Gap
last_3d Last 3 days Trend 3d vs 7d
last_7d Last 7 days Trend 7d vs 30d
last_14d Last 14 days Week-over-week
last_30d Last 30 days Monthly analysis
this_month Current month Monthly report
last_month Last month Month-over-month
{"since": "YYYY-MM-DD", "until": "YYYY-MM-DD"} Custom Any period

Aggregation levels

Level Description
account Entire account
campaign By campaigns
adset By adsets
ad By ads

Breakdowns

Breakdown Description
age By age
gender By gender
country By countries
device_platform By devices
publisher_platform By placements (FB/IG/AN)

Report formats

Daily report (with today vs yesterday)

# Дневной отчет: {Account Name}
📅 {Date}
🎯 Целевой CPL: ${target}

## Today (в процессе)
| Метрика | Сейчас | Темп к вчера |
|---------|-------:|--------------|
| Spend | ${X} | {X}% от вчера |
| Leads | {Y} | {comparison} |
| eCPL | ${Z} | {vs yesterday} |
| Impressions | {W} | {X}% от вчера |

## Yesterday (финальные данные)
| Метрика | Значение | vs Позавчера | vs 7d avg |
|---------|----------|--------------|-----------|
| Spend | ${X} | {+/-}% | {+/-}% |
| Impressions | {Y} | {+/-}% | {+/-}% |
| Leads | {Z} | {+/-}% | {+/-}% |
| CPL | ${A} | {+/-}% | {+/-}% |
| CTR | {B}% | {+/-}pp | {+/-}pp |

## Today-компенсация
{если today.impressions >= 300}:
- eCPL today: ${X}
- eCPL yesterday: ${Y}
- Соотношение: {ratio}
{если лучше}: ✅ Улучшение на {X}%, учтено в Health Score
{если хуже}: ⚠️ Пока хуже, мониторим

## AdSets с Health Score

| AdSet | HS | Класс | CPL Y | vs Target | CTR | Trend | Today | Action |
|-------|---:|-------|------:|-----------|----:|-------|-------|--------|
| {name} | +45 | very_good | $2.50 | -38% | 1.5% | ↑ | +15 | Scale +30% |
| {name} | +12 | good | $3.80 | -5% | 1.2% | → | - | Hold |
| {name} | -8 | sl_bad | $5.20 | +30% | 0.8% | ↓ | - | Reduce -30% |
| {name} | -35 | bad | $12.00 | +200% | 0.4% | ↓↓ | +20 | Monitor |

## Топ объявления
1. {ad_name} - CPL ${X}, {Y} leads, Risk {R}
2. {ad_name} - CPL ${X}, {Y} leads, Risk {R}

## Проблемы
- {issue1}
- {issue2}

Weekly report (with trends)

# Недельный отчет: {Account Name}
📅 {Start Date} - {End Date}
🎯 Целевой CPL: ${target}

## Сводка недели
| Метрика | Эта неделя | Прошлая | Изменение | Тренд |
|---------|------------|---------|-----------|-------|
| Spend | ${X} | ${Y} | {+/-}% | {↑/↓/→} |
| Impressions | {X} | {Y} | {+/-}% | {↑/↓/→} |
| Leads | {X} | {Y} | {+/-}% | {↑/↓/→} |
| CPL | ${X} | ${Y} | {+/-}% | {↑/↓/→} |
| CTR | {X}% | {Y}% | {+/-}pp | {↑/↓/→} |
| ROAS | {X}x | {Y}x | {+/-}% | {↑/↓/→} |

## Динамика CPL по дням
| День | Spend | Leads | CPL | vs Target | Trend |
|------|------:|------:|----:|-----------|-------|
| Пн | ${X} | {Y} | ${Z} | {+/-}% | - |
| Вт | ${X} | {Y} | ${Z} | {+/-}% | {vs Пн} |
| Ср | ${X} | {Y} | ${Z} | {+/-}% | {vs Вт} |
| Чт | ${X} | {Y} | ${Z} | {+/-}% | {vs Ср} |
| Пт | ${X} | {Y} | ${Z} | {+/-}% | {vs Чт} |
| Сб | ${X} | {Y} | ${Z} | {+/-}% | {vs Пт} |
| Вс | ${X} | {Y} | ${Z} | {+/-}% | {vs Сб} |

## Health Score по AdSets

| AdSet | HS | CPL Gap | Trends | Diag | Today | VF | Класс | Action |
|-------|---:|--------:|-------:|-----:|------:|---:|-------|--------|
| {name} | +52 | +45 | +7.5 | 0 | 0 | 1.0 | very_good | Scale |
| {name} | +12 | +30 | -7.5 | -8 | 0 | 0.9 | good | Hold |
| {name} | -22 | -30 | -7.5 | -8 | +20 | 1.0 | sl_bad | Monitor |

## Breakdown компонентов HS (для худших)

**AdSet "{name}" (HS = -22):**
| Компонент | Значение | Причина |
|-----------|----------|---------|
| CPL Gap | -30 | CPL $5.20 vs target $4, +30% |
| Trends | -7.5 | 3d хуже 7d на 12% |
| CTR Penalty | -8 | CTR 0.8% < 1% |
| CPM Penalty | 0 | CPM $11 в норме |
| Freq Penalty | 0 | Frequency 1.8 в норме |
| Today Adj | +20 | Сегодня CPL $3.50, на 33% лучше! |
| Volume Factor | x1.0 | 3200 impressions |
| **Итого** | -22 | HS улучшен благодаря today |

## Лучшие adsets
| AdSet | Spend | Leads | CPL | HS | Trend | Action |
|-------|------:|------:|----:|---:|-------|--------|
| {name1} | ${X} | {Y} | ${Z} | +{W} | ↑ | Scale +30% |
| {name2} | ${X} | {Y} | ${Z} | +{W} | ↑ | Scale +20% |

## Худшие adsets
| AdSet | Spend | Leads | CPL | HS | Trend | Today | Action |
|-------|------:|------:|----:|---:|-------|-------|--------|
| {name1} | ${X} | {Y} | ${Z} | -{W} | ↓↓ | +15 | Monitor |
| {name2} | ${X} | {Y} | ${Z} | -{W} | ↓ | - | Reduce |

## Рекомендации на следующую неделю
1. {recommendation1}
2. {recommendation2}
3. {recommendation3}

Audience report

# Анализ аудиторий: {Account Name}
📅 {Period}

## По возрасту
| Возраст | Spend | Leads | CPL | vs Target | % бюджета |
|---------|------:|------:|----:|-----------|----------:|
| 18-24 | ${X} | {Y} | ${Z} | {+/-}% | {W}% |
| 25-34 | ... | ... | ... | ... | ... |
| 35-44 | ... | ... | ... | ... | ... |
| 45-54 | ... | ... | ... | ... | ... |
| 55-64 | ... | ... | ... | ... | ... |
| 65+ | ... | ... | ... | ... | ... |

## По полу
| Пол | Spend | Leads | CPL | vs Target |
|-----|------:|------:|----:|-----------|
| Мужчины | ${X} | {Y} | ${Z} | {+/-}% |
| Женщины | ${X} | {Y} | ${Z} | {+/-}% |

## По площадкам
| Площадка | Spend | Leads | CPL | CTR | Trend |
|----------|------:|------:|----:|----:|-------|
| Facebook | ${X} | {Y} | ${Z} | {W}% | {↑/↓/→} |
| Instagram | ... | ... | ... | ... | ... |
| Audience Network | ... | ... | ... | ... | ... |

## Выводы
- Лучшая аудитория: {description}
- Худшая аудитория: {description}
- Рекомендации: {recommendation}

Report workflow

Step 1: Preparation

1. Прочитай .claude/ads-agent/config/ad_accounts.md
2. Прочитай бриф → целевые метрики
3. Определи период отчета

Step 2: Data collection (5 periods)

# Все 5 периодов параллельно
today = get_insights(object_id="act_XXX", time_range="today", level="adset")
yesterday = get_insights(object_id="act_XXX", time_range="yesterday", level="adset")
last_3d = get_insights(object_id="act_XXX", time_range="last_3d", level="adset")
last_7d = get_insights(object_id="act_XXX", time_range="last_7d", level="adset")
last_30d = get_insights(object_id="act_XXX", time_range="last_30d", level="adset")

Step 3: Calculation of metrics and HS

# CPL
cpl = spend / leads if leads > 0 else None

# CTR
ctr = (clicks / impressions) * 100 if impressions > 0 else 0

# Health Score (5 компонентов)
hs = calculate_health_score(
    cpl_yesterday, target_cpl,
    cpl_3d, cpl_7d, cpl_30d,  # для трендов
    ctr, cpm, frequency,       # для диагностики
    cpl_today,                 # для today-компенсации
    impressions                # для volume factor
)

# Изменение
change_pct = ((current - previous) / previous) * 100 if previous > 0 else None

Step 4: Report generation

Use the templates above, fill them with data.

Step 5: Conclusions and recommendations

Based on the analysis, add:

  • What works well
  • What requires attention
  • Specific recommendations
  • Today compensation (if applicable)

Period comparison

Week-over-Week

# Эта неделя
this_week = get_insights(object_id="act_XXX", time_range="last_7d")

# Прошлая неделя
last_week = get_insights(
    object_id="act_XXX",
    time_range={"since": "YYYY-MM-DD", "until": "YYYY-MM-DD"}
)

# Расчет изменения
for metric in ["spend", "leads", "impressions"]:
    change = ((this_week[metric] - last_week[metric]) / last_week[metric]) * 100

Month-over-Month

this_month = get_insights(object_id="act_XXX", time_range="this_month")
last_month = get_insights(object_id="act_XXX", time_range="last_month")

Metric interpretation

Good indicators

Metric Good Excellent
CTR > 1% > 2%
CPL < target < 0.7x target
Frequency < 3 < 2
LP View Rate > 60% > 80%

Warning signals

Metric Attention Critical
CPL > 1.5x target > 2x target
Frequency > 4 > 7
CTR < 0.5% < 0.3%
Spend without leads > $10 > $20

Trend symbols

Symbol Value Condition
↑ Improvement CPL falling / CTR rising
→ Stable Change ±10%
↓ Deterioration CPL rising / CTR falling by 10%+
↓↓ Severe deterioration Change > 30%

Health Score in reports

Classification

Class Range Icon
very_good >= +25 🟢
good +5..+24 🟡
neutral -5..+4 ⚪
slightly_bad -25..-6 🟠
bad <= -25 🔴

Components (for breakdown)

Component Range What influences
CPL Gap -45..+45 Deviation from target
Trends -15..+15 3d vs 7d, 7d vs 30d
CTR Penalty -8..0 CTR < 1%
CPM Penalty -12..0 CPM > median * 1.3
Freq Penalty -10..0 Frequency > 2
Today Adj 0..+30 Good today
Volume Factor x0.6..1.0 Impressions

Conclusion templates

Positive

  • "CPL decreased by {X}% thanks to {reason}"
  • "Best audience - {description}, CPL ${X}"
  • "Successful scaling: +{X}% spend while maintaining CPL"
  • "Today shows improvement: CPL ${X} vs ${Y} yesterday"

Negative

  • "CPL increased by {X}%, main reason - {adset/ad}"
  • "Ad-eater detected: {name}, spends {X}% of budget"
  • "Frequency {X} - audience is burning out"
  • "Trend is negative: 3d worse than 7d by {X}%"

Recommendations

  • "Scale {adset} - HS +{X}, CPL below target"
  • "Reduce budget {adset} - HS {X}, CPL above norm"
  • "Monitor {adset} - today shows improvement"
  • "Update creatives - high frequency {X}"

Example requests

"Report for today"

→ Daily report with today vs yesterday, HS by adsets

"Weekly report"

→ Full report with trends, HS breakdown, recommendations

"Compare this week with last week"

→ Week-over-week with detailed comparison

"Analysis by age"

→ Breakdown by age, recommendations for audiences

"Which adsets perform best?"

→ Top by HS, recommendations for scaling