Hi Luis, Ok, I misunderstood the error message to mean that the trigger 'CampaignName' as at fault, but it looks like 'CampaignName' is just the key for the operator that was at fault.
Thanks! Preston On Wednesday, September 26, 2018 at 3:36:28 AM UTC-7, Luis Xander Talag (AdWords API Team) wrote: > > Hi Preston, > > The INVALID_ > <https://developers.google.com/adwords/api/docs/reference/v201809/CampaignBidModifierService.SelectorError.Reason#enums> > PREDICATE_OPERATOR > <https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupService.SelectorError.Reason#enums> > > error indicates that you are using an unsupported predicate for the > CampaignName field. You may use the CONTAINS predicate instead of > CONTAINS_ANY to filter by CampaignName. Let me know how it goes and if > you have any further clarifications. > > Thanks and regards, > Luis > AdWords API Team > > On Wednesday, September 26, 2018 at 1:31:13 PM UTC+8, Preston Hinkle wrote: >> >> Hello, >> >> As the question title states, I'm trying to select all ad groups with >> campaign names satisfying a CONTAINS_ANY relationship. I assume this is >> possible since the AdWords API documentation says that campaign name can be >> filtered on for ad groups. However, when I try I receive the following >> error: >> >> GoogleAdsServerFault: [SelectorError.INVALID_PREDICATE_OPERATOR @ >> serviceSelector; trigger:'CampaignName'] >> >> I'm using the AdGroupService's get() method, and my selector looks like >> this: >> >> { >> >> 'fields': >> >> ['Id', 'CampaignId', 'CampaignName', 'Name', 'Status', 'Settings', 'Labels', >> 'AdRotationMode'], >> >> 'predicates': >> >> [{'field': 'CampaignName', 'operator': 'CONTAINS_ANY', 'values': >> ['dmageo']}], >> >> 'paging': >> >> {'startIndex': 0, 'numberResults': '10000'} >> >> } >> >> >> >> Filtering by CampaignId works perfectly fine, but CampaignName (and >> Campaign, campaignName, ...) for whatever reason doesn't work. Any idea? >> >> >> Thanks! >> >> >> >> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/fa2351a3-cb14-4a1a-8350-030c77282db0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
