How can I remove user list with Googe Ads API?

107 views
Skip to first unread message

리유나

unread,
Oct 20, 2020, 9:27:18 PM10/20/20
to AdWords API and Google Ads API Forum

Hello,

I am trying to remove user list with Google Ads API and Python. Unfortunately, it doesn't work.


    user_list_operation = UserListOperation()
    user_list_operation.remove = f"customers/{customer_id}/userLists/{userListId}"
    user_list_response = googleAPI.user_list_service.mutate_user_lists(
        customer_id, [user_list_operation]
    )

In this code, API returns "Requested entity was not found" message and BAD_RESOURCE_ID error although we are using correct customer id and user list id. Actually it always returns that my userListId is invalid. Is there a problem like userLIstId format that I should care about when I put this id in?

Any help would be appreciated. Thanks!

Google Ads API Forum Advisor Prod

unread,
Oct 21, 2020, 10:08:31 AM10/21/20
to runni...@gmail.com, adwor...@googlegroups.com
Hello,

Please reply privately to author your full API request and response, which includes the user list ID and CID.

Thanks,
Anthony
Google Ads API Team

Google Logo
Anthony
Google Ads API Team
 


ref:_00D1U1174p._5004Q26AuM7:ref

Stevan Milic

unread,
Oct 21, 2020, 12:29:45 PM10/21/20
to AdWords API and Google Ads API Forum
Hello,

I'm having the same problem when trying to remove a user list, I'm using the same code as described, but I'm getting an error: USER_LIST_MUTATE_NOT_SUPPORTED, with message: "Creating user list without setting type in oneof user_list field, or creating/updating read-only user list types is not allowed.".

Is it even possible to remove crm based user lists? Because I'm not seeing the list is read-only.

Thanks,
Stevan

리유나

unread,
Oct 22, 2020, 2:35:28 AM10/22/20
to AdWords API and Google Ads API Forum
Hello.
Unfortunately, it seems that I have no permission to reply privately to author. This option is disable for me.
Can you check permission or give e-mail adress to reply privately?
Thanks.

2020년 10월 21일 수요일 오후 11시 8분 31초 UTC+9에 adsapiforumadvisor님이 작성:

Google Ads API Forum Advisor Prod

unread,
Oct 22, 2020, 9:52:57 AM10/22/20
to runni...@gmail.com, adwor...@googlegroups.com
Hello,

@Stevan: Please be sure that your AccessReason is owned. If you continue to face issues, please send us your logs.

If you are unable to reply privately, you can email us directly at googleadsa...@google.com.

Regards,

Anthony
Google Ads API Team

Google Logo
Anthony Madrigal
Google Ads API Team
 


ref:_00D1U1174p._5004Q26AuM7:ref
Reply all
Reply to author
Forward
0 new messages