add_pmax_asset_group

Google Ads Write

๐Ÿšจ **IF THIS TOOL RETURNS A QUOTA ERROR:** - The error message will include a clickable upgrade link - Show the FULL error message to the user (it contains the upgrade link) - DO NOT attempt to work ar

Endpoint

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

Headers

Description

๐Ÿšจ **IF THIS TOOL RETURNS A QUOTA ERROR:** - The error message will include a clickable upgrade link - Show the FULL error message to the user (it contains the upgrade link) - DO NOT attempt to work around the error or use alternative data - DO NOT create campaigns or perform actions without valid tool data - STOP and direct the user to upgrade via the provided link 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