gads_get_rsa_asset_performance
Google Ads read low risk
Part of the RSA Copy Agent.
What it does
Report Google's per-ASSET performance label for each headline and description in Responsive Search Ads (ad_group_ad_asset_view), for an ad group or a single ad, over a date range. Returns each asset's text (asset.text_asset.text), field_type (HEADLINE/DESCRIPTION), performance_label (PENDING/LEARNING/LOW/GOOD/BEST/NOT_APPLICABLE/UNKNOWN — Google's advisory rating; NOT_APPLICABLE = a label cannot be assigned, most often because the asset link is disabled/superseded — see the returned `enabled` flag — or below serving volume), pinned_field, and metrics. LOW-labeled assets are candidates to replace to lift Ad Strength. Money micros->currency (/1e6); reconciles to the UI within +/-1%. Returns {success, data:[{field_type, text, performance_label, pinned_field, enabled, metrics}], count, warnings}. NOTE: this view-level performance_label and the creative-level asset_performance_label carried on RSA headline/description objects (visible in gads_get_ad / gads_get_ad_strength output) are DIFFERENT Google fields sharing one enum — evaluated at different levels and times, they can legitimately differ (e.g. NOT_APPLICABLE here vs PENDING there); neither is wrong.
When to use it
RSA asset performance review. Use to find weak (LOW) headlines/descriptions to swap out and strengthen Ad Strength.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
customer_id | string | yes | 10-digit Google Ads customer ID (CID), dashes stripped. Server-derived tenant context + RLS. |
ad_group_id | string | no | Restrict to one ad group. |
ad_id | string | no | Restrict to one ad (ad_group_ad.ad.id). |
date_range | string | yes | GAQL macro (LAST_7_DAYS/LAST_30_DAYS/THIS_MONTH/LAST_MONTH) or explicit YYYY-MM-DD,YYYY-MM-DD. DEFAULT: date_range defaults to LAST_30_DAYS when omitted (a warning says so); pass date_range=ALL_TIME to query without a date filter. |
limit | integer | no | Max rows (GAQL LIMIT); default a safe cap. Large accounts use SearchStream. |
Safeguards
Policy
performance_label is Google's own advisory rating (not a guarantee) — never fabricate it. Never fabricate or approximate a metric; if a figure can't be reconciled to the Google Ads UI within +/-1%, say so. Money is micros/1e6 (label the account currency); rates are ratios.
Reminder
Treat this report as sensitive account data; do not retain beyond this request. PRESENTATION: never list raw rows — group by ad, then field_type (headlines vs descriptions), and summarise the performance_label distribution (BEST/GOOD/LOW/PENDING/NOT_APPLICABLE) with the specific LOW assets called out. Flag pinned assets (they cannot rotate or earn a label).
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
CUSTOMER_NOT_FOUND | Account {customer_id} not found or not linked. | Verify the CID and authorization. | no |
needs_reauth | Authorization expired or revoked. | Reconnect Google Ads in the Scalix dashboard. | no |
INVALID_ARGUMENT | Malformed date_range or filter. | Fix the argument and retry. | no |
MANAGER_ACCOUNT_METRICS_UNSUPPORTED | Manager (MCC) accounts return no metrics. | Query a child account. | no |
PERMISSION_DENIED | The authenticated user lacks access to this account. | Check account access. | no |
RESOURCE_EXHAUSTED | Rate/quota limit hit. | Back off and retry. | yes |
Edge cases
- Newly-added assets show PENDING/LEARNING until Google has data.
- No RSA assets in scope -> count:0.
- pinned_field indicates a fixed position (limits rotation).