I need to create audience segments of type Life Events and Detailed Demographics for AdGroups
.
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