gads_get_account_performance
Google Ads read low risk
Part of the Google Ads Manager Agent.
What it does
Return top-line ACCOUNT performance over a date range from the customer resource — impressions, clicks, CTR, average CPC, cost, conversions, conversion value, cost/conv (Google's metrics.cost_per_conversion, micros->currency, with a cost_per_conversion_display twin), and ROAS (client-side `roas` key = conversions_value / cost; null when cost is 0). Every selected metrics key is present on every row — counters default to 0, ratio/average metrics to null when Google reports no value. Money fields are micros->currency (/1e6, label the account currency); CTR/rates are ratios. Reconciles to the Google Ads UI within +/-1% (account timezone; recent days may be unsettled). Manager (MCC) accounts return NO metrics — query a child account. Returns {success, data:[{customer, metrics}], count, warnings}.
When to use it
Use for a quick top-line account read (e.g. a weekly check-in). For a full account audit, start with gads_audit_account.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
customer_id | string | yes | 10-digit Google Ads customer ID (CID), dashes stripped. Server-derived tenant context + RLS. |
date_range | string | yes | GAQL macro (LAST_7_DAYS/LAST_30_DAYS/THIS_MONTH/LAST_MONTH) or explicit YYYY-MM-DD,YYYY-MM-DD. ALL_TIME removes the date filter entirely. |
manager_id | string | no | Manager (MCC) login-customer-id when the account is reached through a manager; else omit. |
Safeguards
Policy
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 account performance data as sensitive; do not retain beyond this request.
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
- No data in range -> success count:0.
- Manager (MCC) account -> metrics unsupported; query a child account.
- Very recent days may be unsettled and shift slightly.