Facebook Marketing API:Facebook广告系列的潜在影响力

时间:2016-06-09 09:33:34

标签: python facebook-sdk-3.0 facebook-marketing-api

我们可以使用python SDK运行Facebook广告。我想知道目标受众的潜在影响力。有没有可用的命令或任何其他方式?

1 个答案:

答案 0 :(得分:0)

使用广告帐户获取定位规范的覆盖面估算值。

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)

响应结果

{
  "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用户基于提及标准

Ad Account Reachestimate