add_display_ad

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_display_ad/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 another Responsive Display Ad (RDA) to an EXISTING Display ad group. **When to use:** - User wants to A/B test multiple creatives in the same ad group - User asks to "add another ad" to an existing Display ad group **Required:** - ad_group_id - headlines (1-5 @ 30ch), long_headline (1 @ 90ch), descriptions (1-5 @ 90ch), business_name (โ‰ค25ch), final_url - At least one landscape AND one square marketing image (new or via existing_images) **Character limits (strict):** - Headlines: MAX 30 chars each - Long headline: MAX 90 chars - Descriptions: MAX 90 chars each - Business name: MAX 25 chars **Execution time:** 4-8 seconds

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
ad_group_idstring requiredExisting Display ad group ID.
final_urlstring requiredLanding page URL (https).
business_namestring requiredBusiness name, max 25 chars.
headlinesarray requiredJSON ARRAY: 1-5 short headlines, each MAX 30 characters.
long_headlinestring requiredExactly 1 long headline, max 90 characters.
descriptionsarray requiredJSON ARRAY: 1-5 descriptions, each MAX 90 characters.
marketing_imagesarray optionalLandscape images (1.91:1).
square_marketing_imagesarray optionalSquare images (1:1).
logo_imagesarray optionalโ€”
square_logo_imagesarray optionalโ€”
existing_imagesobject optionalโ€”
youtube_video_idsarray optionalโ€”
call_to_actionstring optionalโ€”
format_settingstring optionalโ€”
main_colorstring optionalโ€”
accent_colorstring optionalโ€”
allow_flexible_colorboolean optionalโ€” default: true
price_prefixstring optionalโ€”
promo_textstring optionalโ€”
customer_idstring optionalโ€”

Example request

{
  "arguments": {
    "ad_group_id": "string",
    "final_url": "https://example.com",
    "business_name": "string",
    "headlines": [
      "string"
    ],
    "long_headline": "string",
    "descriptions": [
      "string"
    ],
    "marketing_images": [
      {}
    ],
    "square_marketing_images": [
      {}
    ],
    "logo_images": [
      {}
    ],
    "square_logo_images": [
      {}
    ],
    "existing_images": {},
    "youtube_video_ids": [
      "string"
    ]
  }
}

Example responses

200 โ€” Success

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

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_display_ad"
}

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_display_ad",
  "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