Adwords API Update Existing UserList

146 views
Skip to first unread message

Niel

unread,
Mar 22, 2016, 9:57:12 AM3/22/16
to AdWords API Forum
After creating a new CrmBasedUserList via a Java application, I want to allow the users of the application to be able to add more email addresses to this CrmBasedUserList.

If I try to call the CrmBasedUserList with an existing name, I receive UserListError.NAME_ALREADY_USED.

I create a session via AdwordsUserListServiceInterface and mutate that with a CrmBasedUserList contained within a UserListOperation.
My UserListOperation is set to Operator.ADD

I then use the UserListReturnValue to get the userListId which is then used for adding email addresses.

How do I get an existing userListId (if the list already exists), and is there an appopriate API call to make to get a list of existing user lists and their associated Ids?

Thank you for any assistance.

Umesh Dengale

unread,
Mar 22, 2016, 12:04:56 PM3/22/16
to AdWords API Forum
Hello,

You could use the AdwordsUserListService.get operation to get the existing userListIds. You could use the AdwordsUserListField.Name, AdwordsUserListField.ListType fields as predicates to get the userListIds. Once you get the userListIds, you could use the mutate operation to add more records to the list. Please check out AdwordsUserListService and re-marketing guide for more details.

Thanks,
Umesh, AdWords API Team. 
Reply all
Reply to author
Forward
0 new messages