SCALIX help

← All tools

gads_list_assets

Google Ads read low risk

Part of the Ad Extensions Agent.

What it does

List assets in the account asset library via GAQL on the `asset` resource, with optional filtering by asset type, name substring, and visibility of policy status. Returns each asset's resource_name, id, name, type (IMAGE/TEXT/YOUTUBE_VIDEO/MEDIA_BUNDLE/SITELINK/CALLOUT/CALL/PRICE/PROMOTION/LEAD_FORM/STRUCTURED_SNIPPET/etc.), the typed payload per asset type (image dimensions/url, text content, youtube id, sitelink link_text+descriptions, callout text, promotion target + percent/money off, call phone number, price type, structured-snippet header+values, lead-form business name+headline), and policy_summary approval status, summed up per row as `approval` (Google's approval status, or UNDER_REVIEW while the asset is in review, when Google reports none). Accuracy: counts reflect distinct library assets; an asset linked to N campaigns/ad groups still counts once here (use gads_list_extensions / gads_list_asset_groups for per-linkage usage). No micros involved. Read-only — never mutates.

When to use it

When the user asks what is in the asset library — images, sitelinks, callouts, videos, promotions — with their text/dimensions, or wants an asset audit.

Inputs

NameTypeRequiredDescription
customer_idstringyes10-digit CID; strip dashes.
asset_typesstringnoComma-separated type filter (one string, not a list), e.g. 'SITELINK,CALLOUT'; upper-cased. Values: IMAGE, TEXT, YOUTUBE_VIDEO, MEDIA_BUNDLE, SITELINK, CALLOUT, CALL, PRICE, PROMOTION, LEAD_FORM, STRUCTURED_SNIPPET. Empty = all types.
name_containsstringnoOptional substring filter on asset.name (GAQL LIKE).
limitintegernoPage size cap; default 200. Tool paginates SearchStream beyond this.

Safeguards

Policy

Read-only enumeration; surfaces policy_summary so disapproved assets are visible. Never recreate or duplicate a disapproved asset to bypass review (Circumventing Systems = egregious).

Reminder

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

Errors

Error classMeansWhat to doRetry
CUSTOMER_NOT_FOUNDCID invalid or not accessible by the authorized user.Verify CID and account linkage; if revoked, set needs_reauth.no
TOKEN_REVOKEDToken revoked/expired.Set needs_reauth; prompt reconnect.no
INVALID_ARGUMENTBad GAQL / unrecognized asset-type enum.Surface the platform message; correct the filter enum.no
RESOURCE_EXHAUSTEDQuota/QPS exceeded (HTTP 429).Backoff 5/10/20s cap 60s, retry once.yes
MANAGER_ACCOUNT_METRICSQuery issued against a manager (MCC) CID where asset enumeration is not meaningful.Re-issue against a serving child CID, not the MCC.no
PLATFORM_UNAVAILABLEBackend 5xx/INTERNAL.Retry once after backoff.yes

Edge cases

  • Empty library -> success with count:0 and empty list (not an error).
  • Large libraries paginate via SearchStream; cap default 200 and tell the user how to narrow (asset_types/name_contains) if truncated.
  • Text/sitelink/callout/etc. assets appear here alongside media assets — filter by asset_types to scope.
  • Same asset shared across many campaigns counts once; per-linkage view requires gads_list_extensions/gads_list_asset_groups.
  • Disapproved assets returned with policy_summary status so the agent can advise fixes (not auto-fix).