Can somebody respond to this email queries ? Thanks
On Wednesday, June 30, 2021 at 10:54:56 AM UTC-7 Vimal Girish Gopalakrishnan wrote: > 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 > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/eb901e7f-111c-48a4-bc4f-f617fa318fd5n%40googlegroups.com.