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, magnus...@feedeo.com 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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to