gads_create_customer_match_list
Google Ads write high risk
Part of the Google Ads Audience Agent.
What it does
Create a CRM-based Customer Match user list (UserListService, crm_based_user_list) for first-party-data targeting. upload_key_type is CONTACT_INFO (email/phone/address), CRM_ID, or MOBILE_ADVERTISING_ID; membership_status=OPEN; membership_life_span_days 1-540 (default 540; unlimited removed April 2025). WRITE with preview->approve->commit: preview = mutate validate_only=true (validates list shape, creates nothing) + diff (name, upload_key_type, life span) + preview_id; commit = the same call plus that preview_id after the user approves in a later message (the server then runs the real mutate) + audit. Returns {user_list_id, resource_name}. IMPORTANT: list creation works via the Google Ads API, but uploading MEMBERS to it depends on the developer token's Customer Match upload history — Google is migrating member ingestion to the Data Manager API and, since April 1, 2026, developer tokens with no Customer Match upload via OfflineUserDataJobService/UserDataService in the prior 180 days are cut off and must use the Data Manager API (see gads_add_customer_match_members). This tool only creates the empty list shell. 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.
When to use it
Use to create the Customer Match list container before uploading consented first-party members. Preview validate_only first, confirm the list name, key type, and that the data is consented first-party, then commit. Tell the user that member upload may need to go through the Data Manager API (Ads API ingestion is being sunset; inactive developer tokens cut off since 2026-04-01).
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
customer_id | string | yes | 10-digit CID; strip dashes. |
name | string | yes | Customer Match list name; unique in account. |
upload_key_type | string | no | Enum-normalize: CONTACT_INFO (default; email/phone/address), CRM_ID, MOBILE_ADVERTISING_ID. Determines what member identifiers the list accepts and is immutable after creation. |
membership_life_span_days | integer | no | 1-540 (default 540). Values >540 rejected; clamp/validate. Unlimited duration no longer supported. |
description | string | no | Optional description. |
manager_id | string | no | Optional MCC login-customer-id. |
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
Customer Match requires the advertiser to have collected the data lawfully with the user's consent and to comply with Google's Customer Match policy and customer-data terms. Lists must be the advertiser's own first-party data — no purchased/scraped data, no protected-class targeting (employment/housing/education/credit). EEA/UK use requires ad_user_data and ad_personalization consent (set at upload).
Reminder
First-party, consented data only under Google's Customer Match terms; the list shell holds no data and members must never be pooled across accounts.
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
INVALID_ARGUMENT | Invalid upload_key_type or membership_life_span (>540). | Surface the platform message; clamp life span to 1-540 and use a valid key type, then re-preview. | no |
CUSTOMER_NOT_ACCEPTED_CUSTOMER_DATA_TERMS | The account has not accepted the Customer Match / customer-data terms. | Direct the user to accept Customer Match terms in the Google Ads UI before creating/using the list. | no |
TOKEN_REVOKED | OAuth token expired/revoked. | Refresh and retry once; else prompt reconnect (needs_reauth). | yes |
CUSTOMER_NOT_FOUND | Customer ID not found/accessible. | Verify the CID is authorized. | no |
PERMISSION_DENIED | No access or out-of-bearer-scope write. | Confirm access and write scope; else refuse. | no |
RESOURCE_EXHAUSTED | Rate/quota exceeded (HTTP 429). | Backoff 5/10/20s cap 60s, then retry. | yes |
INTERNAL_ERROR | Transient Google server error (5xx). | Retry after backoff. | yes |
Edge cases
- List creates empty; targeting won't serve until >=1000 matched members exist.
- Account must have accepted Customer Match terms or creation/use fails — surface CUSTOMER_NOT_ACCEPTED_CUSTOMER_DATA_TERMS clearly.
- upload_key_type is immutable post-creation — confirm it before commit.
- membership_life_span >540 -> clamp and re-preview.
- Creating the list succeeds via Ads API, but follow-up member upload may require the Data Manager API (inactive developer tokens cut off since 2026-04-01) — set this expectation at creation.
- Preview creates nothing.
- preview_id TTL expiry -> re-preview.