add_search_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_search_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 ad group to an EXISTING Search campaign. **When to use:** - User wants another themed ad group inside a Search campaign - User asks to "add an ad group to my Search campaign" **Each ad group can optionally be seeded with:** - keywords (plain text โ€” run research_keywords first) - a Responsive Search Ad (headlines 3-15 @30ch + descriptions 2-4 @90ch + final_url) - an optional manual CPC bid (inherits campaign bidding otherwise) **Required:** campaign_id (Search campaign from list_campaigns), ad_group_name. **Execution time:** 5-15 seconds

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
campaign_idstring requiredExisting Search campaign ID (from list_campaigns).
ad_group_namestring requiredName for the new ad group.
cpc_bid_microsinteger optionalOptional max CPC bid in micros (1_000_000 = 1 unit of account currency). Only used when the campaign bidding strategy allows a manual/ad-group bid.
target_cpa_microsinteger optionalOptional ad-group target CPA in micros.
keywordsarray optionalOptional keywords to seed the ad group (plain text). Run research_keywords first for ideas.
headlinesarray optionalOptional RSA headlines to create an ad in this group (each โ‰ค30 chars). Requires descriptions + final_url too. โš ๏ธ Provide 10+ real headlines: Google pads to 10 and any shortfall is filled with generic 'Default Headline N' placeholders that go LIVE. Aim for 10-15.
descriptionsarray optionalOptional RSA descriptions (each โ‰ค90 chars). Requires headlines + final_url too. โš ๏ธ Provide 4 real descriptions: shortfalls are padded with generic 'Default Description N' placeholders that go LIVE. Aim for 4.
final_urlstring optionalLanding page URL for the seeded RSA (required if headlines set).
customer_idstring optionalGoogle Ads customer ID. Required for multi-account users.

Example request

{
  "arguments": {
    "campaign_id": "<campaign_id>",
    "ad_group_name": "string",
    "cpc_bid_micros": 1,
    "target_cpa_micros": 1,
    "keywords": [
      "string"
    ],
    "headlines": [
      "string"
    ],
    "descriptions": [
      "string"
    ],
    "final_url": "string"
  }
}

Example responses

200 โ€” Success

{
  "success": true,
  "data": {
    "text": "(tool-specific textual output for add_search_ad_group)",
    "quota": {
      "used": 42,
      "limit": 150,
      "tier": "plus",
      "period_end": "2026-05-01"
    }
  },
  "tool": "add_search_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_search_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_search_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