add_display_ad_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_display_ad_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 DISPLAY_STANDARD ad group (with its own targeting + a Responsive Display Ad) to an EXISTING Display campaign. **When to use:** - User wants another ad group inside a Display campaign (different targeting + different creative) - User asks to "add an ad group to my Display campaign" **Each ad group can have:** - Its own audience_segments, topics, managed_placements, display_keywords, demographics - Its own responsive display ad (creative + assets) - Optional manual CPC/CPM bid (inherits campaign bidding otherwise) **Required:** - campaign_id (Display campaign from list_campaigns) - ad_group_name - Full RDA payload: 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 URL or reuse via existing_images) **Execution time:** 8-15 seconds

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
campaign_idstring requiredExisting Display campaign ID (from list_campaigns).
ad_group_namestring requiredName for the new ad group.
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). Required unless reusing via existing_images.
square_marketing_imagesarray optionalSquare images (1:1). Required unless reusing via existing_images.
logo_imagesarray optionalOptional landscape logos (4:1). Up to 5.
square_logo_imagesarray optionalOptional square logos (1:1). Up to 5.
existing_imagesobject optionalReuse existing image asset resource names. Keys: marketing_images_landscape, marketing_images_square, logos_landscape, logos_square.
youtube_video_idsarray optionalOptional YouTube video IDs (0-5).
audience_segmentsobject optionalAudience targeting. Keys: user_interests, custom_audiences, user_lists, combined_audiences. Use search_audiences โ€” NEVER fabricate IDs.
topicsarray optionalTopic IDs or 'topicConstants/<id>' resource names.
managed_placementsarray optionalManaged placements. List of {type, value}: type in ('website','mobile_app','youtube_channel','youtube_video').
display_keywordsarray optionalContextual display keywords. List of {text, negative?}.
demographicsobject optionalDemographic targeting (exclude-the-inverse). Keys: age_ranges, genders, parental_statuses, income_ranges.
bidding_strategystring optionalCarry through campaign bidding (MANUAL_CPC/MANUAL_CPM needs cpc_bid/cpm_bid). default: "MAXIMIZE_CLICKS"
cpc_bidnumber optionalRequired for MANUAL_CPC.
cpm_bidnumber optionalRequired for MANUAL_CPM.
call_to_actionstring optionalCTA label.
format_settingstring optionalALL_FORMATS / NATIVE / NON_NATIVE.
main_colorstring optionalHex color.
accent_colorstring optionalHex color.
allow_flexible_colorboolean optionalโ€” default: true
price_prefixstring optionalโ€”
promo_textstring optionalโ€”
customer_idstring optionalRequired for multi-account users.

Example request

{
  "arguments": {
    "campaign_id": "<campaign_id>",
    "ad_group_name": "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_group)",
    "quota": {
      "used": 42,
      "limit": 150,
      "tier": "plus",
      "period_end": "2026-05-01"
    }
  },
  "tool": "add_display_ad_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_display_ad_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_display_ad_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