Hi Boris,
Thank you for reaching support. With regards to your concern, you could get the IDs of custom audiences (custom intent, custom affinity) using the below approaches.
SelectorBuilder builder = new SelectorBuilder();
Selector selector = builder.fields(AdGroupCriterionField.values())
.equals(AdGroupCriterionField.CriteriaType, "CUSTOM_INTENT")
.build();
Here is an example:
'criterion': {
'id': 8xx4xxx87xx3,
'type': 'CUSTOM_INTENT',
'Criterion.Type': 'CriterionCustomIntent',
'customIntentId': 3xxx9xx3
}
Let us know if you need additional information.
Regards,
Nikisha Patel, Google Ads API Team
|
||||||