Hello Max,
The AdWordsUserListService can be used to manage and create user lists.
However, it is currently not possible to Remove the complete user list
using the AdWordsUserListService.mutate()
<https://developers.google.com/adwords/api/docs/reference/v201806/AdwordsUserListService#mutate>
as
the REMOVE operator is not supported. However, you will be able to use the
mutateMembers
<https://developers.google.com/adwords/api/docs/reference/v201806/AdwordsUserListService#mutatemembers>
operation
to update or remove the user list members. Based on the code snippet
shared, it looks like you're using the REMOVE operator to remove the entire
user list using the mutateMembers operation which is not possible to do so.
Let me know if you have any other questions.
Thanks,
Bharani, AdWords API Team
On Wednesday, August 15, 2018 at 5:19:46 AM UTC-4, Max Drobin wrote:
>
> there any way to delete user list using AdWords API?
>
> I way trying to do it this way:
>
> def clear_userList(self, userListId):
> mutate_members_operation = {
> 'operand': {
> 'userListId': str(userListId),
> 'removeAll': 'true'
> },
> 'operator': 'REMOVE'
> }
>
> return
> self.userListService.mutateMembers([mutate_members_operation])
>
> and this:
>
> def delete_userList(self, userListId):
> mutate_members_operation = {
> 'operand': {
> 'userListId': userListId,
> 'membersList': []
> },
> 'operator': 'REMOVE'
> }
>
> return self.userListService.mutate([mutate_members_operation])
>
>
> but nothing has worked out
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/d47ce517-3434-454e-b687-0ab4fa094242%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.