如何获取广告创意的 Facebook 洞察数据

How to get the Facebook insights data for ad Creative

我正在尝试获取 Facebook 活动的报告数据,活动有 3 个广告集、3 个广告,每个广告有 3 个 adCreatives。请任何人帮助我获取 adCreative 特定的见解数据。我尝试使用图表 API 探索我没有获得 adCreatives 的数据。

使用参数进行的调用是:https://graph.facebook.com/2.9/campaingId-XXXX/insights?fields=impressions,clicks,ctr,ad_name,adset_name,cpc,cpm,cpp,campaign_name,ad_id,adset_id,account_id,account_name&level=ad&metrics=ctr&limit=10

示例:来自 Graph API 资源管理器的响应

{
  "data": [
    {
      "impressions": "30",
      "clicks": "1",
      "ctr": "3.333333",
      "ad_name": "I Ad",
      "adset_name": "I Ad Set",
      "cpc": "0.03",
      "cpm": "1",
      "cpp": "4.285714",
      "campaign_name": "Campaign.act_xxxxxxx",
      "ad_id": "xxxxx",
      "adset_id": "xxxxx",
      "account_id": "xxxxx",
      "account_name": "Test Account From test",
      "date_start": "2017-04-17",
      "date_stop": "2017-05-16"
    },
    {
      "impressions": "28",
      "clicks": "0",
      "ctr": "0",
      "ad_name": "H Ad",
      "adset_name": "H Ad Set",
      "cpc": "0",
      "cpm": "1.071429",
      "cpp": "3.75",
      "campaign_name": "Campaign.act_xxxxxxx",
      "ad_id": "xxxxxx",
      "adset_id": "xxxxx",
      "account_id": "xxxxxx",
      "account_name": "Test Account From test",
      "date_start": "2017-04-17",
      "date_stop": "2017-05-16"
    },
    {
      "impressions": "29",
      "clicks": "2",
      "ctr": "6.896552",
      "ad_name": "G Ad",
      "adset_name": "G Ad Set",
      "cpc": "0.025",
      "cpm": "1.724138",
      "cpp": "8.333333",
      "campaign_name": "Campaign.act_xxxxxxx",
      "ad_id": "xxxxxx",
      "adset_id": "xxxxxxxxx",
      "account_id": "xxxxxxxx",
      "account_name": "Test Account From test",
      "date_start": "2017-04-17",
      "date_stop": "2017-05-16"
    }
  ],
  "paging": {
    "cursors": {
      "before": "MAZDZD",
      "after": "MgZDZD"
    }
  }
}

你误会了。每个广告只有一个广告素材。您在列表中看到 3 项,因为您在广告系列级别进行查询。所以基本上你有 1 个活动 3 个广告集和 3 个广告。

1 个广告创意可用于多个广告,但 1 个广告一次只能使用一个创意。

每个广告只能有一个创意,因此最好的方法是列出一个帐户中的所有广告并投影创意信息。您可以尝试以下图形查询:

/act_{{AD_ACCOUNT_ID}}/ads?fields=adcreatives{body,effective_object_story_id,object_url,thumbnail_url,image_url,object_type},insights.date_preset(lifetime).level(ad).breakdowns(publisher_platform){spend,clicks,impressions,reach,actions,unique_actions,video_p25_watched_actions,video_p50_watched_actions,video_p75_watched_actions,video_p95_watched_actions,video_p100_watched_actions,video_10_sec_watched_actions},id,name,campaign{id,name,account_id,objective},adset{id,name},created_time&limit=250&effective_status=['ACTIVE','ARCHIVED','PAUSED','CAMPAIGN_PAUSED','ADSET_PAUSED']