CRM based UserList update

62 views
Skip to first unread message

Дмитро Булах

unread,
Dec 28, 2017, 2:19:15 PM12/28/17
to AdWords API Forum
Hello

I'm trying to replace all records in my CRM based user list with given list of hashed emails.

Here are the steps I'm following:
1. Get the list based on its ID
2. Call `mutate` with operator `SET` for retrieved list
3. Call `mutateMembers` with operator `ADD` and my list of hashed emails.

Could anyone confirm that this is the right way of replacing members in the list?
I have only short lists for testing purposes and cannot detect any changes in list after running  `mutate` with operator `SET` 

Bharani Cherukuri (AdWords API Team)

unread,
Dec 28, 2017, 4:19:44 PM12/28/17
to AdWords API Forum
Hello,

You can perform the removeAll operation on a CrmBasedUserList to remove all the members from the user list. However, you will have to call the REMOVE operator on the user list and then wait for several hours to confirm if the remove status is successful and then ADD the new members to the existing list. You can also check for the DataUploadResult.removeAllStatus to see the status of the remove-all operation. The AddCrmBasedUserList Java example shows how to add a user list and upload members to populate the list. Example code in other languages is available here. Let me know if you have any other questions.

Thanks,
Bharani, AdWords API Team

Дмитро Булах

unread,
Jan 3, 2018, 4:30:07 AM1/3/18
to AdWords API Forum
Bharani, thanks for an explanation.
Do I understand correctly that there is no way to "replace" the members of the list except running removeAll operation?

Bharani Cherukuri (AdWords API Team)

unread,
Jan 3, 2018, 3:36:43 PM1/3/18
to AdWords API Forum
Hello, 

You could use the AdWordsUserListService.mutateMembers to either add or remove the members from the list. You will need to use ADD or REMOVE operators to add or remove members to the user list. Please note that it might take a few hours for the list to be populated with the members. Let me know if you have any other questions.

Regards, 
Bharani, AdWords API Team

On Thursday, December 28, 2017 at 2:19:15 PM UTC-5, Дмитро Булах wrote:
Reply all
Reply to author
Forward
0 new messages