有没有办法在不获取所有定位和创意信息的情况下获取 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"
}
}
}
}
对于广告组而言,仅获取状态的成本会更低。