Hello,
I'm looking for APIs to link the UserList and Similar UserList(auto generated by Google after 4 days or so) to a Campaign. Ads UI has the option to add. Here is the code I came up with for linking UserList to Campaign.
CampaignCriterionServiceClient campaignCriterionServiceClient = client.latestVersion.createCampaignCriterionServiceClient()
UserListInfo userListInfo = UserListInfo.newBuilder().setUserList("{user-list-name}").build()
CampaignCriterion campaignCriterion = CampaignCriterion.newBuilder().setCampaign("{campaign-name}").mergeUserList(userListInfo).build()
CampaignCriterionOperation criterionOperation = CampaignCriterionOperation.newBuilder().setCreate(campaignCriterion).build()
campaignCriterionServiceClient.mutateCampaignCriteria("{customer-id}", criterionOperation)
Now I'm looking to do the same above operation for Similar User List. Let's say I found the Similar User List Id/name. Can the Id/name be used in the above code where UserListInfo object is created to link to Similar User List to the Campaign(since similar user list is just another type of user list) ? Or Is there a separate class or method to add the Similar User List to the Campaign ?
If somebody could confirm, that would be great since we are in the middle of the development to use these features.
Thank you very much,
Vimal