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
| Name | Type | Required | Description |
|---|---|---|---|
customer_id | string | yes | 10-digit CID; strip dashes. |
campaign_id | string | no | Restrict to one PMax campaign; omit for all. |
date_range | string | no | Optional macro (LAST_7_DAYS/LAST_30_DAYS) or YYYY-MM-DD..YYYY-MM-DD; if set, basic metrics are joined. |
status_filter | string | no | AssetGroupStatus filter ENABLED|PAUSED|REMOVED (enum-normalized). Omit or pass ALL for all statuses. |
limit | integer | no | Page 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 class | Means | What to do | Retry |
|---|---|---|---|
CUSTOMER_NOT_FOUND | CID invalid/inaccessible. | Verify CID; if revoked set needs_reauth. | no |
TOKEN_REVOKED | Token revoked/expired. | Set needs_reauth; prompt reconnect. | no |
INVALID_ARGUMENT | Bad GAQL/date range. | Surface the message; correct range/filter. | no |
MANAGER_ACCOUNT_METRICS | Metrics requested on an MCC CID. | Re-issue against a serving child CID. | no |
RESOURCE_EXHAUSTED | Quota/QPS exceeded (HTTP 429). | Backoff 5/10/20s cap 60s, retry once. | yes |
PLATFORM_UNAVAILABLE | Backend 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.