Peng, Have you tried to use CONTAINS_ANY or CONTAINS_ALL predicates? These should work as expected. Which service were you trying to select from?
Thanks, Ray On Wednesday, July 16, 2014 3:13:22 PM UTC-4, Ray Tsang (AdWords API Team) wrote: > > Giles, > > I'll look into this. > > Thanks, > > Ray > > On Wednesday, July 16, 2014 10:09:11 AM UTC-4, Giles Bodger wrote: >> >> I try this but get that the following error >> >> Root reason: [SelectorError.INVALID_PREDICATE_FIELD_NAME @ selector; >> trigger:'placeholderTypes'] >> >> doesnt matter if i use IN or CONTAINS >> >> >> On Wednesday, July 9, 2014 9:14:17 PM UTC+1, Ray Tsang (AdWords API Team) >> wrote: >>> >>> Peng, >>> >>> Just to follow up, have you tried the IN operator >>> >>> Thanks, >>> >>> Ray >>> >>> On Wednesday, May 21, 2014 3:40:37 AM UTC-4, Peng Taug wrote: >>>> >>>> Is that means we can't filter multiple placeholder types with >>>> CampaignFeedService? >>>> >>>> On Thursday, June 6, 2013 2:51:16 PM UTC+8, Takeshi Hagikura (AdWords >>>> API Team) wrote: >>>>> >>>>> Hi, >>>>> >>>>> Looks like you can use EQUALS operator. >>>>> I'll get back to you as for IN operator. >>>>> (CONTAINS operator is targeted for String values. So it shouldn't be >>>>> allowed) >>>>> >>>>> Best, >>>>> - Takeshi >>>>> >>>>> On Tuesday, June 4, 2013 12:10:42 AM UTC+9, [email protected] >>>>> wrote: >>>>>> >>>>>> Hi, >>>>>> >>>>>> I'm trying to run a get call on the CampaignFeedService where I only >>>>>> get the feeds for site links. >>>>>> >>>>>> I tried creating my selector like this (in Java): >>>>>> >>>>>> Selector selector = new Selector(); >>>>>> >>>>>> selector.setFields(new String[] { "CampaignId", "FeedId", >>>>>> "MatchingFunction", "PlaceholderTypes", "Status" }); >>>>>> >>>>>> Predicate idPredicate = new Predicate(); >>>>>> idPredicate.setField("CampaignId"); >>>>>> idPredicate.setOperator(PredicateOperator.IN); >>>>>> idPredicate.setValues(getIds(campaigns)); >>>>>> >>>>>> Predicate typePredicate = new Predicate(); >>>>>> typePredicate.setField("PlaceholderTypes"); >>>>>> typePredicate.setOperator(PredicateOperator.CONTAINS); >>>>>> typePredicate.setValues(new String[] { >>>>>> String.valueOf(GooglePlaceholder.SITELINKS) }); >>>>>> >>>>>> Predicate statusPredicate = new Predicate(); >>>>>> statusPredicate.setField("Status"); >>>>>> statusPredicate.setOperator(PredicateOperator.EQUALS); >>>>>> statusPredicate.setValues(new String[] { "ACTIVE" }); >>>>>> >>>>>> selector.setPredicates(new Predicate[] { idPredicate, >>>>>> typePredicate, statusPredicate }); >>>>>> >>>>>> return selector; >>>>>> >>>>>> >>>>>> But when I run this I get the following error: >>>>>> >>>>>> <faultstring>[SelectorError.INVALID_PREDICATE_OPERATOR @ >>>>>> selector; trigger:'PlaceholderTypes']</faultstring> >>>>>> <detail> >>>>>> <ApiExceptionFault xmlns=" >>>>>> https://adwords.google.com/api/adwords/cm/v201302"> >>>>>> >>>>>> <message>[SelectorError.INVALID_PREDICATE_OPERATOR @ selector; >>>>>> trigger:'PlaceholderTypes']</message> >>>>>> >>>>>> <ApplicationException.Type>ApiException</ApplicationException.Type> >>>>>> <errors xmlns:xsi=" >>>>>> http://www.w3.org/2001/XMLSchema-instance" xsi:type="SelectorError"> >>>>>> <fieldPath>selector</fieldPath> >>>>>> <trigger>PlaceholderTypes</trigger> >>>>>> >>>>>> <errorString>SelectorError.INVALID_PREDICATE_OPERATOR</errorString> >>>>>> <ApiError.Type>SelectorError</ApiError.Type> >>>>>> <reason>INVALID_PREDICATE_OPERATOR</reason> >>>>>> </errors> >>>>>> </ApiExceptionFault> >>>>>> </detail> >>>>>> >>>>>> I also tried using IN as the operator for the placeholder types >>>>>> predicate but with the same result. >>>>>> >>>>>> Am I going about this in the wrong way? >>>>>> >>>>>> Thanks >>>>>> Magnus Ljung >>>>>> >>>>> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/4c3e25dc-87e7-4435-a921-4b45cee646ad%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
