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": 2055.55,
      "impressions": 91380,
      "clicks": 4883,
      "link_clicks": 3133,
      "link_ctr": 3.42854,
      "landing_page_views": 2294,
      "connect_rate": 73.22055537823172,
      "attributed_leads": 1073,
      "cost_per_attributed_lead": 1.915703634669152,
      "cpm": 22.494528,
      "cpc": 0.42096,
      "reach": 44466
    }
  ],
  "totals": {
    "spend": 2055.55,
    "impressions": 91380,
    "clicks": 4883,
    "link_clicks": 3133,
    "landing_page_views": 2294,
    "attributed_leads": 1073,
    "reach": 44466,
    "ctr_aggregate": 5.34362004815058,
    "link_ctr_aggregate": 3.428540161961042,
    "connect_rate_aggregate": 73.22055537823172,
    "cost_per_attributed_lead_aggregate": 1.915703634669152,
    "cpm_aggregate": 22.49452834318232,
    "cpc_aggregate": 0.42096047511775553
  },
  "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 · 7 dia(s) · de 2026-04-19 a 2026-04-25
[
  {
    "date": "2026-04-19",
    "spend": 237.84,
    "impressions": 10187,
    "link_clicks": 391,
    "landing_page_views": 279,
    "attributed_leads": 145,
    "link_ctr": 3.8382251889663292,
    "cpl": 1.6402758620689655
  },
  {
    "date": "2026-04-20",
    "spend": 116.35,
    "impressions": 6768,
    "link_clicks": 274,
    "landing_page_views": 206,
    "attributed_leads": 98,
    "link_ctr": 4.048463356973995,
    "cpl": 1.1872448979591836
  },
  {
    "date": "2026-04-21",
    "spend": 203.42,
    "impressions": 9474,
    "link_clicks": 360,
    "landing_page_views": 266,
    "attributed_leads": 140,
    "link_ctr": 3.799873337555415,
    "cpl": 1.4529999999999998
  },
  {
    "date": "2026-04-22",
    "spend": 414.1,
    "impressions": 16796,
    "link_clicks": 528,
    "landing_page_views": 380,
    "attributed_leads": 143,
    "link_ctr": 3.143605620385806,
    "cpl": 2.895804195804196
  },
  {
    "date": "2026-04-23",
    "spend": 545.46,
    "impressions": 22534,
    "link_clicks": 776,
    "landing_page_views": 572,
    "attributed_leads": 291,
    "link_ctr": 3.4436850980740217,
    "cpl": 1.8744329896907217
  },
  {
    "date": "2026-04-24",
    "spend": 538.38,
    "impressions": 25621,
    "link_clicks": 804,
    "landing_page_views": 591,
    "attributed_leads": 256,
    "link_ctr": 3.1380508176886144,
    "cpl": 2.103046875
  },
  {
    "date": "2026-04-25",
    "spend": 35.8,
    "impressions": 1582,
    "link_clicks": 37,
    "landing_page_views": 30,
    "attributed_leads": 17,
    "link_ctr": 2.338811630847029,
    "cpl": 2.105882352941176
  }
]

🔬 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.28",
      "impressions": "1597",
      "inline_link_clicks": "37",
      "inline_link_click_ctr": "2.316844",
      "actions": [
        {
          "action_type": "link_click",
          "value": "37"
        },
        {
          "action_type": "page_engagement",
          "value": "765"
        },
        {
          "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": "762"
        },
        {
          "action_type": "like",
          "value": "3"
        },
        {
          "action_type": "post_interaction_gross",
          "value": "27"
        },
        {
          "action_type": "onsite_web_view_content",
          "value": "32"
        },
        {
          "action_type": "post_interaction_net",
          "value": "29"
        },
        {
          "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": "23"
        },
        {
          "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": "698"
        },
        {
          "action_type": "omni_view_content",
          "value": "32"
        },
        {
          "action_type": "offsite_conversion.fb_pixel_view_content",
          "value": "32"
        },
        {
          "action_type": "post_reaction",
          "value": "25"
        }
      ],
      "date_stop": "2026-04-25"
    }
  ],
  "paging": {
    "cursors": {
      "before": "MAZDZD",
      "after": "MAZDZD"
    }
  }
}