SCALIX help

← All tools

gads_list_asset_groups

Google Ads read low risk

Part of the Performance Max Agent.

What it does

List Performance Max asset groups in the account (optionally filtered to one PMax campaign) via GAQL on asset_group: id, name, status, parent campaign, ad_strength, and primary_status. Optionally joins basic performance (impressions, clicks, cost_micros, conversions, conversions_value) when a date range is supplied. Returns rows with {asset_group_id, name, campaign_id, status, ad_strength, primary_status, metrics?}. Accuracy: when metrics are requested, cost is in micros (÷1e6) and any segmentation multiplies rows — the tool labels currency and notes if segments inflate counts. Without a date range it returns config only. Read-only.

When to use it

When the user asks what asset groups a Performance Max campaign has and their status.

Inputs

NameTypeRequiredDescription
customer_idstringyes10-digit CID; strip dashes.
campaign_idstringnoRestrict to one PMax campaign; omit for all.
date_rangestringnoOptional macro (LAST_7_DAYS/LAST_30_DAYS) or YYYY-MM-DD..YYYY-MM-DD; if set, basic metrics are joined.
status_filterstringnoAssetGroupStatus filter ENABLED|PAUSED|REMOVED (enum-normalized). Omit or pass ALL for all statuses.
limitintegernoPage size; default 200.

Safeguards

Policy

Read-only enumeration of PMax asset groups; surfaces status/ad strength. No content recreation to bypass review (Circumventing Systems).

Reminder

Reconcile any metric to the Google Ads UI (±1%); convert micros; account-isolated.

Errors

Error classMeansWhat to doRetry
CUSTOMER_NOT_FOUNDCID invalid/inaccessible.Verify CID; if revoked set needs_reauth.no
TOKEN_REVOKEDToken revoked/expired.Set needs_reauth; prompt reconnect.no
INVALID_ARGUMENTBad GAQL/date range.Surface the message; correct range/filter.no
MANAGER_ACCOUNT_METRICSMetrics requested on an MCC CID.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 asset groups / no PMax campaigns -> success count:0.
  • Date range with segments -> row multiplication; label and aggregate as needed.
  • Metrics on MCC -> blocked; use child CID.
  • REMOVED groups excluded unless status_filter=REMOVED.
  • Large accounts paginate; advise narrowing by campaign_id.