Hi, How I can get this using Google Ads API?
Thanks, On Friday, 30 August 2019 at 22:12:41 UTC+5:30 adsapiforumadvisor wrote: > 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. > > - You could use the AdGroupCriterionService.get() > > <https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupCriterionService#get> > to > pull these details. The AdGroupCriterion > > <https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupCriterionService.AdGroupCriterion> > will > contain the information for CriterionCustomAffinity > > <https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupCriterionService.CriterionCustomAffinity.html> > > and CriterionCustomIntent > > <https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupCriterionService.CriterionCustomIntent.html> > criterion. > Please find the sample selector query and example below: > > 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 > } > > - The Audience Performance Report > > <https://developers.google.com/adwords/api/docs/appendix/reports/audience-performance-report> > will > return the corresponding custom intent Id > > <https://developers.google.com/adwords/api/docs/appendix/reports/audience-performance-report#id> > and > the audience name using the Criteria > > <https://developers.google.com/adwords/api/docs/appendix/reports/audience-performance-report#criteria> > . > > > > Let us know if you need additional information. > > Regards, > Nikisha Patel, Google Ads API Team > > > ref:_00D1U1174p._5001UHFDOf:ref -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/3496c248-6736-4044-9e0b-82f3a5f6e380n%40googlegroups.com.