SCALIX help

← All tools

gads_list_extensions

Google Ads read low risk

Part of the Ad Extensions Agent.

What it does

List asset-based extensions (linkages) attached at customer, campaign, or ad-group level via GAQL on customer_asset / campaign_asset / ad_group_asset, filterable by field_type (SITELINK/CALLOUT/CALL/PRICE/PROMOTION/LEAD_FORM/MARKETING_IMAGE/STRUCTURED_SNIPPET). Returns each linkage's resource_name, the underlying asset (id, name, typed payload), the field_type, the link status, and primary_status (with its reasons)/policy approval, summed up per row as `approval` (UNDER_REVIEW while the asset is in review). Accuracy: this is the per-linkage view (an asset linked to 5 campaigns yields 5 rows), complementing gads_list_assets (library) — counts reflect linkages, not unique assets. No micros. Read-only.

When to use it

When the user asks which extensions are linked — sitelinks, callouts, calls, prices, promotions — at account, campaign, or ad-group level.

Inputs

NameTypeRequiredDescription
customer_idstringyes10-digit CID; strip dashes.
scopestringnoEnum CUSTOMER/CAMPAIGN/AD_GROUP. Omit (default) to query ALL THREE scopes and merge — every row carries a `scope` key. scope_id requires scope.
scope_idstringnoRestrict to a specific campaign/ad-group ID. Requires scope.
field_typesstringnoComma-separated extension field types (one string, not a list), e.g. 'SITELINK,CALLOUT'; upper-cased. Empty = all extension field types.

Safeguards

Policy

Read-only; surfaces extension approval status. Do not recreate a disapproved extension under a new asset to dodge review (Circumventing Systems = egregious).

Reminder

Match the Google Ads UI exactly; account-isolated; do not retain beyond this request.

Errors

Error classMeansWhat to doRetry
CUSTOMER_NOT_FOUNDCID invalid/inaccessible.Verify CID/linkage; if revoked set needs_reauth.no
TOKEN_REVOKEDToken revoked/expired.Set needs_reauth; prompt reconnect.no
INVALID_ARGUMENTBad GAQL / unknown field_type enum.Surface the message; correct the filter.no
MANAGER_ACCOUNT_METRICSIssued against an MCC CID where linkage enumeration is not meaningful.Re-issue against a serving child CID.no
RESOURCE_EXHAUSTEDQuota/QPS exceeded (HTTP 429).Backoff 5/10/20s cap 60s, retry once.yes
PLATFORM_UNAVAILABLEBackend 5xx/INTERNAL.Retry once after backoff.yes

Edge cases

  • No extensions -> success count:0.
  • Same asset linked at multiple levels -> multiple rows; dedupe by asset only if the caller asks.
  • Customer-level + campaign-level link of same field type -> campaign overrides; surface both with the override note.
  • Disapproved/limited extensions returned with primary_status so the agent can advise.
  • Large result sets paginate; advise narrowing by scope_id/field_types if truncated.