2016-06-09 6 views

답변

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 
    } 
} 

186,000,000 사용자 기반을 결과

Ad Account Reachestimate