没有从广告洞察 API (/insights) 返回洞察数据

No insights data returning from Ads Insights API (/insights)

Graph API Explorer get 请求后返回

act_396592**/insights?fields=actions

AS

{
"data": [
        ]
}

我也尝试过使用广告 ID 和时间范围

/6072038816***/insights?fields=impressions&since=2017-08-01&until=2017-08-10

image

注意:此帐户有足够多的广告。我已获得 ads_read 许可。

特别是对于广告,有时您将无法通过 Insights 检索数据。对于经过编辑的广告尤其如此。这是一项改进的副作用,该改进允许将来自 post 的反馈转移到更新的广告中。

此部分(摘自下文提到的来源)明确提到可能会失去对 Insights 的访问权限:

Once we carry social feedback after you edit an ad, the new ad's post and the old post share social feedback. This relationship results in other limitations. Once you edit an ad, you cannot:

  • Publish or schedule to publish new or old ad posts
  • Retrieve post insights for old or new ad posts
  • Reuse old or new ad posts Boost old or new ad posts
  • Read old or new ad posts at /promotable_posts

我鼓励您阅读完整的博客 post here

来源:https://developers.facebook.com/ads/blog/post/2017/07/18/transfering-reactions/

act_396592**/insights

以上请求无效,因为 Facebook 默认显示 过去 30 天 的见解 doc。如果广告在过去 30 天内未激活,则清空数据 returns.

/6072038816***/insights?fields=impressions&since=2017-08-01&until=2017-08-10

以上请求没有成功,因为参数有误。我不知道为什么它没有抛出任何错误。它确实令人困惑。 正确的方法之一是,使用 time_range

/6072038816***/insights?fields=impressions&time_range={'since':'2017-08-01','until':'2017-08-10'}

或使用date_preset

/insights?fields=reach&date_preset=lifetime

供将来参考:'last_30d' 的 date_preset 的默认值在检索洞察力作为优势时特别具有欺骗性,例如广告或活动,可能导致收不到任何广告洞察。

这仅 returns 过去 30 天内活跃广告的见解:
<ad account id>/ads?fields=name,id,created_time,insights{impressions,cost_per_unique_click}
所有其他广告也会被检索,但没有 Insights。

要包含所有广告洞察,请使用 .date_preset(lifetime):
<ad account id>/ads?fields=name,id,created_time,insights.date_preset(lifetime){impressions,cost_per_unique_click}