[英]Facebook Marketing API: Potential reach of a Facebook campaign
We can run Facebook advert using python SDK.我们可以使用 python SDK 运行 Facebook 广告。 I want to know the potential reach of target audience.
我想知道目标受众的潜在覆盖范围。 Is there any command available or any other way?
有没有可用的命令或任何其他方式?
To get the Reach Estimates of a targeting specification using ad account.使用广告帐户获取定位规范的覆盖率估算值。
account = AdAccount('act_<AD_ACCOUNT_ID>')
targeting_spec = {
'geo_locations': {
'countries': ['US'],
},
'age_min': 20,
'age_max': 40,
}
params = {
'currency': 'USD',
'optimize_for': AdSet.OptimizationGoal.offsite_conversions,
'targeting_spec': targeting_spec,
}
reach_estimate = account.get_reach_estimate(params=params)
print(reach_estimate)
Response Result响应结果
{
"data": {
"users": 186000000,
"bid_estimations": [
{
"unsupported": false,
"location": 3,
"bid_amount_min": 39,
"bid_amount_median": 80,
"bid_amount_max": 121
}
],
"estimate_ready": true
}
}
186000000 users base on mention criteria 186000000个用户基于提及标准
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.