简体   繁体   中英

Facebook Marketing API: Potential reach of a Facebook campaign

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM