add_pmax_asset_group

Google Ads Write

Add a NEW asset group to an EXISTING Performance Max campaign

Endpoint

POST https://api.adspirer.ai/api/v1/tools/add_pmax_asset_group/execute

Headers

Description

Add a NEW asset group to an EXISTING Performance Max campaign. Takes the same asset-group shape as create_pmax_campaign and builds the group atomically (assets + links + search themes + audience signals in one call). The new group is created **PAUSED** — enable it with update_pmax_asset_group. **Required in asset_group:** name, final_urls, headlines (3-15), descriptions (2-5), business_name, logo_images, marketing_images (landscape), square_marketing_images. Google rejects groups missing required asset types. **Optional:** long_headlines, portrait_marketing_images, youtube_video_ids, search_themes (auto-derived from headlines if omitted), audience_signals. **Parameters:** - campaign_id: The PMax campaign ID (REQUIRED) - asset_group: The group config object (REQUIRED — see shape above) - auto_truncate: Auto-fix text over character limits (default: true) - customer_id: Optional (uses connected account if omitted) **Execution time:** 10-30 seconds (uploads images, atomic mutate)

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
campaign_idstring requiredThe PMax campaign ID (numeric). Example: '21854471508'
asset_groupobject requiredAsset group config — SAME shape as one create_pmax_campaign asset_groups[] entry. Required keys: name, final_urls (list), headlines (3-15), descriptions (2-5), business_name, logo_images ([{url,name?}]), marketing_images (landscape 1.91:1), square_marketing_images (1:1). Optional: long_headlines (1-5), portrait_marketing_images, youtube_video_ids, search_themes (auto-derived from headlines if omitted), audience_signals ({in_market_audience_ids, affinity_audience_ids, custom_audience_ids, user_list_ids}), existing_images (reuse Asset Library images by resource name: {marketing_images_landscape, marketing_images_square, logos_square} — from discover_existing_assets).
auto_truncateboolean optionalAuto-truncate text that exceeds Google character limits instead of rejecting (default: true). default: true
customer_idstring optionalGoogle Ads customer ID. Required for multi-account users. Get from get_connections_status.

Example request

{
  "arguments": {
    "campaign_id": "<campaign_id>",
    "asset_group": {},
    "auto_truncate": true,
    "customer_id": "string"
  }
}

Example responses

200 — Success

{
  "success": true,
  "data": {
    "text": "(tool-specific textual output for add_pmax_asset_group)",
    "quota": {
      "used": 42,
      "limit": 150,
      "tier": "plus",
      "period_end": "2026-05-01"
    }
  },
  "tool": "add_pmax_asset_group"
}

400 — Tool-level error (bad arguments / multi-account selection)

{
  "success": false,
  "error": "You have 25 meta_ads accounts connected. Please specify which account to use by passing the ad_account_id parameter:\n  - Acme Holdings (ad_account_id=\"act_123456789\")\n  - Acme EU (ad_account_id=\"act_987654321\")",
  "is_error": true,
  "tool": "add_pmax_asset_group"
}

402 — Quota exhausted

{
  "success": false,
  "error": "\ud83d\udea8 Monthly limit reached (150/150 tool calls on Plus tier).\nUpgrade to Pro at https://adspirer.ai to keep building.",
  "is_error": true,
  "tool": "add_pmax_asset_group",
  "quota": {
    "used": 150,
    "limit": 150,
    "tier": "plus",
    "period_end": "2026-05-01",
    "upgrade_url": "https://adspirer.ai"
  }
}

Try it live


Adspirer REST API — get an API key at adspirer.ai/keys · adspirer.ai