gads_list_labels
Google Ads read low risk
Part of the Account Structure Agent.
What it does
List labels via GAQL on label: id, name, status, text_label.background_color, text_label.description. Read-only; excludes REMOVED. Default LIMIT 300 (cap ~5000). Use to find label IDs before applying/removing. Returns {labels:[...], count}.
When to use it
When the user asks what labels exist in the account or wants to organize by label.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
customer_id | string | yes | 10-digit CID; strip dashes. |
limit | integer | no | Max rows (default 300, cap ~5000). |
manager_id | string | no | Optional MCC login-customer-id. |
Safeguards
Policy
Report label metadata as-is; no sensitive data should be present in labels.
Reminder
Label metadata only; nothing sensitive should appear here.
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
TOKEN_REVOKED | OAuth token expired/revoked. | Refresh and retry once; else prompt reconnect (needs_reauth). | yes |
CUSTOMER_NOT_FOUND | Customer ID not found/accessible. | Verify the CID is authorized. | no |
PERMISSION_DENIED | No access or out-of-bearer-scope read. | Confirm read access; else refuse. | no |
MANAGER_ACCOUNT_NOT_QUERYABLE | Queried an MCC; labels are per-account. | Query the specific client account CID (note: manager labels exist separately). | no |
RESOURCE_EXHAUSTED | Rate/quota exceeded (HTTP 429). | Backoff 5/10/20s cap 60s, then retry. | yes |
INTERNAL_ERROR | Transient Google server error (5xx). | Retry after backoff. | yes |
Edge cases
- No labels -> success with count:0.
- Results truncated at LIMIT -> raise limit.
- Manager-account labels are separate from client-account labels.
- Expired token -> refresh once and retry.