gads_update_brand_guidelines
Google Ads write high risk
Part of the Performance Max Agent.
What it does
Configure Performance Max brand guidelines on a campaign: set Campaign.brand_guidelines (main_color, accent_color as #RRGGBB hex; predefined_font_family from the 8 allowed Google Fonts) and/or ENABLE brand guidelines. IMPORTANT: brand_guidelines_enabled is IMMUTABLE and cannot be flipped via a normal update_mask — enable_brand_guidelines=true sends CampaignService.EnablePMaxBrandGuidelines (the migration path) with the colors and font in the same operation and auto_populate_brand_assets=true (Google picks the business name and logos); it can't be undone. Colors/font alone are a standard CampaignService.MutateCampaigns update. Since v21, new PMax campaigns default to brand-guidelines-enabled. When enabled, brand assets (BUSINESS_NAME, LOGO, LANDSCAPE_LOGO) live at the CAMPAIGN level (CampaignAsset) rather than the asset group. The commit returns the applied change. Flow: the campaign is read first (Performance Max only; brand guidelines on or off; its current colors/font, shown as current) -> preview -> approval -> execute -> confirm + immutable audit log. Colors without enabling, on a campaign without brand guidelines, are refused (Google refuses them: BRAND_GUIDELINES_NOT_ENABLED_FOR_CAMPAIGN); enabling a campaign that has them is a no-op (changed: false, no preview_id). PREVIEW SEMANTICS (this tool differs): the first call (no preview_id) changes nothing and returns a preview_id. A color/font change is sent to the Google Ads API in validation mode, so its errors surface AT PREVIEW; an enable is not (EnablePMaxBrandGuidelines has no validation mode in v24): Google checks it at commit, and the preview says so. To apply, show the preview to the user, get their approval, and re-call with that preview_id and IDENTICAL arguments within 30 minutes; changed arguments or an expired token fail closed to a fresh preview. validate_only=true forces another preview; validate_only=false alone never commits.
When to use it
Use to apply consistent brand colors/fonts and manage campaign-level brand assets for PMax. Provide valid #RRGGBB colors and an exact-cased allowed font. Enabling lets Google pick the business name and logos (auto-populate) and is one-way (cannot be disabled); the preview says both, so confirm before approval.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
customer_id | string | yes | 10-digit CID; strip dashes. |
campaign_id | string | yes | PMax campaign ID. |
enable_brand_guidelines | boolean | no | If true, sends CampaignService.EnablePMaxBrandGuidelines (the migration) with the colors and font given and auto_populate_brand_assets=true. Approval-only at preview (no validation mode in v24); can't be undone. On a campaign that already has them: a no-op, or just the color/font update. |
main_color | string | no | Primary brand color as #RRGGBB hex (e.g., #00ff00); leading # required. When enabling, give accent_color too (Google requires the pair). |
accent_color | string | no | Secondary brand color as #RRGGBB hex. |
predefined_font_family | string | no | One of (case-sensitive): Open Sans, Roboto, Montserrat, Poppins, Lato, Oswald, Playfair Display, Roboto Slab. |
validate_only | boolean | no | Optional. true forces another preview even with a preview_id; false is DEPRECATED and no longer commits — only a valid preview_id applies the write. |
preview_id | string | no | Omit it to preview: nothing is applied, and the call returns a preview_id bound to this exact request. Pass it only after the user approves that preview in a later message, with the same arguments (leave out validate_only, and add any confirmation flag the preview names). Single-use, expires in 30 minutes; changed arguments need a fresh preview. |
Safeguards
A change in two steps. The first call previews and changes nothing; Claude shows you the preview and applies it only after you approve, within 30 minutes and with the same arguments. Every applied change goes to the audit log. How changes are approved.
Policy
Brand colors/fonts/logo/name must represent the actual advertiser brand (no impersonation/Misrepresentation). Logos must be advertiser-owned. Restricted-vertical eligibility still applies to the campaign regardless of brand styling.
Reminder
Use only advertiser-owned brand assets; account-isolated; nothing retained beyond this request.
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
INVALID_ARGUMENT | Color not valid #RRGGBB hex, or font not in the allowed list (case-sensitive). | Surface the exact allowed-font list and #RRGGBB format; correct the value. | no |
BRAND_GUIDELINES_MISSING_REQUIRED_ASSET | Enabling requires campaign-level BUSINESS_NAME + at least one LOGO, which are missing. | Link brand assets as CampaignAsset first, then call EnablePMaxBrandGuidelines. | no |
BRAND_GUIDELINES_IMMUTABLE_FIELD | Attempted to set brand_guidelines_enabled via update_mask, or to disable it after migration. | Use CampaignService.EnablePMaxBrandGuidelines to enable; inform the user it cannot be disabled once enabled. | no |
CAMPAIGN_NOT_PMAX | Target campaign is not Performance Max. | Brand guidelines apply only to PMax campaigns. | no |
TOKEN_REVOKED | Token revoked/expired. | Set needs_reauth; prompt reconnect. | 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
- brand_guidelines_enabled is IMMUTABLE: enable only via EnablePMaxBrandGuidelines; setting it through MutateCampaigns update_mask errors.
- Enabling moves brand assets to the campaign level (CampaignAsset); with auto_populate_brand_assets Google picks them itself.
- Font must match the exact casing of one of the 8 Google Fonts; reject near-matches.
- LANDSCAPE_LOGO only allowed in an asset group when brand guidelines are DISABLED; otherwise CampaignAsset.
- Enabling is effectively one-way (migration) -> warn before approval.
- Color hex without leading # -> refused before the API (#RRGGBB).
- validate_only=true changes nothing; preview TTL expiry -> re-preview.