Create audience segments of type "Life Events" and "Detailed Demographics" for AdGroups via API

156 views
Skip to first unread message

Diana Vladeva

unread,
Nov 10, 2023, 6:27:05 AM11/10/23
to Google Ads API and AdWords API Forum
Hello,

I need to create audience segments of type Life Events and Detailed Demographics for AdGroups via API.
How can I do that?

AdGroup Audience Segments.png

In Google Ads, I go to AdGroup -> Settings -> Edit ad group targeting -> Audience Segments -> Edit audience segments and select some options of type/group "Life Events" or "Detailed Demographics". 

When I try to read the AdGroup data via API, I get some data in the AdGroupCriterion section. It is however of type CriterionTypeEnum.CriterionType.UNKNOWN and only has value in the displayName property, which is the id of the selected option, for example: "95004" which is the id of Life Event "Graduating Soon", or "30010" which is the id of Detailed Demographics "Parents of Infants (0-1 years)", as described in this link Codes and formats. There is no data in the criterion property.

So it is possible to somehow read the data via API, but how can I create/modify data and upload it back again via API??

For example, if I need to work on data related to audience segments from the group "In-market", when I query the data via API, the data is returned in the AdGroupCriterion section with the type CriterionTypeEnum.CriterionType.USER_INTEREST and there is a UserInterestInfo object holding the info.
When I want to create/update the data via API, I am able to do that by making my changes to the UserInterestInfo object and sending the request to Google.

How can I do that for audience segments of type Life Events and Detailed Demographics?

I'm using Google Ads API v15.

Thank you in advance!
Diana


Google Ads API Forum Advisor

unread,
Nov 13, 2023, 10:49:00 PM11/13/23
to diana.vlad...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for contacting the Google Ads API support team.

By reviewing your concern, I understand that you are trying to create audience segments of type Life Events and Detailed Demographics for AdGroups via API and trying to read the AdGroup data, but it resulted as CriterionTypeEnum.CriterionType.UNKNOWN. In order to investigate your issue further, kindly provide us with the complete API logs (request and response with request-id and request header) generated at your end and uncropped UI screenshot(with visible customer Id) of where you are facing the issue.

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.  

You can send the details via Reply privately to the author option, or direct private reply to this email.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02qBdQx:ref"

Thanks,
 
Google Logo Google Ads API Team


Kamil Sak

unread,
Nov 28, 2023, 4:59:09 AM11/28/23
to Google Ads API and AdWords API Forum
Hello,

I have similar requirements as the author of the thread. Any news regarding this issue?

Best,
Kamil

Google Ads API Forum Advisor

unread,
Nov 28, 2023, 9:47:20 AM11/28/23
to eka...@gmail.com, adwor...@googlegroups.com
Hi Kamil,

Thank you for getting back to us.

You may follow the document on Audience management where you can create and target audiences and audience segments to reach users based on who they are, their interests and habits, what they are actively researching, or how they've interacted with your business.You may refer to the Audience segment types in a UserList guide to know more about the different audience types.

If you encounter any issue, kindly provide us with the complete API logs (request and response with request-id and request header) generated at your end and uncropped UI screenshot(with visible customer Id) of where you are facing the issue.
Reply all
Reply to author
Forward
0 new messages