gads_create_asset_group
Google Ads write high risk
Part of the Performance Max Agent.
What it does
Create a Performance Max AssetGroup atomically with its text assets and links its image assets (AssetGroupService + AssetGroupAssetService via a chained mutate). SCALIX SOP VALIDATION: 5-15 headlines (Google's floor is 3; Scalix requires 5), 1-5 long_headlines, 2-5 descriptions, headlines <=30 chars, long_headlines and descriptions <=90 chars, plus a business_name, >=1 marketing image (1.91:1), >=1 square marketing image (1:1) and >=1 logo. Image and logo assets must ALREADY exist — upload them with gads_upload_image_asset and pass Asset resource names. A YouTube video is not created here: upload it with gads_upload_youtube_video_asset and attach it via gads_add_asset_group_asset. Every response carries manual_asset_reminder and an Ad-Strength reminder (target Good or above before enabling; check with gads_get_ad_strength). PREVIEW->APPROVE->COMMIT. PREVIEW SEMANTICS: the first call (no preview_id) is sent to the Google Ads API in validation mode — field, enum, policy and permission errors surface AT PREVIEW, nothing is changed, and the response returns a preview_id. 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. BRAND GUIDELINES: the tool reads campaign.brand_guidelines_enabled — when on, business name and logos are linked as campaign-level CampaignAssets in the same atomic request (ones already on the campaign are skipped, and business_name/logo_assets become optional), instead of asset-group links Google would reject with BRAND_ASSETS_NOT_LINKED_AT_CAMPAIGN_LEVEL.
When to use it
Collect name, final_url, optional path1/path2, 5-15 headlines, 2-5 descriptions and a long headline, then confirm the image/logo assets exist. Remind the buyer to attach the video and reach Good Ad Strength before enabling. First call gads_plan_pmax_campaign for the asset-group blueprint, operation ordering, and policy pre-checks.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
customer_id | string | yes | 10-digit CID; strip dashes. |
campaign_id | string | yes | Parent PMax campaign ID (advertising_channel_type=PERFORMANCE_MAX). |
name | string | yes | Asset group name, unique within the campaign. |
final_urls | array | yes | >=1 fully-qualified HTTPS landing URL on the advertiser domain. |
final_mobile_urls | array | no | Optional mobile-specific URLs. |
path1 | string | no | Display path 1, <=15 chars. |
path2 | string | no | Display path 2, <=15 chars (requires path1). |
status | string | no | Enum ENABLED/PAUSED; default PAUSED. |
headlines | array | no | Headline texts (Google serving minimum: >=3, <=30 chars each). |
long_headlines | array | no | Long headline texts (>=1, <=90 chars each). |
descriptions | array | no | Description texts (>=2, <=90 chars each). |
business_name | string | no | Business name shown on the asset group (<=25 chars). |
marketing_image_assets | array | no | Existing IMAGE asset ids/resource names, 1.91:1 marketing images (>=1). |
square_marketing_image_assets | array | no | Existing IMAGE asset ids/resource names, 1:1 square images (>=1). |
logo_assets | array | no | Existing IMAGE asset ids/resource names for LOGO (1:1, >=128x128). |
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
PMax asset groups assemble ads across all Google channels; final URLs must be advertiser-owned and content must satisfy editorial + Misrepresentation rules. Restricted verticals (alcohol/gambling/healthcare/financial/political) require eligibility before serving.
Reminder
Use advertiser-owned URLs only; account-isolated; nothing retained beyond this request.
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
INVALID_ARGUMENT | Missing final_urls, path2 without path1, or paths over 15 chars. | Surface the field error; correct URLs/paths. | no |
ASSET_GROUP_ERROR_CAMPAIGN_NOT_PMAX | Parent campaign is not a Performance Max campaign. | Target a PERFORMANCE_MAX campaign; asset groups are PMax-only. | no |
DUPLICATE_NAME | Asset group name already used in the campaign. | Choose a unique name. | 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 |
PARTIAL_FAILURE | Failure within a chained create. | Return per-op errors. | no |
PLATFORM_UNAVAILABLE | Backend 5xx/INTERNAL. | Retry once after backoff. | yes |
Edge cases
- Empty asset group won't serve -> report the minimum-asset gap (>=3 headlines, >=2 descriptions, images, logo, business name).
- brand_guidelines_enabled -> BUSINESS_NAME/LOGO/LANDSCAPE_LOGO must be CampaignAsset, NOT added here; warn if the user tries.
- Default PAUSED; enabling an under-provisioned group surfaces NOT_ELIGIBLE.
- path2 without path1 invalid.
- validate_only=true creates nothing.
- preview TTL expiry -> re-preview.