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

问题描述 投票:0回答:1

使用 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"
     }
  },
facebook facebook-graph-api audience
1个回答
0
投票

API 文档参考:

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

API请求:

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

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

需要具有 Atlas API 功能的用户访问令牌。 但阿特拉斯页面听起来被删除了。

我找到了一种从“https://business.facebook.com/pub/property/?business_id={business_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

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.