Cannot use PartitionType field in the Selector

6 views
Skip to first unread message

Konstantin Krylov

unread,
Oct 31, 2018, 7:16:05 PM10/31/18
to AdWords API and Google Ads API Forum
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?
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages