hermosodocs

create_tiktok_ads_ad_group

Create a TikTok ad group (targeting, budget, bidding, schedule) destructive

Area: UPGRADED SMART+ · Ad campaign management. Generated from the running MCP server, like the rest of the tool reference.

Description

Create an ad group under an existing TikTok campaign — the tier that holds the budget, the bid, the placements, the schedule and ALL the targeting. CREATED PAUSED with no override (TikTok would otherwise create it ENABLED, and a live ad group under a paused campaign is exactly how spend escapes a one-level pause); it spends nothing until set_tiktok_ads_status(confirm:true). TIKTOK REQUIRES THIRTEEN FIELDS TOGETHER and its error names only the FIRST missing one per round trip, so the server checks the whole set locally and refuses with EVERY absentee at once — which matters here because QPS is 1 and each round trip costs a second. Sensible defaults are supplied for placement, pacing, promotion type, schedule type, optimization goal, billing event, bid type and budget mode, so the ONE thing you must resolve yourself is LOCATION: locationIds is effectively mandatory (TikTok: "‘location_ids’ or ‘zipcode_ids’ must be specified") and comes from search_tiktok_ads_targeting(kind:"location"). Resolve interest and language ids the same way — a guessed id either fails the create or targets the wrong people, silently. CONVERSION CAMPAIGNS (WEB_CONVERSIONS / CONVERSIONS / PRODUCT_SALES / LEAD_GENERATION) NEED A PIXEL: set optimizationGoal CONVERT, pass pixelId AND optimizationEvent, and billingEvent OCPM — TikTok pairs a billing event with every goal MANUALLY and derives nothing, so the server supplies the right one if you leave it out. Without a pixel TikTok refuses with "Please select a pixel." The result is READ BACK from TikTok, and the pixel and event it reports are the STORED ones.

Parameters

ParameterTypeDescription
advertiserIdstringTikTok ad account id from list_tiktok_ads_accounts; omit when only one account is shared with this profile
campaignIdrequiredstringthe campaign this ad group belongs to
namerequiredstringad group name in TikTok Ads Manager
locationIdsrequiredstring[]REQUIRED in practice — ids from search_tiktok_ads_targeting(kind:"location"); TikTok refuses an ad group without them
placementsstring[]default ["PLACEMENT_TIKTOK"]
placementTypestringdefault PLACEMENT_TYPE_NORMAL
optimizationGoalstringwhat TikTok optimises delivery toward — default CLICK; it has to fit the campaign objective and TikTok’s refusal names the valid values
billingEventstringwhat TikTok charges for — default CPC; must fit the optimization goal
bidTypestringdefault BID_TYPE_NO_BID (let TikTok bid). A manual bid type needs bid.
bidnumberbid price in the advertiser’s own currency — required by the manual bid types
pacingstringdefault PACING_MODE_SMOOTH, which spends the budget evenly across the day. PACING_MODE_FAST spends as fast as delivery allows — a real money decision, so it is never chosen for you.
budgetModestringdefault BUDGET_MODE_DAY
budgetnumberad-group budget in the advertiser’s own currency
scheduleTypestringdefault SCHEDULE_FROM_NOW
scheduleStartTimestring"YYYY-MM-DD HH:MM:SS" in the advertiser’s timezone
scheduleEndTimestringonly needed when the schedule type is a fixed window
promotionTypestringwhat is being promoted — default WEBSITE
ageGroupsstring[]TikTok age band values — omit to reach every age
gendersstring[]omit to reach everyone
languagesstring[]language codes from search_tiktok_ads_targeting(kind:"language")
interestCategoryIdsstring[]ids from search_tiktok_ads_targeting(kind:"interest")
interestKeywordIdsstring[]ids from search_tiktok_ads_targeting(kind:"interest_keyword") — TikTok pairs this with interestCategoryIds under Interests
pixelIdstringREQUIRED when optimizationGoal is CONVERT or VALUE, and NOT ACCEPTED with any other goal — that is TikTok’s own two-sided rule, and it is why a conversion campaign built without one dies at the ad group with "Please select a pixel." Get it from list_tiktok_ads_pixels, or create_tiktok_ads_pixel for a new one.
optimizationEventstringREQUIRED whenever pixelId is given (and when optimizationGoal is IN_APP_EVENT or VALUE) — the conversion TikTok optimises toward. Web events: ON_WEB_DETAIL, ON_WEB_SEARCH, ON_WEB_ADD_TO_WISHLIST, ON_WEB_CART, INITIATE_ORDER, ADD_BILLING, SHOPPING, CONSULT, DOWNLOAD_START, FORM, ON_WEB_REGISTER, ON_WEB_SUBSCRIBE. Pick the one that matches the goal: SHOPPING for a purchase, FORM for a lead, ON_WEB_REGISTER for a signup. The event must already EXIST on the pixel or TikTok refuses with "This pixel event type does not exist."
customConversionIdstringoptional narrower rule from list_tiktok_ads_custom_conversions — valid only alongside a pixel and only when optimizationGoal is CONVERT or IN_APP_EVENT
promotionTargetTypestringLEAD_GENERATION campaigns only: INSTANT_PAGE (a TikTok in-app form) or EXTERNAL_WEBSITE (your own landing page). INSTANT_PAGE defaults promotionType and optimizationGoal to LEAD_GENERATION and billingEvent to OCPM, which is TikTok’s documented Instant-Form ad group; then attach the form on the ad with create_tiktok_ads_ad(pageId). With EXTERNAL_WEBSITE + optimizationGoal CLICK, TikTok forbids pixelId and optimizationEvent.
conversionBidnumbertarget cost per conversion for oCPM — required by TikTok when bidType is BID_TYPE_CUSTOM and billingEvent is OCPM

Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/create_tiktok_ads_ad_group.

MCP (tools/call)

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_tiktok_ads_ad_group","arguments":{"campaignId":"<string>","name":"<string>","locationIds":"<array>"}}}

CLI

hermoso call create_tiktok_ads_ad_group --json '{"campaignId":"<string>","name":"<string>","locationIds":"<array>"}'

Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.

All 759 Ad campaign management tools · tools.json