Get list of Affinity Categories and In-market categories

307 views
Skip to first unread message

Pietro Galassi

unread,
Jan 17, 2020, 11:08:21 AM1/17/20
to AdWords API and Google Ads API Forum
Hi all,

how is possible to get list of Affinity Categories using rest Apis ?

Regads,
Pietro Galassi

Google Ads API Forum Advisor Prod

unread,
Jan 17, 2020, 4:16:53 PM1/17/20
to pietro....@gmail.com, adwor...@googlegroups.com

Hello Pietro,

Thank you for reaching out. If you are looking to retrieve the affinity categories, 'CUSTOM_INTENT' and 'CUSTOM_AFFINITY' via Google Ads API Beta, you could use the custom_interest resource to retrieve this data. Let us know if you have any additional concerns.

Regards,
Nikisha Patel, Google Ads API Team



ref:_00D1U1174p._5001USwkIB:ref

Harry

unread,
Jan 17, 2020, 5:30:58 PM1/17/20
to AdWords API and Google Ads API Forum
With AdWords API I can get the complete list of in-market audience categories with this code: ConstantDataService.getUserInterestCriterion(ConstantDataServiceUserInterestTaxonomyType.IN_MARKET);
Is there a similar way to get the full list of affinity categories using AdWords API?

Pietro Galassi

unread,
Jan 20, 2020, 3:22:27 AM1/20/20
to AdWords API and Google Ads API Forum
Well,

performing this query using googleAds:search
{
  "query" : "SELECT custom_interest.id,
                    custom_interest.name,
                    custom_interest.description,
                    custom_interest.type,
                    custom_interest.status,
                    custom_interest.resource_name
                    FROM custom_interest"
}
gives no result.

I need an api to take the same list of the content of those files:


listed in this page:

Google Ads API Forum Advisor Prod

unread,
Jan 21, 2020, 11:16:27 AM1/21/20
to pietro....@gmail.com, adwor...@googlegroups.com

Hello Pietro,

Thank you for clarifying this better. To retrieve the full list of user interest criterion via Google Ads API Beta, you could use the user_interest resource where the field user_interest.taxonomy_type will give you the taxonomy type of the user interest. You could use GoogleAdsService.search to retrieve this resource via API. Let us know if you are still having issues.



Regards,
Nikisha Patel, Google Ads API Team



ref:_00D1U1174p._5001USwkIB:ref

Pietro Galassi

unread,
Jan 21, 2020, 12:24:37 PM1/21/20
to AdWords API and Google Ads API Forum
Yes! Already did it :) Thanks anyway!

Ho to get list of AGE_RANGE or GENDER from tables ?

Regards,
Pietro

Google Ads API Forum Advisor Prod

unread,
Jan 28, 2020, 11:05:11 AM1/28/20
to pietro....@gmail.com, adwor...@googlegroups.com
Hi,

@Harry: The Google Ads API equivalent service to the ConstantDataService of AdWords API is the GoogleAdsService. The getUserInterestCriterion maps to UserInterest.

@Pietro: You can use age_range_view and gender_view to get data on these.

Cheers,
Anthony
Reply all
Reply to author
Forward
0 new messages