脚本宝典收集整理的这篇文章主要介绍了php – 如何使用fb api计算估计的每日覆盖率,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
我试过下面的代码: –
$ch = curl_init(); curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,10); curl_setopt($ch,CURLOPT_TIMEOUT,60); curl_setopt($ch,CURLOPT_RETURNtransfer,TRUE); curl_setopt($ch,CURLOPT_USERAGENT,'faceBook'); $url_en = urlencode("{'geo_locations':{'countries': ['US'],},'age_min':20,'age_max':24}"); curl_setopt($ch,CURLOPT_URL,"https://graph.facebook.COM/v2.2/act_1375199556085956/reachestiMATE?access_token=ACCESS TOKEN&targeting_sPEc=".$url_en); curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,0); curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,2); curl_setopt($ch,CURLOPT_FOLLOWLOCATION,1); curl_setopt($ch,CURLOPT_HEADER,0); //curl_setopt($ch,1); $data = curl_exec($ch);
但获得以下响应数据: –
"data": { "users": 14600000,"bid_estimations": [ { "unsupported": false,"location": 3,"cpa_min": 79,"cpa_median": 145,"cpa_max": 195,"cpc_min": 45,"cpc_median": 70,"cpc_max": 87,"cpm_min": 8,"cpm_median": 20,"cpm_max": 27 } ],"estimate_ready": true } }
但是,我想要的结果如下:
请帮我解决一下这个.
/<AD_ACCOUNT>/delivery_estimate
要么
/<AD_SET>/delivery_estimate
参考:https://developers.facebook.com/docs/marketing-api/buying-api/targeting/v2.9
以上是脚本宝典为你收集整理的php – 如何使用fb api计算估计的每日覆盖率全部内容,希望文章能够帮你解决php – 如何使用fb api计算估计的每日覆盖率所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。