获取Facebook异地转换价值

时间:2016-12-11 18:17:57

标签: facebook facebook-graph-api facebook-ads-api

我正在努力获取adset的使用权。在文档here中,我了解字段cost_per_action_type应包含offsite_conversion的值。但是,它不会返回任何offsite_conversion值。

这是我提出的要求:

2.8/<adset_id>/insights?fields=cpc,cpm,cost_per_action_type,cost_per_total_action,total_action_value,actions&action_attribution_windows=7d_view,28d_click

这就是回应:

{
  "data": [
    {
      "cpc": "0.00452",
      "cpm": "0.284469",
      "cost_per_action_type": [
        {
          "action_type": "comment",
          "value": "0.048382",
          "7d_view": "37.98",
          "28d_click": "0.048444"
        },
        {
          "action_type": "post_reaction",
          "value": "0.011615",
          "7d_view": "0.575455",
          "28d_click": "0.011854"
        },
        {
          "action_type": "page_engagement",
          "value": "0.005765",
          "7d_view": "0.566866",
          "28d_click": "0.005824"
        },
        {
          "action_type": "post_engagement",
          "value": "0.005776",
          "7d_view": "0.566866",
          "28d_click": "0.005835"
        },
        {
          "action_type": "like",
          "value": "3.165",
          "28d_click": "3.165"
        },
        {
          "action_type": "link_click",
          "value": "0.015352",
          "28d_click": "0.015352"
        },
        {
          "action_type": "post",
          "value": "0.808085",
          "28d_click": "0.808085"
        }
      ],
      "cost_per_total_action": "0.005765",
      "total_action_value": "0",
      "actions": [
        {
          "action_type": "comment",
          "value": "785",
          "7d_view": "1",
          "28d_click": "784"
        },
        {
          "action_type": "post_reaction",
          "value": "3270",
          "7d_view": "66",
          "28d_click": "3204"
        },
        {
          "action_type": "page_engagement",
          "value": "6588",
          "7d_view": "67",
          "28d_click": "6521"
        },
        {
          "action_type": "post_engagement",
          "value": "6576",
          "7d_view": "67",
          "28d_click": "6509"
        },
        {
          "action_type": "like",
          "value": "12",
          "28d_click": "12"
        },
        {
          "action_type": "link_click",
          "value": "2474",
          "28d_click": "2474"
        },
        {
          "action_type": "post",
          "value": "47",
          "28d_click": "47"
        }
      ],
      "date_start": "2016-11-12",
      "date_stop": "2016-12-11"
    }
  ],
  "paging": {
    "cursors": {
      "before": "MAZDZD",
      "after": "MAZDZD"
    }
  }
}

我对Facebook的Graph API非常熟悉,但对广告部分并不熟悉。请帮忙!

1 个答案:

答案 0 :(得分:0)

您的查询是正确的。您是否确认您要查询的广告系列实际上是在跟踪离线事件集,并且事件集中包含您的广告系列最近向其投放了展示次数的人的活动?