gads_remove_user_list
Google Ads write high risk
Part of the Google Ads Audience Agent.
What it does
Permanently remove a user list (remarketing / Customer Match audience) via UserListService.MutateUserLists remove operation (resource_name only; irreversible). The list's accumulated membership is gone and any ad-group/campaign criteria referencing it stop working — removal cannot be undone; a removed list can only be replaced by creating a new one. System-generated and externally-owned (external remarketing) lists cannot be removed. Discover ids first with gads_list_user_lists. PREVIEW->APPROVE->COMMIT: validate_only=true dry run -> plain-English IRREVERSIBLE warning, plus the ad groups and campaigns that still target or exclude the list (used_by; a failed read only warns) -> explicit approval -> commit requires BOTH the preview_id AND confirm_irreversible=true -> confirm + audit log. PREVIEW SEMANTICS: the first call (no preview_id) is sent to the Google Ads API in validation mode — field, enum, policy and permission errors surface AT PREVIEW, nothing is changed, and the response returns a preview_id. To apply, show the preview to the user, get their approval, and re-call with that preview_id and IDENTICAL arguments within 30 minutes; changed arguments or an expired token fail closed to a fresh preview. validate_only=true forces another preview; validate_only=false alone never commits.
When to use it
Use only when the user explicitly wants to permanently delete a remarketing or Customer Match user list (e.g. tearing down ZZ_ test lists or retiring an unused audience). List first with gads_list_user_lists; prefer letting an unused list sit (or close it) if in doubt — removal cannot be undone.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
customer_id | string | yes | 10-digit CID, dashes stripped. |
user_list_id | string | yes | Numeric user list id, or the full customers/{cid}/userLists/{id} resource_name. Discover via gads_list_user_lists. |
confirm_irreversible | boolean | no | Required at APPLY: must be true together with preview_id or the commit is refused. Previews run without it and carry the IRREVERSIBLE warning (a removed user list and its membership can never be restored). |
validate_only | boolean | no | Optional. true forces another preview even with a preview_id; false is DEPRECATED and no longer commits — only a valid preview_id applies the write. |
preview_id | string | no | Omit it to preview: nothing is applied, and the call returns a preview_id bound to this exact request. Pass it only after the user approves that preview in a later message, with the same arguments (leave out validate_only, and add any confirmation flag the preview names). Single-use, expires in 30 minutes; changed arguments need a fresh preview. |
Safeguards
A change in two steps. The first call previews and changes nothing; Claude shows you the preview and applies it only after you approve, within 30 minutes and with the same arguments. Every applied change goes to the audit log. How changes are approved.
Policy
Removal is permanent audience-data deletion — never present it as recoverable, and never remove a list to mask targeting history or dodge enforcement review. Member data itself is governed by Customer Match policy; removing the list does not substitute for honoring user data-deletion requests upstream.
Reminder
Removal is irreversible — confirm explicitly, check the list is not referenced by active targeting first (the preview names the ad groups and campaigns using it), and never delete to hide history.
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
CANNOT_MUTATE_SYSTEM_LIST | This is a system-generated user list and cannot be removed. | System lists (e.g. All visitors auto-lists) are Google-managed; no action possible. | no |
EXTERNAL_REMARKETING_USER_LIST_MUTATE_NOT_SUPPORTED | Externally-owned remarketing lists cannot be mutated from this account. | Remove it from the owning platform (e.g. Analytics) instead. | no |
USER_LIST_MUTATE_NOT_SUPPORTED | This user list type does not support mutation. | Check user_list.read_only via gads_list_user_lists; read-only lists cannot be removed. | no |
OWNERSHIP_REQUIRED_FOR_SET | Only the owning account can remove this list. | Run the removal from the account that owns the list. | no |
NOT_FOUND | User list {user_list_id} not found (already removed or wrong account). | Verify the id with gads_list_user_lists. | no |
INVALID_ARGUMENT | The list may be referenced by active criteria — Google can reject the removal. | Detach the audience from ad groups/campaigns first, then retry. | no |
CUSTOMER_NOT_FOUND | Account {customer_id} not found or not linked. | Verify the CID and authorization. | no |
needs_reauth | Authorization expired or revoked. | Reconnect Google Ads in the Scalix dashboard. | no |
RESOURCE_EXHAUSTED | Rate limited. | Exponential backoff and retry. | yes |
unavailable | Google Ads API 5xx. | Re-check state, then retry to avoid double-apply. | yes |
Edge cases
- Lists still targeted or excluded by ad groups/campaigns: the preview names them; Google may reject the remove — detach criteria first.
- user_list.read_only=true (external/system lists) cannot be removed — surface the reason, do not retry.
- Removing a list does NOT remove uploaded member data obligations — data-deletion requests are handled upstream.
- Preview-state TTL expiry -> re-run validate_only before commit.
- Expired token -> refresh once, retry.