SCALIX help

← All tools

gads_add_audience_signal

Google Ads write high risk

Part of the Performance Max Agent.

What it does

Add an audience signal to a PMax asset group by creating an AssetGroupSignal that references an Audience resource (AudienceInfo) via AssetGroupSignalService.MutateAssetGroupSignals. The audience signal is a HINT telling Google AI which customer segments are likely to convert — it does NOT restrict delivery (PMax still serves beyond it). Returns {asset_group_signal_resource_name, audience_resource_name}. Accuracy: the referenced Audience must already exist (built via AudienceService, possibly ASSET_GROUP-scoped); this tool links, it does not build the audience. Combined signal cap (~25) per group applies. Signals are create/remove only. Flow: preview (validate_only=true) -> diff (audience name, group) -> approval -> execute -> confirm + immutable 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 to seed a PMax asset group with a high-value audience (Customer Match/first-party/in-market) so the algorithm converges faster. Confirm the audience was built with consented data and complies with anti-discrimination rules before linking. Build the audience first via AudienceService.

Inputs

NameTypeRequiredDescription
customer_idstringyes10-digit CID; strip dashes.
asset_group_resource_namestringyesTarget PMax asset group.
audience_resource_namestringyesExisting Audience resource to use as the signal (customers/X/audiences/Y).
validate_onlybooleannoOptional. 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_idstringnoOmit 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

Audience signals must respect privacy and Google Customer Match terms: use first-party/Customer Match data only with consent and accepted terms; no protected-attribute targeting; anti-discrimination rules apply to employment/housing/credit/education verticals. The signal is a hint, not exclusionary targeting.

Reminder

Never build a signal from member-derived or non-consented PII; no cross-account data pooling; account-isolated.

Errors

Error classMeansWhat to doRetry
NOT_FOUNDReferenced Audience resource does not exist.Build the audience via AudienceService first; re-supply.no
TOO_MANY_SIGNALSExceeds the per-asset-group combined signal cap (~25).Remove existing signals or reduce.no
DUPLICATE_SIGNALThis audience is already a signal on the group.Idempotent skip.no
CUSTOMER_MATCH_NOT_ALLOWEDCustomer Match audience used without policy eligibility/accepted consent terms.Block; ensure Customer Match terms accepted and data consented.no
TOKEN_REVOKEDToken revoked/expired.Set needs_reauth; prompt reconnect.no
RESOURCE_EXHAUSTEDQuota/QPS exceeded (HTTP 429).Backoff 5/10/20s cap 60s, retry once.yes
PARTIAL_FAILUREOp failed in bulk.Return per-op errors.no
PLATFORM_UNAVAILABLEBackend 5xx/INTERNAL.Retry once after backoff.yes

Edge cases

  • Signal is a hint, not a targeting restriction -> set user expectation that PMax serves beyond the audience.
  • Customer Match list below the minimum size or with a low match rate may not influence delivery -> warn.
  • Audience must exist first; this tool does not create audiences.
  • Signal is immutable -> to change the audience, remove the signal and add a new one.
  • validate_only=true links nothing; preview TTL expiry -> re-preview.