8

使用 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"
     }
  },
4

1 回答 1

0

API 文档参考:

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

API 请求:

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

但这里的令牌不是您的用户令牌,来自文档:

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:

"require":[["WebApiApplication","init",["ReactRenderer","PubXRootContainer.react","__inst_d496507d_0_0","__elem_a588f507_0_0"],["{TARGET TOKEN}","{ids}",{" __m":"ReactRenderer"},"constructAndRenderCompone

在此处输入图像描述

于 2017-11-28T14:41:04.803 回答