Facebook Marketing API: Potential reach of a Facebook campaign

非 Y 不嫁゛ 提交于 2019-12-08 13:13:27

问题


We can run Facebook advert using python SDK. I want to know the potential reach of target audience. Is there any command available or any other way?


回答1:


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

Ad Account Reachestimate



来源:https://stackoverflow.com/questions/37722078/facebook-marketing-api-potential-reach-of-a-facebook-campaign

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!