Hi, i am trying to add OperatingSystemVersion as criterion to TrafficEstimatorSelector. But when i execute the code below, i get error.
# Create campaign estimate requests.
campaign_estimate_requests = [{
'adGroupEstimateRequests': adgroup_estimate_requests,
'criteria': [
{
'xsi_type': 'Location',
'id': '2840' # United States.
},
{
'xsi_type': 'Language',
'id': '1019' # Arabic.
},
{
'xsi_type': 'OperatingSystemVersion',
'id': '630336' # iOS 11 <=
}
],
}]
# Create the selector.
selector = {
'campaignEstimateRequests': campaign_estimate_requests,
}
# Optional: Request a list of campaign-level estimates segmented by
# platform.
selector['platformEstimateRequested'] = True
# Get traffic estimates.
estimates = traffic_estimator_service.get(selector)
Output :