SCALIX help

← All tools

gads_get_asset_group

Google Ads read low risk

Part of the Performance Max Agent.

What it does

Fetch a single Performance Max asset group's full configuration and asset coverage via GAQL on asset_group + asset_group_asset: name, status, final URLs, paths, ad_strength, primary_status + primary_status_reasons, and the list of linked assets grouped by field_type (headlines, descriptions, images, logos, videos, business name). Returns {asset_group, assets_by_field_type, ad_strength, primary_status, missing_required_fields}. Accuracy: ad_strength and primary_status come straight from the API and mirror the UI; missing_required_fields is computed from PMax minimums so the agent can see exactly why a group is limited/not-serving. No micros. Read-only. The linked-assets lookup is best-effort: on failure the asset_group row still returns with a degradation warning and empty assets_by_field_type.

When to use it

When the user asks to inspect one Performance Max asset group — its assets grouped by type, ad strength, or why it is limited/not eligible.

Inputs

NameTypeRequiredDescription
customer_idstringyes10-digit CID; strip dashes.
asset_group_idstringyesAsset group ID. Provide this

Safeguards

Policy

Read-only; surfaces primary_status/policy reasons. Do not suggest recreating disapproved assets to bypass review (Circumventing Systems = egregious).

Reminder

Match the Google Ads UI exactly (ad strength, status); account-isolated; nothing retained beyond this request.

Errors

Error classMeansWhat to doRetry
NOT_FOUNDAsset group ID/resource not found in the account.Verify the ID via gads_list_asset_groups.no
CUSTOMER_NOT_FOUNDCID invalid/inaccessible.Verify CID; if revoked set needs_reauth.no
TOKEN_REVOKEDToken revoked/expired.Set needs_reauth; prompt reconnect.no
INVALID_ARGUMENTNeither id nor resource_name supplied.Require one identifier.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

  • Group with no assets -> returns empty assets_by_field_type and full missing_required_fields list.
  • ad_strength values: POOR/AVERAGE/GOOD/EXCELLENT/PENDING/UNSPECIFIED — surface PENDING distinctly.
  • primary_status REMOVED/NOT_ELIGIBLE with reasons -> relay reasons verbatim.
  • brand_guidelines_enabled -> business name/logo appear as CampaignAsset, not in this group; note where they live.
  • Resource exists but campaign not PMax -> shouldn't occur, but report cleanly if so.