Trouble in Delete user_list

53 views
Skip to first unread message

Vikram Singh

unread,
Dec 12, 2020, 1:59:58 AM12/12/20
to AdWords API and Google Ads API Forum
I'm not able to delete a selected userlist, code is as below 

                var userClient = client.GetService(Services.V3.UserListService);
                UserListOperation operation = new UserListOperation()
                {
                    Remove = resource_name,
                };
                var audience = userClient.MutateUserLists(customer_Id, new[] { operation });

I'm getting this error :

{{"errorCode":{"userListError":"USER_LIST_MUTATE_NOT_SUPPORTED"},"message":"Creating user list without setting type in oneof user_list field, or creating/updating read-only user list types is not allowed.","trigger":{"stringValue":""},"location":{"fieldPathElements":[{"fieldName":"operations","index":"0"}]}}}

Google Ads API Forum Advisor Prod

unread,
Dec 14, 2020, 10:51:36 PM12/14/20
to ansitv...@gmail.com, adwor...@googlegroups.com
Hi Vikram,

Thank you for reaching out.

I noticed that you're still using the v3 version of the Google Ads API. I would recommend that you also consider migrating to the latest version.

Moving forward, based on the logs, it appears that you may be trying to mutate a read-only type of userlist. Unfortunately, userlists marked as read_only cannot be editable.

That said, in order to verify this, you may send your customer ID, and the complete request and response logs so I can further investigate. You may send the requested details using the Reply privately to author option.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q29RKiC:ref

Vikram Singh

unread,
Dec 15, 2020, 12:02:11 AM12/15/20
to Google Ads API Forum Advisor Prod, adwor...@googlegroups.com
Thank you for your response. 

Vikram Singh

unread,
Dec 17, 2020, 3:11:52 AM12/17/20
to Google Ads API Forum Advisor Prod, adwor...@googlegroups.com
Hi, I have tried your suggestion and updated to the latest version, but I'm getting the same error message, but the same code is running fine in case of  Rule-based Audience can you please suggest why this is not working in the case of CrmBasedUserList?
Reply all
Reply to author
Forward
0 new messages