Hello, The Criterion <https://devsite.googleplex.com/adwords/api/docs/reference/v201809/TrafficEstimatorService.CampaignEstimateRequest#criteria> of the TrafficEstimatorService <https://developers.google.com/adwords/api/docs/reference/v201809/TrafficEstimatorService> support only those Criterions you mentioned. It looks like you have posted the similar issue <https://github.com/googleads/googleads-python-lib/issues/351> 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. On Wednesday, November 21, 2018 at 6:11:50 AM UTC-5, [email protected] wrote: > > 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 > > > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/a6e2c96e-8e32-478c-87dc-b70fdea75504%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
