我想了解一个帐户的所有广告系列的见解和明细。几乎可以肯定的是,由于我们使用的是publisher_platform
Edge,因此无法从故障中得到campaigns
。是否还有其他方法可以获取正在运行广告系列的网络/ publisher_platform?
请求
act_XXX/campaigns?fields=insights{impressions,account_id,account_currency,spend,cost_per_inline_link_click,actions,website_ctr},effective_status,start_time,stop_time&limit=1&breakdowns=publisher_platform&time_rage={"since":"2018-01-02","until":"2018-02-02"}
响应
"data": [
{
"insights": {
"data": [
{
"impressions": "90",
"account_id": "111111111111",
"account_currency": "USD",
"spend": "0.69",
"actions": [
{
"action_type": "comment",
"value": "2"
},
{
"action_type": "photo_view",
"value": "2"
},
{
"action_type": "post_reaction",
"value": "10"
},
{
"action_type": "page_engagement",
"value": "14"
},
{
"action_type": "post_engagement",
"value": "14"
}
],
"date_start": "2018-12-16",
"date_stop": "2019-01-14"
}
],
"paging": {
"cursors": {
"before": "MAZDZD",
"after": "MAZDZD"
}
}
},
"effective_status": "ACTIVE",
"start_time": "2019-01-14T12:52:16-0600",
"stop_time": "2019-01-21T12:52:13-0600",
"id": "23843254853610607"
}
],
"paging": {
"cursors": {
"before": "QVFIUkdVQ1p2ZATVNb01JUE55dU9VWWQ3MmxYTTNkSVRNQlI0alg4N2lzZA2FRZAGNDSzVvcDZAhTEF0RDJoZAWVHT09KTjVTeTBIMVpoQ0lmN3Q2djI3b2E2ek9n",
"after": "QVFIUkdVQ1p2ZATVNb01JUE55dU9VWWQ3MmxYTTNkSVRNQlI0alg4N2lzZA2FRZAGNDSzVvcDZAhTEF0RDJoZAWVHT09KTjVTeTBIMVpoQ0lmN3Q2djI3b2E2ek9n"
},
"next": "https://graph.facebook.com/v3.0/act_xxxxx/campaigns?access_token=xxxxxxxx"
}
}
我感到非常沮丧的是,该请求根本不响应breakdown
参数,因此完全返回响应。
答案 0 :(得分:0)
这个问题已经在8个月前问过,但可以回答有相同问题的人。
使用
act_XXX/campaigns?fields=insights.fields(<fields>).breakdowns(<breakdowns>)
所以就您而言,是
act_XXX/campaigns?fields=insights.fields(impressions,account_id,account_currency,spend,cost_per_inline_link_click,actions,website_ctr).breakdowns(publisher_platform),effective_status,start_time,stop_time&limit=1&time_rage={"since":"2018-01-02","until":"2018-02-02"}