Date preset

Troca o preset pra ver o que a Meta retorna em cada janela. Se hoje (today) vier vazio, confirma que é lag da Meta e não problema do LeadHub.

today yesterday last_3d last_7d last_14d last_30d maximum

📊 Insights (agregado)

✅ fetchCampaignsWithInsights · 1 campanha(s) · filtro [SEMENTE] [LEAD] AULA 04
{
  "campaigns": [
    {
      "campaign_id": "120244032210430546",
      "campaign_name": "[SEMENTE] [LEAD] AULA 04 - LER CIFRAS",
      "spend": 36.43,
      "impressions": 1611,
      "clicks": 78,
      "link_clicks": 38,
      "link_ctr": 2.358783,
      "landing_page_views": 30,
      "connect_rate": 78.94736842105263,
      "attributed_leads": 17,
      "cost_per_attributed_lead": 2.1429411764705883,
      "cpm": 22.613284,
      "cpc": 0.467051,
      "reach": 1444
    }
  ],
  "totals": {
    "spend": 36.43,
    "impressions": 1611,
    "clicks": 78,
    "link_clicks": 38,
    "landing_page_views": 30,
    "attributed_leads": 17,
    "reach": 1444,
    "ctr_aggregate": 4.8417132216014895,
    "link_ctr_aggregate": 2.3587833643699563,
    "connect_rate_aggregate": 78.94736842105263,
    "cost_per_attributed_lead_aggregate": 2.1429411764705883,
    "cpm_aggregate": 22.613283674736188,
    "cpc_aggregate": 0.46705128205128205
  },
  "total_in_account": 238,
  "sample_names": [
    "[SEMENTE] [LEAD] AULA 04 - LER CIFRAS",
    "[JPM2] [VENDAS] VOLTA AULAS 2026",
    "JPM - COMPRA - JAN - VOLTA AULAS 2026 — Cópia",
    "[SEMENTE] [LEAD] AULA 03 - LER CIFRAS",
    "[REPRISE] [TRAFEGO] [Q] Aula experimental 01",
    "[SEMENTE] [LEAD] AULA 02 - LER CIFRAS",
    "[REPRISE] [TRAFEGO] [Q] Aula gratuita 01",
    "[SEMENTE] [LEAD] AULA 01 - LER CIFRAS",
    "[JPM] [VENDAS] VOLTA AULAS 2026",
    "Instagram post: Quantas maneiras diferentes de...",
    "Instagram post: 👇🏻Não é fácil dar aula 🎵 para...",
    "Instagram post: Solfejar as notas, para os alunos...",
    "Instagram post: 👇🏻O aluno já chegou tocando,...",
    "[PIANO POP 2] [VENDAS] - Kit de acompanhamentos",
    "Instagram post: Pensa aquele momento onde a...",
    "[JPM] [VENDAS] - Black November Musical 2025 - Perpetuo",
    "[ERRO] [JPM] [VENDAS] - Black November Musical 2025",
    "Post do Instagram: 👇🏻Com a partitura certa fica...",
    "[PIANO POP] [VENDAS] - Kit de acompanhamentos",
    "Post do Instagram: 👇🏻Não é triste o aluno..."
  ],
  "debug_needle": "sementeleadaula04",
  "debug_sample_normalized": [
    "sementeleadaula04lercifras",
    "jpm2vendasvoltaaulas2026",
    "jpmcomprajanvoltaaulas2026cpia",
    "sementeleadaula03lercifras",
    "reprisetrafegoqaulaexperimental01",
    "sementeleadaula02lercifras",
    "reprisetrafegoqaulagratuita01",
    "sementeleadaula01lercifras",
    "jpmvendasvoltaaulas2026",
    "instagrampostquantasmaneirasdiferentesde",
    "instagrampostnofcildaraulapara",
    "instagrampostsolfejarasnotasparaosalunos",
    "instagrampostoalunojchegoutocando",
    "pianopop2vendaskitdeacompanhamentos",
    "instagrampostpensaaquelemomentoondea",
    "jpmvendasblacknovembermusical2025perpetuo",
    "errojpmvendasblacknovembermusical2025",
    "postdoinstagramcomapartituracertafica",
    "pianopopvendaskitdeacompanhamentos",
    "postdoinstagramnotristeoaluno"
  ],
  "insights_errors": []
}

📈 Time series (diário)

✅ fetchDailyTimeSeries · 1 dia(s) · de 2026-04-25 a 2026-04-25
[
  {
    "date": "2026-04-25",
    "spend": 36.43,
    "impressions": 1611,
    "link_clicks": 38,
    "landing_page_views": 30,
    "attributed_leads": 17,
    "link_ctr": 2.3587833643699563,
    "cpl": 2.1429411764705883
  }
]

🔬 Raw fetch date_preset=today (BRT 2026-04-25)

Request cru pra cada campanha matched, com date_preset=today e time_zone=America/Sao_Paulo. Se vem HTTP 200 com data: [], a Meta confirma que não há gasto/impressão hoje (campanha pausada, budget zerado, ou ainda não saiu do forno). Se vem HTTP 4xx/5xx com error, aí é token / permissão / rate-limit.

HTTP 200 · [SEMENTE] [LEAD] AULA 04 - LER CIFRAS 120244032210430546

https://graph.facebook.com/v21.0/120244032210430546/insights?fields=date_start,spend,impressions,inline_link_clicks,inline_link_click_ctr,actions&date_preset=today&time_increment=1&time_zone=America%2FSao_Paulo

{
  "data": [
    {
      "date_start": "2026-04-25",
      "spend": "36.43",
      "impressions": "1611",
      "inline_link_clicks": "38",
      "inline_link_click_ctr": "2.358783",
      "actions": [
        {
          "action_type": "link_click",
          "value": "38"
        },
        {
          "action_type": "page_engagement",
          "value": "776"
        },
        {
          "action_type": "landing_page_view",
          "value": "30"
        },
        {
          "action_type": "omni_landing_page_view",
          "value": "30"
        },
        {
          "action_type": "onsite_conversion.post_unlike",
          "value": "2"
        },
        {
          "action_type": "post_engagement",
          "value": "773"
        },
        {
          "action_type": "like",
          "value": "3"
        },
        {
          "action_type": "post_interaction_gross",
          "value": "28"
        },
        {
          "action_type": "onsite_web_view_content",
          "value": "32"
        },
        {
          "action_type": "post_interaction_net",
          "value": "30"
        },
        {
          "action_type": "onsite_web_app_view_content",
          "value": "32"
        },
        {
          "action_type": "onsite_web_lead",
          "value": "17"
        },
        {
          "action_type": "post",
          "value": "2"
        },
        {
          "action_type": "view_content",
          "value": "32"
        },
        {
          "action_type": "onsite_conversion.post_net_like",
          "value": "24"
        },
        {
          "action_type": "lead",
          "value": "17"
        },
        {
          "action_type": "offsite_content_view_add_meta_leads",
          "value": "32"
        },
        {
          "action_type": "offsite_conversion.fb_pixel_lead",
          "value": "17"
        },
        {
          "action_type": "video_view",
          "value": "707"
        },
        {
          "action_type": "omni_view_content",
          "value": "32"
        },
        {
          "action_type": "offsite_conversion.fb_pixel_view_content",
          "value": "32"
        },
        {
          "action_type": "post_reaction",
          "value": "26"
        }
      ],
      "date_stop": "2026-04-25"
    }
  ],
  "paging": {
    "cursors": {
      "before": "MAZDZD",
      "after": "MAZDZD"
    }
  }
}