TikTok Ads: Update Ad Group Targeting
tiktok_update_adgroup_targetingChange who one TikTok ad group reaches in the user's own ad account: locations, age groups, gender, languages, custom audiences to include or exclude, interest categories and operating systems. Each list you pass REPLACES the ad group's current list for that criterion, so read the ad group with tiktok_get_adgroups first and pass the full list you want; criteria you omit are left as they are. An empty list clears a criterion (all ages, all languages, no audience), except location_ids, which must keep at least one location. A targeting change alters who sees the ads and what they cost, and can restart the learning phase, so get the user's explicit approval first. Works for manual, Smart+ and Upgraded Smart+ ad groups; TikTok refuses criteria an automated campaign controls itself. It cannot change placements, the optimisation goal or the budget. Supports dry_run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"adgroup_id": "<adgroup_id>"
},
"name": "tiktok_update_adgroup_targeting"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gender | No | Gender to target. | |
| dry_run | No | true: read the object and report the field-level changes this call would make, changing nothing. Default false. Show the user the proposal and get their approval before calling without dry_run. | |
| languages | No | Language codes to target, e.g. en, es, pt; replaces the current ones. Empty: all languages. | |
| adgroup_id | Yes | Id of the ad group, from tiktok_get_adgroups. | |
| age_groups | No | Age groups to target, replacing the current ones. Empty: all ages. | |
| audience_ids | No | Custom or lookalike audiences to include (ids from tiktok_list_custom_audiences); replaces the current ones. Empty: none. | |
| location_ids | No | TikTok location ids to target, replacing the current ones; at least one. Use ids already on the account's ad groups (locationIds in tiktok_get_adgroups). | |
| advertiser_id | No | TikTok ad account to change: advertiser id or exact account name. Required when you have several ad accounts — the stored default is never used for a change then. | |
| operating_systems | No | Operating systems to target, replacing the current ones. Empty: all. | |
| excluded_audience_ids | No | Custom or lookalike audiences to exclude; replaces the current ones. Empty: none. | |
| interest_category_ids | No | TikTok interest category ids to target; replaces the current ones. Empty: none. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | Yes | True when the call only previewed the change. | |
| changed | Yes | True only when this call changed TikTok Ads. | |
| changes | Yes | Field-level changes: made, or proposed on a dry run. | |
| currency | No | ISO currency code that every money field in this result is denominated in, e.g. UAH or USD. Null when it could not be resolved — do not assume a currency then. | |
| entityId | Yes | Id of the object, as passed. | |
| verified | No | Whether TikTok's read-back holds every requested value; null when nothing was written or the read-back failed. | |
| warnings | Yes | Side effects and limits the user should hear about. | |
| operation | Yes | What happened: updated, no_change, or dry_run. | |
| entityName | No | The object's name, when it has one. | |
| entityType | Yes | Kind of object addressed. | |
| advertiserId | Yes | TikTok ad account the object is in. | |
| campaignType | Yes | Which TikTok management surface the object belongs to: STANDARD for manual and legacy Smart+ campaigns, UPGRADED_SMART_PLUS for Upgraded Smart+. |