How to get already created Userlist and edit those data

101 views
Skip to first unread message

cv

unread,
Apr 15, 2020, 10:49:19 AM4/15/20
to AdWords API and Google Ads API Forum
Hi,

How I can create the Userlist and Edit the emails or remove the emails or add the emails to that list using API?

Please guide how I can achieve same?

Thanks

Google Ads API Forum Advisor Prod

unread,
Apr 15, 2020, 4:10:29 PM4/15/20
to chirag....@gmail.com, adwor...@googlegroups.com

Hi,

Thank you for reaching out. You could refer to this code example on how to create and add emails to a user list. But keep in mind that you could only mutate the whole user list instead of adding or removing members in the user list. Let us know if you have any further concerns.

Thanks and regards,
Xiaoming, Google Ads API Team


 

ref:_00D1U1174p._5001UZYEtj:ref

cv

unread,
Apr 16, 2020, 12:39:27 AM4/16/20
to AdWords API and Google Ads API Forum
Yes, I am able to create UserList, but everytime it is creating new list. 

But keep in mind that you could only mutate the whole user list instead of adding or removing members in the user list. Let us know if you have any further concerns.
->But in this case the New list will be created every time? I need to use same created userlist based on userlistid.  Can you please guide how I can mutate/replace entire members?

Thanks,

Google Ads API Forum Advisor Prod

unread,
Apr 16, 2020, 3:45:08 PM4/16/20
to chirag....@gmail.com, adwor...@googlegroups.com

Hi,

Since the mutateMembers does not support SET operator, in order to mutate, You would need to remove the old user list and add in a new one. This is the only possible way for using mutateMembers method. 



Thanks and regards,
Xiaoming, Google Ads API Team


 

ref:_00D1U1174p._5001UZYEtj:ref

cv

unread,
Apr 17, 2020, 12:33:04 AM4/17/20
to AdWords API and Google Ads API Forum
Hi,

Here it is showing It is supported ADD, REMOVE, SET.

Also, the UI suggests 

Add: 

Add more customers to your audience list by uploading a CSV file with new customer data using a combination of the column headers below


Remove:

Remove specific customers from your audience list by uploading a CSV file that includes data for the customers you’d like to remove


Replace:

Replace your existing audience list by uploading a CSV file with a new set of customer data. You can use a template, or create your own CSV file with customer data using a combination of the required column headers below.



So, If this is not supported using API? How I can remove the old user list (All members right?) and New one in same USerListID?


Also How I would know how many members are there in UserList? 

Any guide would be helpful.


Thanks,

cv

unread,
Apr 17, 2020, 3:38:13 AM4/17/20
to AdWords API and Google Ads API Forum
Hello Xiaoming,

In addition to my message 

I would try to do replace the entire list with the new list.

If I add same email again would It be replace olde one with new one or try to add new one only?

I would also need guidance how I can remove entire list all members.

Google Ads API Forum Advisor Prod

unread,
Apr 17, 2020, 12:00:47 PM4/17/20
to chirag....@gmail.com, adwor...@googlegroups.com

Hi,

Thank you for reaching out. The link you sent me clearly shows that the SET operator is not supported in this method. The MutateMembersOperation represents a request to add or remove members from a user list. As for the REMOVE operation, you could change the operator to REMOVE here and change other codes accordingly. Once the user list is removed, you would need to create a new user list with a new userListId. Please bear in mind that the API does not necessarily always have the same functionality as the Google Ads UI. The Member object does not contain the size field. However, you could get this data when you create a new user list by checking the member size. In order to add new email, you would need to create a new user list with the new email rather than just add the email to the existing user list. 

I hope this helps.



Thanks and regards,
Xiaoming, Google Ads API Team



 

ref:_00D1U1174p._5001UZYEtj:ref

cv

unread,
Apr 18, 2020, 1:15:33 AM4/18/20
to AdWords API and Google Ads API Forum
Hi Xiaoming,


Once the user list is removed, you would need to create a new user list with a new userListId.
-> In this way I would create a new userlist for every new change, so how would it be helpful? This way If I need to do this process automated how would this can be done?
This is not a better approach. 

In such a scenario how would I remove entire members from the same userlist and will add members again in same list?

In order to add new email, you would need to create a new user list with the new email rather than just add the email to the existing user list. 
-> Can you please explain clearly this? If I wanted to do replace entire lsit I always be have new userList ID everytime?  There is no way I can just replace list?
If I add same list again Does that replace the old members from list or It will append the list?
If I do not want to few members in the list then also new listID with name need to be created.

Thanks

Google Ads API Forum Advisor Prod

unread,
Apr 20, 2020, 2:55:52 PM4/20/20
to chirag....@gmail.com, adwor...@googlegroups.com

Hi,

Thank you for reaching out. Please find my response to your questions below:

  1. Please give it a try to REMOVE the whole user list members by using mutateMembers() and set the operator as REMOVE. Then you could ADD the user list members by using mutateMembers() again with the existing userListId and ADD operator.

  2. With the existing userListId, the new members would be appended to the existing user list.

Reply all
Reply to author
Forward
0 new messages