2016-10-04 72 views
6

隨着Facebook的受衆網絡API我有放置的ID,而不是放置名如何取回放置(Facebook的受衆網絡)的名稱

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" 
    } 
    }, 
+0

你能解決這個問題嗎? – freddygv

+0

你找到了方法嗎? – RhinoLarva

+0

@RhinoLarva不,我仍然在搜索...;( – Maxime

回答

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. 

但阿特拉斯頁面的聲音被刪除。

我找到一個方法來獲得從的響應令牌 'https://business.facebook.com/pub/property/?business_id= {bussiness_id} & PROPERTY_ID = {PROPERTY_ID}'

響應抽象STR:

「需要」:[[」 WebApiApplication「,」init「,[」ReactRenderer「,」PubXRootContainer.react「,」__inst_d496507d_0_0「,」__ elem_a588f507_0_0「],[」{TARGET TOKEN}「,」{ids}「,{」__ m「:」ReactRenderer「}} ,「constructAndRenderCompone

enter image description here

相關問題