Hi, i am trying to add different types of criterions to selector and get
the reach number according to that criterions. In below code i tried to add
gender type criterion to selector but i get error.
Code
def get_reach(client, country_list, gender_list):
# Initialize appropriate service.
location_criterion_service = client.GetService(
'LocationCriterionService', version='v201809')
# Create the selector.
selector = {
'fields': ['Id', 'LocationName', 'DisplayType', 'GenderType',
'CanonicalName', 'Reach', 'TargetingStatus'],
'predicates': [{
'field': 'LocationName',
'operator': 'EQUALS',
'values': country_list
},{
'field': 'GenderType',
'operator': 'EQUALS',
'values': gender_list
}]
}
# Make the get request.
location_criteria = location_criterion_service.get(selector)
Output
googleads.errors.GoogleAdsServerFault: [SelectorError.INVALID_FIELD_NAME @
selector; trigger:'GenderType', SelectorError.INVALID_PREDICATE_FIELD_NAME @
selector; trigger:'GenderType']
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/252232c6-0ab0-4d9c-82cf-99a10d28f9fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.