facebookfacebook-graph-apifacebook-insightsfacebook-marketing-api

How to get the Facebook insights data for ad Creative


I'am trying to get the reports data for the Facebook campaign, campaign has 3 adset, 3 ad and each ad has 3 adCreatives. Please can anyone help me in getting the adCreative specific insights data. I tried with the graph API explore i did't get the data for adCreatives.

call made with params are : 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 : response from Graph API explorer

{
  "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"
    }
  }
}

Solution

  • You get it wrong. You have only one ad creative per ad. You see 3 item in your list because you querying on campaign level. So basically you have 1 campaign 3 adsets and 3 ads.

    1 ad creative could be use in multiple ads, but 1 ad can use only one creative at a time.