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

时间:2017-05-16 19:46:23

标签: facebook facebook-graph-api facebook-insights facebook-marketing-api

我正在尝试获取Facebook广告系列的报告数据,广告系列包含3个adset,3个广告,每个广告都有3个adCreatives。请任何人帮助我获取adCreative特定见解数据。我尝试使用图形API探索我没有得到adCreatives的数据。

使用params进行的调用是: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

Ex:来自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"
    }
  }
}

2 个答案:

答案 0 :(得分:0)

你弄错了。每个广告只有一个广告素材。您在列表中看到了3项,因为您在广告系列一级查询。所以基本上你有1个广告系列3个广告和3个广告。

可以在多个广告中使用1个广告素材,但一个广告一次只能使用一个广告素材。

答案 1 :(得分:0)

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

/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']