有没有办法在不获取所有目标和创意信息的情况下获得Facebook的广告状态(adgroup_status & ad_status)?从文档中看,似乎只有在执行以下调用/{adgroup-id}时才能获得状态,该调用将返回有关广告的所有元数据。
上面的调用返回以下数据
{
"id":"6004196911039",
"data":{
"adgroups":{
"6004196911039":{
"adgroup_id":6004196911039,
"ad_id":6004196911039,
"campaign_id":6003417011234,
"name":"test",
"ad_status":4,
"adgroup_status":4,
"bid_type":1,
"max_bid":"30",
"bid_info":{
"1":"30"
},
"account_id":368811234,
"id":"6004196911039",
"creative_ids":[
6004196615439
],
"targeting":{
"countries":[
"US"
],
"friends_of_connections":[
{
"id":"6004008089439",
"name":null
}
]
},
"start_time":null,
"end_time":null,
"updated_time":1328021899
}
},
"creatives":{
"6004196615439":{
"type":25,
"action_spec":"{'action.type':'like', 'post':10150420410887685}",
"related_fan_page":1,
"cluster_id":6004008089439,
"name":"Sponsored story #6004196615439",
"run_status":1,
"preview_url":"http:\/\/www.facebook.com\/ads\/api\/creative_preview.php?cid=6004196615439",
"count_current_adgroups":2,
"id":"6004196615439",
"creative_id":"6004196615439"
}
}
}
}对于广告组来说,只获得状态会更便宜。
发布于 2013-06-21 06:44:38
为其他可能正在寻找答案的人回答问题。
可以,您可以通过提供要在呼叫中查询的特定字段来执行此操作,例如,您可以将以下内容附加到呼叫中:
?fields=adgroup_status,ad_status
而图形API将只返回特定字段。
https://stackoverflow.com/questions/11712503
复制相似问题