Hi all!

Will be kindly grateful if anyone can help me to figure the following out:

I'm using such selector-

Selector selector = new SelectorBuilder()
        .fields(AdGroupCriterionField.AdGroupId, AdGroupCriterionField.CpcBid, 
AdGroupCriterionField.CriteriaType, AdGroupCriterionField.PartitionType, 
AdGroupCriterionField.CriterionUse)
        .orderAscBy(AdGroupCriterionField.AdGroupId)
        .limit(limit)
        .offset(offset)
        .in(AdGroupCriterionField.AdGroupId, adGroupIDs)
        .equals(AdGroupCriterionField.CriterionUse, "BIDDABLE")
        .equals(AdGroupCriterionField.PartitionType, "UNIT")
        .build();


Looks correct for me, but the problem is in the PartitionType filter.
In the request it looks like:

<predicates>
                    <field>PartitionType</field>
                    <operator>EQUALS</operator>
                    <values>UNIT</values>
 </predicates>

But it causes the error:

 <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="SelectorError">
                        <fieldPath/>
                        <trigger>PartitionType</trigger>
                        
<errorString>SelectorError.INVALID_PREDICATE_FIELD_NAME</errorString>
                        <ApiError.Type>SelectorError</ApiError.Type>
                        <reason>INVALID_PREDICATE_FIELD_NAME</reason>
                    </errors>

If anybody has came across with that?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
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/4bc29ba1-3cfa-4055-bf4b-8ecca8daf6ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to