TikTok Ads Write
Add a new ad group to an existing TikTok campaign
POST https://api.adspirer.ai/api/v1/tools/add_tiktok_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 | Existing TikTok campaign ID to add the ad group to |
adgroup_name | string required | Name for the new ad group |
budget | number required | Ad group budget in account currency (min varies by region) |
budget_mode | string optional | BUDGET_MODE_DAY (daily) or BUDGET_MODE_TOTAL (lifetime). Default: daily. default: "BUDGET_MODE_DAY" |
objective | string optional | Campaign objective (determines billing/optimization defaults). Options: TRAFFIC, CONVERSIONS, LEAD_GENERATION, REACH, VIDEO_VIEWS, APP_PROMOTION. Default: TRAFFIC. default: "TRAFFIC" |
location_ids | array optional | TikTok location IDs. Default: ['6252001'] (US). |
age_groups | array optional | Age groups: AGE_13_17, AGE_18_24, AGE_25_34, AGE_35_44, AGE_45_54, AGE_55_100. |
gender | string optional | GENDER_UNLIMITED, GENDER_MALE, GENDER_FEMALE. |
schedule_start_time | string optional | Start time: YYYY-MM-DD HH:MM:SS. |
schedule_end_time | string optional | End time: YYYY-MM-DD HH:MM:SS. Required for BUDGET_MODE_TOTAL. |
pixel_id | string optional | TikTok Pixel ID for conversion tracking. |
optimization_event | string optional | Conversion event: COMPLETE_PAYMENT, ON_WEB_CART, ON_WEB_DETAIL, ON_WEB_REGISTER, FORM, CONVERSION_LEADS, PAGE_VISIT, CLICK_LANDING_PAGE, PHONE_CONNECT, SEARCH, SUBSCRIBE, DOWNLOAD_FINISH. |
interest_category_ids | array optional | Interest category IDs for targeting. |
audience_ids | array optional | Custom audience IDs to include. |
excluded_audience_ids | array optional | Custom audience IDs to exclude. |
languages | array optional | Language codes (e.g., ['en', 'es']). |
placement_type | string optional | PLACEMENT_TYPE_AUTOMATIC or PLACEMENT_TYPE_NORMAL. |
placements | array optional | Manual placements: PLACEMENT_TIKTOK, PLACEMENT_PANGLE, PLACEMENT_GLOBAL_APP_BUNDLE. |
operating_systems | array optional | Target OS: ANDROID, IOS. |
video_download_disabled | boolean optional | Disable video download. |
comment_disabled | boolean optional | Disable comments on ads. |
billing_event | string optional | Override billing event: CPC, CPM, OCPM, CPV. |
optimization_goal | string optional | Override optimization goal: CLICK, CONVERT, REACH, etc. |
promotion_type | string optional | Override promotion type: WEBSITE, APP_ANDROID, APP_IOS. |
advertiser_id | string optional | TikTok advertiser ID (optional). |
{
"arguments": {
"campaign_id": "<campaign_id>",
"adgroup_name": "string",
"budget": 1.0,
"budget_mode": "BUDGET_MODE_DAY",
"objective": "TRAFFIC",
"location_ids": [
"string"
],
"age_groups": [
"string"
],
"gender": "string",
"schedule_start_time": "string"
}
}
{
"success": true,
"data": {
"text": "(tool-specific textual output for add_tiktok_ad_group)",
"quota": {
"used": 42,
"limit": 150,
"tier": "plus",
"period_end": "2026-05-01"
}
},
"tool": "add_tiktok_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_tiktok_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_tiktok_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: TikTok Ads · All tools
Adspirer REST API — get an API key at adspirer.ai/keys · adspirer.ai