zeep.exceptions.LookupError: No type 'OperatingSystemVersion' in namespace https://adwords.google.com/api/adwords/o/v201809.

49 views
Skip to first unread message

tahirhany...@gmail.com

unread,
Nov 21, 2018, 6:11:50 AM11/21/18
to AdWords API and Google Ads API Forum
Hi, i am trying to add OperatingSystemVersion as criterion to TrafficEstimatorSelector. But when i execute the code below, i get error.

Code :

# 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 :

zeep.exceptions.LookupError: No type 'OperatingSystemVersion' in namespace https://adwords.google.com/api/adwords/o/v201809



tahirhany...@gmail.com

unread,
Nov 21, 2018, 6:14:24 AM11/21/18
to AdWords API and Google Ads API Forum

Teja Makani

unread,
Nov 21, 2018, 12:58:14 PM11/21/18
to AdWords API and Google Ads API Forum
Hello,

The Criterion of the TrafficEstimatorService support only those Criterions you mentioned. It looks like you have posted the similar issue on our GitHub Client Libraries. Looks like Mark is responding on the issue. Please follow up with him if the problem still persists. Let me know if you have any other questions.

Regards,
Sai Teja, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages