Delete all users from Custom audience before uploading new user set

358 views
Skip to first unread message

asharm...@agl.com.au

unread,
Aug 17, 2021, 8:17:53 PM8/17/21
to AdWords API and Google Ads API Forum
Hi Team,

I am trying to delete all existing users from an existing custom audience (user list) before adding new set of users.

I am using below code:

using (var userListService =
                (AdwordsUserListService)_adWordsUser.GetService(AdWordsService.v201809.AdwordsUserListService))
            {
                //set the partial Failure as true
                userListService.RequestHeader.partialFailure = true;

                var mutateMembersOperation = new MutateMembersOperation
                {
                    operand = new MutateMembersOperand
                    {
                        userListId = long.Parse(customAudienceId),
                        membersList = null,
                        removeAll = true
                    },
                    @operator = Operator.REMOVE
                };
                
                var mutateMembersResult = await userListService.mutateMembersAsync(
                    new MutateMembersOperation[]
                    {
                        mutateMembersOperation
                    });
            }

My question is: 
Do I need to wait for all existing users to be deleted from the existing custom audience (user list) before adding new set of users ?

Thanks,
Abhinav

Google Ads API Forum Advisor

unread,
Aug 19, 2021, 6:27:56 AM8/19/21
to adwor...@googlegroups.com

Hello Abhinav,

Thank you for reaching out to us.

As for your question (Do I need to wait for all existing users to be deleted from the existing custom audience (user list) before adding new set of users ?), as per best practices, you would need to complete first that delete request before adding new users. There are instances wherein multiple processes are trying to update the same entity at the same time. With that, you might encounter the CONCURRENT_MODIFICATION error.

Regards,

Google Logo
Mark Kevin Albios
Google Ads API Team
 

 

ref:_00D1U1174p._5004Q2Lo8TZ:ref

asharm...@agl.com.au

unread,
Aug 20, 2021, 4:30:08 AM8/20/21
to AdWords API and Google Ads API Forum
Is there any suggestions here?

asharm...@agl.com.au

unread,
Aug 20, 2021, 4:34:35 AM8/20/21
to AdWords API and Google Ads API Forum
Thanks Mark for your response.
We are trying to refresh our existing user list in production, however, I am bit concern over the time it takes to delete all users from the list.

I did one POC on my non prod user list which had 30K users with 17K match rate number. It took around 48 hrs to reflect the updated result.

Shall I be expecting the same 48hrs delay or even more than that with my PROD user list which has 2 to 3 millions users?

Thanks,
Abhinav Sharma

Google Ads API Forum Advisor

unread,
Aug 24, 2021, 10:34:15 AM8/24/21
to adwor...@googlegroups.com
Hello,

There is not a documented benchmark for removal time, although it can take up to 12 hours for a new user list to be uploaded. You might try to use the new Google Ads API to remove/upload Customer Match lists and see if there is a reduced processing time. Please also note that the AdWords API sunsets in April 2022.

Regards,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


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