How to update UserListMembershipStatus to CLOSED on UserList

58 views
Skip to first unread message

Alex Vezeau

unread,
Sep 2, 2022, 9:35:26 AM9/2/22
to Google Ads API and AdWords API Forum
Using JAVA GOOGLE ADS API V10

I see that when we remove a data segment (UserList) from the web interface, the data segment is removed and the membership status is changed to CLOSED.  I would like to do the same thing using the API.  I was able to remove the user list, but the membership status stays at open. 

Could you point me to code or example on how I could update the membership status of a data segment (UserList). 

Classes currently used : 
UserListOperation
UserListOperation.setRemove
UserListServiceClient.mutateUserLists

Thanks

Google Ads API Forum Advisor

unread,
Sep 2, 2022, 10:34:30 AM9/2/22
to adwor...@googlegroups.com
Hi Alex,

Thank you for reaching out to us.

You may refer to this code sample and check this documentation as the membership status field that you need is present here. However, in creating the user list, you can update it in a similar way.

Best regards,
Google Logo
Heidi
Google Ads API Team
 


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