Is there any way to delete a user list?

42 views
Skip to first unread message

Max Drobin

unread,
Aug 15, 2018, 9:19:46 AM8/15/18
to AdWords API and Google Ads API Forum
Is there any way to delete user list via google AdWords API?

I was trying to do it this way:

    def delete_userList(self, userListId):
        mutate_members_operation = {
          'operand': {
              'userListId': userListId,
              'membersList': []
          },
          'operator': 'REMOVE'
        }

        return self.userListService.mutate([mutate_members_operation])

and this:

    def clear_userList(self, userListId):
        mutate_members_operation = {
          'operand': {
              'userListId': str(userListId),
              'removeAll': 'true'
          },
          'operator': 'REMOVE'
        }

        return self.userListService.mutateMembers([mutate_members_operation])

but nothing has worked as expected
Reply all
Reply to author
Forward
0 new messages