如何检索展示位置的名称(Facebook Audience Network)

时间:2016-10-04 10:56:18

标签: facebook facebook-graph-api audience

使用Facebook Audience Network API,我有展示位置ID,但没有展示位置名称

https://graph.facebook.com/v2.7/XXX/app_insights/app_event/?period=daily&event_name=fb_ad_network_imp&aggregateBy=COUNT&breakdowns[0]=placement&access_token=XXX


{
     "time": "2016-09-21T07:00:00+0000",
     "value": "36785",
     "breakdowns": {
        "placement": "176682892738688"
     }
  },

1 个答案:

答案 0 :(得分:0)

API文档参考:

https://developers.facebook.com/docs/atlas-api/reference/api/placements/v2.11#readplacements

API请求:

https://graph.facebook.com/ {API_VERSION} / {PLACEMENT_ID}

但此处的令牌不是您的用户令牌,来自doc:

A user access token with Atlas API capability is required.

但Atlas页面声音被删除。

我找到了一种从“https://business.facebook.com/pub/property/?business_id= {bussiness_id}& property_id = {property_id}'

的回复中获取令牌的方法

响应摘要str:

“需要”:[[ “WebApiApplication”, “初始化”,[ “ReactRenderer”, “PubXRootContainer.react”, “__ inst_d496507d_0_0”, “__ elem_a588f507_0_0”],[ “{目标令牌}”, “{IDS}” ,{ “__米”: “ReactRenderer”},“constructAndRenderCompone

enter image description here