是否可以从图表或通过Facebook Ads php SDK API获得ad_set的建议出价?我想创建一个每天查询 API 的应用,以便从我的所有广告组中获取"建议出价"。这有助于跟踪广告组定位的竞争是上升还是减少。
我已经搜索了Facebook开发人员文档,但无法找到此信息。任何帮助将不胜感激。
是的,有一个用于此目的的 API,覆盖面估算值还包括有关该组定位选项的建议出价范围的信息
您可以查询现有广告,也可以查询当前未应用于广告的一组定位选项
https://developers.facebook.com/docs/marketing-api/reachestimate/v2.5
示例调用:
curl -G '
-d 'currency=USD' '
-d 'optimize_for=OFFSITE_CONVERSIONS' '
--data-urlencode 'targeting_spec={
"geo_locations": {"countries":["US"]},
"age_min": 20,
"age_max": 40
}' '
-d 'access_token=<ACCESS_TOKEN>' '
https://graph.facebook.com/v2.5/act_<AD_ACCOUNT_ID>/reachestimate
示例响应:
{
"data": {
"users": 186000000,
"bid_estimations": [
{
"unsupported": false,
"location": 3,
"bid_amount_min": 39,
"bid_amount_median": 80,
"bid_amount_max": 121
}
],
"estimate_ready": true
}
}
从 v2.10 开始,现在是/AD_ACCOUNT/delivery_estimate 或/AD_SET/delivery_estimate
示例响应:
{
"data":[
{
"bid_estimate":{
"min_bid":151,
"median_bid":246,
"max_bid":405
},
"daily_outcomes_curve":[
{
"spend":0,
"reach":0,
"impressions":0,
"actions":0
},
{
"spend":157,
"reach":32768.790689652,
"impressions":90945.104519826,
"actions":90945.104519826
},
{
"spend":239,
"reach":35937.659450005,
"impressions":126453.01012466,
"actions":126453.01012466
},
{
"spend":495,
"reach":52682.097382142,
"impressions":178817.36771853,
"actions":178817.36771853
},
...
+1 到 Igy 的参考链接,现在在这里:https://developers.facebook.com/docs/marketing-api/buying-api/targeting/v2.10