*Hi Google Adwords Team,*


i am facing invalid operator in predicate issue. The CONTAINS_ANY is not 
working on Name (Ad group name) in Ad group service.

The request details and the response error message is shown below.


 <https://puu.sh/sBvK7/9556fc5616.png>


 if isinstance(campaign_list, list):
    condition = {
        'field': 'CampaignId',
        'operator': 'IN',
        'values': campaign_list
    }
else:
    condition = {
        'field': 'CampaignId',
        'operator': 'EQUALS',
        'values': [campaign_list]
    }
self.SetClientCustomerId(client_customer_id)
offset = 0
selector = {
    'fields': ['Id', 'Name', 'Status'],
    'predicates': [
        condition,
        {
            'field': 'Name',
            'operator': 'CONTAINS_ANY',
            'values': identifier_list    # the list is show above in image
        },
        {
            'field': 'Status',
            'operator': 'NOT_EQUALS',
            'values': ['REMOVED']
        }
    ],
    'paging': {
        'startIndex': str(offset),
        'numberResults': str(self.PAGE_SIZE)
    },
}
more_pages = True
data = []
while more_pages:
    page = self.GetService('AdGroupService').get(selector)




(Fault){
   faultcode = "soap:Server"   faultstring = 
"[SelectorError.INVALID_PREDICATE_OPERATOR @ serviceSelector; trigger:'Name']"
   detail = 
      (detail){
         ApiExceptionFault = 
            (ApiExceptionFault){
               message = "[SelectorError.INVALID_PREDICATE_OPERATOR @ 
serviceSelector; trigger:'Name']"
               ApplicationException.Type = "ApiException"
               errors = 
                  (errors){
                     fieldPath = "serviceSelector"
                     trigger = "Name"
                     errorString = "SelectorError.INVALID_PREDICATE_OPERATOR"
                     ApiError.Type = "SelectorError"
                     reason = "INVALID_PREDICATE_OPERATOR"
                  }
            }
      }
 }

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/1d99b8b4-a640-4bb6-a011-b6e5d5879b64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to