UserList and Similar UserList linking to Campaign

32 views
Skip to first unread message

Vimal Girish Gopalakrishnan

unread,
Jun 30, 2021, 1:54:56 PM6/30/21
to AdWords API and Google Ads API Forum
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

Vimal Girish Gopalakrishnan

unread,
Jul 2, 2021, 8:29:00 PM7/2/21
to AdWords API and Google Ads API Forum
Can somebody respond to this email queries ?

Thanks

Google Ads API Forum Advisor

unread,
Jul 7, 2021, 10:54:20 PM7/7/21
to vgop...@gmail.com, adwor...@googlegroups.com
Hi Vimal,

You can check out this guide for more information on how you can combine existing userlists. Once the combination is created, you can then associate it to a campaign using the CampaignCriterionService.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2JXcsc:ref
Reply all
Reply to author
Forward
0 new messages