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
POST https://api.adspirer.ai/api/v1/tools/add_demandgen_ad_group/execute
Authorization: Bearer sk_live_... โ your Adspirer API key (required)Content-Type: application/json (required)Idempotency-Key: <uuid> โ recommended for write operations to make retries safeAll tool arguments are wrapped in an arguments object.
| Field | Type | Description |
|---|---|---|
campaign_id | string required | The Demand Gen campaign ID to add the ad group to. Get from list_campaigns or get_campaign_structure. |
ad_group_name | string required | Name for the new ad group (e.g., 'US Metro - Marketing Pros') |
ad_format | string optional | Ad format: 'multi_asset' (image ads, default), 'video_responsive' (video ads). default: "multi_asset" |
final_url | string required | Landing page URL. Example: 'https://example.com/product' |
business_name | string required | Business name, max 25 characters. |
headlines | array required | MUST BE JSON ARRAY: 1-5 headlines, each max 40 characters. |
descriptions | array required | MUST BE JSON ARRAY: 1-5 descriptions, each max 90 characters. |
long_headlines | array optional | Optional 1-5 long headlines, max 90 chars each. For video_responsive format. |
call_to_action | string optional | CTA label: LEARN_MORE, SHOP_NOW, SIGN_UP, SUBSCRIBE, DOWNLOAD, BOOK_NOW, etc. |
target_locations | array optional | Geographic targets for THIS ad group (e.g., ['New York', 'Bangalore']). Each ad group can target different locations. |
target_languages | array optional | Language targets as ISO codes (e.g., ['en']). Defaults to English. |
channels | object optional | Optional channel controls for this ad group. |
marketing_images | array optional | Landscape images (1.91:1) as [{"url": "...", "name": "img1"}]. |
square_marketing_images | array optional | Square images (1:1) as [{"url": "...", "name": "img1"}]. |
portrait_marketing_images | array optional | Portrait images (4:5) as [{"url": "...", "name": "img1"}]. |
existing_images | object optional | Existing image asset resource names to reuse. Keys: marketing_images_landscape, marketing_images_square, marketing_images_portrait, logos_square. |
youtube_video_ids | array optional | YouTube video IDs for video_responsive format. 1-5 videos. |
logo_asset_id | string optional | Logo image asset ID from discover_existing_assets. |
logo_images | array optional | New logo images as [{"url": "...", "name": "logo1"}]. |
asset_bundle_id | string optional | Asset bundle ID from validate_and_prepare_assets. |
audience_segments | object optional | Audience targeting for THIS ad group. CRITICAL: Only use segment IDs returned by search_audiences tool. NEVER fabricate or guess IDs -- wrong IDs target unrelated audiences and waste budget. If search_audiences returns no results, skip audience_segments entirely. To REUSE an existing audience: {'existing_audience_id': 12345} or {'existing_audience_resource_name': 'customers/123/audiences/456'}. To CREATE new: {'in_market_audience_ids': [80463], 'affinity_audience_ids': [92913], 'custom_audience_ids': ['customers/123/customAudiences/456']}. Use search_audiences to find segment IDs. |
customer_id | string optional | Google Ads customer ID. Required for multi-account users. Get from list_connected_accounts. |
{
"arguments": {
"campaign_id": "<campaign_id>",
"ad_group_name": "string",
"final_url": "https://example.com",
"business_name": "string",
"headlines": [
"string"
],
"descriptions": [
"string"
],
"ad_format": "multi_asset",
"long_headlines": [
"string"
],
"call_to_action": "string",
"target_locations": [
"string"
],
"target_languages": [
"string"
],
"channels": [
"YOUTUBE",
"DISCOVER",
"GMAIL"
]
}
}
{
"success": true,
"data": {
"text": "(tool-specific textual output for add_demandgen_ad_group)",
"quota": {
"used": 42,
"limit": 150,
"tier": "plus",
"period_end": "2026-05-01"
}
},
"tool": "add_demandgen_ad_group"
}
{
"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_demandgen_ad_group"
}
{
"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_demandgen_ad_group",
"quota": {
"used": 150,
"limit": 150,
"tier": "plus",
"period_end": "2026-05-01",
"upgrade_url": "https://adspirer.ai"
}
}
Interactive: Swagger UI
Machine-readable: OpenAPI 3.1 spec ยท llms-full.txt
More tools: Google Ads ยท All tools
Adspirer REST API โ get an API key at adspirer.ai/keys ยท adspirer.ai