How would I go about adding all possible user_interests and detailed_demographics to a campaign audience?

40 views
Skip to first unread message

Andrew C

unread,
Aug 29, 2024, 10:23:35 PM8/29/24
to Google Ads API and AdWords API Forum
In the UI I can click on a campaign, goto audiences, click add audience segments and add each of them one by one.

I would like to replicate this process programatically.
Right now i'm finding that there are around 1000 user_interest IDs and applying them via
var operation = {
create: {
resourceName: resourceName,
userInterest: {
userInterestCategory: `customers/${accId}/userInterests/${userInterestId}`,
},
},
};

is very expensive on my API quota- for 10 campaigns I quickly do 1000 operations.

Is it possible to add all available user_interests in a cheaper way? like

var operation = {
create: {
resourceName: resourceName,
userInterest: {
userInterestCategory: `customers/${accId}/userInterests/1`,
userInterestCategory: `customers/${accId}/userInterests/2`,
userInterestCategory: `customers/${accId}/userInterests/3`,
userInterestCategory: `customers/${accId}/userInterests/4`,
},
},
};
:

And what about for detailed_demographics?

Google Ads API Forum Advisor

unread,
Aug 30, 2024, 6:21:00 AM8/30/24
to and...@c-andrew.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

Audience segments, also known as user lists, are groups of people with specific interests, intents, or demographic information, as estimated by Google. Create and configure the audience segment by creating a UserList with the UserListService. In order to create and target audience segments, you first need to follow the Implement the prerequisite guide.

I suggest you to follow the Create and manage audiences to know about the detailed demographic segments and Get Started with Audience Segments documentation for more information.

Regarding the API quota, I suggest you to refer to this API Limits and Quotas documentation. I hope this helps.

 

This message is in relation to case "ref:!00D1U01174p.!5004Q02vFXif:ref" (ADR-00265645)

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages