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:
<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?