user list service - status of upload

23 views
Skip to first unread message

Nicholas Edwards

unread,
Oct 8, 2020, 7:40:34 AM10/8/20
to AdWords API and Google Ads API Forum
Hi,

Firstly can I say it's great to see a forum where the developers actually reply! 

I have a python script that uploads or removes hashed emails to a user list 

Adwords_client.GetService('AdwordsUserListService', 'v201809')
mutate_members_operation = {
'operand': {
': google,
'membersList': hashed_email},
'operator': 'REMOVE'}
response = user_list_service.mutateMembers([mutate_members_operation])  


Is there a way of getting a response back to say whether the add/delete of users was successful ? And if possible how many records were successfully removed/added? 

How would I do this?

Thanks in advance
Nick


Google Ads API Forum Advisor Prod

unread,
Oct 8, 2020, 3:08:39 PM10/8/20
to n.ed...@loophorizon.com, adwor...@googlegroups.com

Hi Nick,

Thank you for reaching out. You could try to use AdwordsUserListService.get() to check the size of the user list to determine if add/delete of users was successful.

Thanks and regards,
Xiaoming, Google Ads API Team

 

Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q267inW:ref

Nicholas Edwards

unread,
Oct 10, 2020, 9:13:43 AM10/10/20
to Google Ads API Forum Advisor Prod, adwor...@googlegroups.com
Great - thanks. I will try that out
Reply all
Reply to author
Forward
0 new messages