Tiktok ads skill

Plan and create TikTok advertising campaigns end-to-end via the Hyper MCP, with strict parameter validation for objective-specific requirements.

by hyperfx-ai·MIT license·GitHub ↗

★ 90 Stars on the repo·Checked

npx degit hyperfx-ai/marketing-skills/skills/tiktok-ads#main ~/.claude/skills/tiktok-ads

SKILL.md · 10.4 KB · installs the whole folder to ~/.claude/skills/tiktok-ads

Files of Tiktok ads

Files 1 file
Show the full text250 lines

TikTok Ads

Strategic guide for managing TikTok advertising campaigns. Research deeply, validate parameters carefully, and guide users through the platform's strict objective-specific requirements.

This skill is for paid TikTok ads (the TikTok Marketing API surface).

Requirements

If search("tiktok_ads_advertiser_accounts_list") does not find tiktok_ads_advertiser_accounts_list, stop and tell the user to enable Hyper MCP and connect TikTok Marketing.

How to run the tools in this skill

Every tool in this skill is named by its canonical tool name. Run it with the call your surface gives you:

Surface Find a tool Run it
MCP client (Claude, Cursor, Codex, ChatGPT) search("<what you want to do>"), then describe("<name>") call("<name>", {...})
Hyper CLI hyperai search "<what you want to do>", then hyperai describe <name> hyperai call <name> --json '{...}'

If a tool is not found, its integration is not connected or not enabled for the workspace: stop and tell the user which integration to connect.

Out of scope — defer to other skills

  • Organic TikTok posting (videos, photos, carousels — no ad spend) → tiktok.
  • Creative generation (ad copy, images) → ad-creative-generation; video creatives → video-generation.
  • Cross-platform campaign launches → use this skill for TikTok, then invoke meta-ads / google-ads separately.

Tool surface

Tool Purpose
tiktok_ads_advertiser_accounts_list Discovery: list advertiser IDs available to the connected user.
tiktok_ads_campaigns_get, tiktok_ads_campaigns_create, tiktok_ads_campaigns_update, tiktok_ads_campaigns_status_update Campaign lifecycle.
tiktok_ads_ad_groups_list, tiktok_ads_ad_groups_create, tiktok_ads_ad_groups_update, tiktok_ads_ad_groups_status_update Ad group lifecycle.
tiktok_ads_list, tiktok_ads_create, tiktok_ads_ad_status_update, tiktok_ads_update Ad lifecycle and supported incremental content changes. Describe the selected tool before editing; Smart+ ads use their dedicated tools.
tiktok_ads_videos_upload, tiktok_ads_videos_get, tiktok_ads_videos_search Video creative upload + lookup.
tiktok_ads_integrated_reports_get Performance reporting.
tiktok_ads_custom_audiences_create, tiktok_ads_custom_audiences_list, tiktok_ads_lookalike_audiences_create Audience management (optional).

Phase 1: Account Discovery

Initial Setup
  • Use tiktok_ads_advertiser_accounts_list() to get advertiser IDs.
  • If multiple accounts: ask the user to select one.
  • If single account: inform the user and proceed.

Before setting bid prices, call tiktok_ads_benchmarks_get to retrieve industry-specific CPM/CPC benchmarks. This prevents using placeholder values that may be too low to win auctions or too high for the user's budget.

tiktok_ads_benchmarks_get(
    advertiser_id="123456789",
    dimensions=["industry"],
    filtering={"industry": "292801"}  # industry code from tiktok_ads_advertiser_accounts_list
)
Available Campaign Objectives
Objective Best For Key Requirements
TRAFFIC Drive website visits promotion_type="WEBSITE", CPC billing
CONVERSIONS Drive purchases / leads Pixel ID, conversion event tracking
REACH Brand awareness Manual placement only, CPM billing, frequency cap
APP_PROMOTION App installs App ID, app store URL
VIDEO_VIEW Video engagement Video creative assets

Phase 2: Campaign Creation

Step 1: Create Campaign

Budget Requirements:

  • MINIMUM $50 for campaign-level budgets (TikTok requirement).
  • budget_mode: BUDGET_MODE_INFINITE (CBO), BUDGET_MODE_DAY, or BUDGET_MODE_TOTAL.
tiktok_ads_campaigns_create(
    advertiser_id="123456789",
    campaign_name="Summer Sale 2026",
    objective_type="TRAFFIC",
    budget_mode="BUDGET_MODE_DAY",
    budget=50.0,  # MINIMUM $50/day
    operation_status="ENABLE"
)
Step 2: Create Ad Group

ALWAYS REQUIRED Parameters:

  • advertiser_id, campaign_id, adgroup_name.
  • location_ids (e.g., ["6252001"] for US).
  • schedule_type and schedule_start_time (MUST be a future date).
  • billing_event (CPC, CPM, OCPM).
  • budget_mode (REQUIRED for ad groups).

For TRAFFIC Campaigns:

tiktok_ads_ad_groups_create(
    advertiser_id="123456789",
    campaign_id="1234567890123456",
    adgroup_name="Website Traffic - Summer Sale",
    location_ids=["6252001"],  # US
    schedule_type="SCHEDULE_FROM_NOW",
    schedule_start_time="2026-06-01 00:00:00",  # FUTURE DATE
    billing_event="CPC",
    budget_mode="BUDGET_MODE_DAY",
    budget=30.0,
    promotion_type="WEBSITE",        # REQUIRED for TRAFFIC
    optimization_goal="CLICK",       # REQUIRED (correct spelling)
    bid_price=0.50,
    placement_type="PLACEMENT_TYPE_AUTOMATIC",
    operation_status="ENABLE"
)

For REACH Campaigns:

tiktok_ads_ad_groups_create(
    advertiser_id="123456789",
    campaign_id="1234567890123456",
    adgroup_name="Brand Awareness US",
    location_ids=["6252001"],
    schedule_type="SCHEDULE_FROM_NOW",
    schedule_start_time="2026-06-01 00:00:00",
    billing_event="CPM",                       # REQUIRED for REACH
    budget_mode="BUDGET_MODE_DAY",
    budget=30.0,
    optimization_goal="REACH",
    placement_type="PLACEMENT_TYPE_NORMAL",    # REQUIRED — automatic NOT supported
    placements=["PLACEMENT_TIKTOK"],           # REQUIRED
    bid_price=2.0,                             # REQUIRED
    frequency=3,                               # REQUIRED
    frequency_schedule=7,                      # REQUIRED
    operation_status="ENABLE"
)
Step 3: Upload Creative Assets

Upload one video per creative variant. Capture the returned video_id — you'll need it in Step 4.

video_response = tiktok_ads_videos_upload(
    advertiser_id="123456789",
    video_file=video_data,
    upload_type="UPLOAD_BY_FILE"
)
video_id = video_response["data"]["video_id"]

Already-uploaded videos can be reused. Use tiktok_ads_videos_search to find existing videos by name or tiktok_ads_videos_get to fetch metadata for a known video ID.

Step 4: Create the Ad
tiktok_ads_create(
    advertiser_id="123456789",
    adgroup_id="1234567890123456",
    ad_name="Summer Sale - Hero Video",
    identity_type="CUSTOMIZED_USER",   # or "AUTH_CODE" for TikTok Account spark ads
    identity_id="<advertiser_identity_id>",
    ad_format="SINGLE_VIDEO",
    video_id=video_id,
    ad_text="Limited-time summer drop. Shop now.",
    landing_page_url="https://example.com/summer",
    call_to_action="SHOP_NOW",
    operation_status="DISABLE"        # create paused, enable after review
)

Always create ads paused (operation_status="DISABLE") and only flip them to ENABLE once the user has reviewed.

Critical Parameter Rules

Common Errors & Solutions
Error Solution
Budget must be at least $50 TikTok enforces a MINIMUM $50 for campaign budgets.
Start time in past Use a future date in schedule_start_time and the current year.
TikTok API rejects optimize_goal in some contexts Both optimize_goal and optimization_goal exist in the schema, but prefer optimization_goal — it is the field TikTok validates in most objective types.
Only supports manual placement REACH requires placement_type="PLACEMENT_TYPE_NORMAL".
Bid needs to be greater than $0 Set bid_price > 0.
Please set frequency cap REACH requires both frequency and frequency_schedule.
Parameter Dependencies

TRAFFIC objective requires:

  • promotion_type="WEBSITE".
  • optimization_goal="CLICK".
  • billing_event="CPC".
  • bid_price > 0.

REACH objective requires:

  • optimization_goal="REACH".
  • billing_event="CPM".
  • placement_type="PLACEMENT_TYPE_NORMAL".
  • placements array (e.g., ["PLACEMENT_TIKTOK"]).
  • bid_price > 0.
  • frequency and frequency_schedule.

CONVERSIONS objective requires:

  • A connected TikTok Pixel and a configured conversion event.
  • optimization_goal="CONVERT" (or VALUE for value-based).
  • billing_event="OCPM".
  • pixel_id and external_action set on the ad group.

Reporting

tiktok_ads_integrated_reports_get(
    advertiser_id="123456789",
    report_type="BASIC",
    data_level="AUCTION_AD",
    dimensions=["ad_id"],   # ID-based only — NOT names
    start_date="2026-04-01",
    end_date="2026-04-30",
    metrics=["impressions", "clicks", "ctr", "spend", "cpc", "cpm"],
    page_size=20
)

Reporting Rules:

  • With the stat_time_day dimension: maximum 30-day range per call.
  • Use ID-based dimensions only (ad_id, campaign_id, adgroup_id — not names).
  • Conversion metrics (conversion, cost_per_conversion, conversion_rate, etc.) require a connected pixel and a configured conversion event.
  • data_level must match the dimension granularity: AUCTION_AD with ad_id, AUCTION_ADGROUP with adgroup_id, AUCTION_CAMPAIGN with campaign_id.

Safety Rules

Never:

  • Set ad group budgets below $20/day without warning the user.
  • Schedule a campaign with a past schedule_start_time (TikTok rejects this with a confusing error).
  • Mix REACH ad groups with PLACEMENT_TYPE_AUTOMATIC — it will silently fail validation.
  • Create ads with operation_status="ENABLE" before the user has reviewed creative + targeting.
  • Run reports with name-based dimensions — TikTok only accepts ID dimensions.
1---
2name: tiktok-ads
3description: Plan and create TikTok advertising campaigns end-to-end via the Hyper MCP, with strict parameter validation for objective-specific requirements. Use when the user wants to launch TikTok ads, set up TikTok traffic or reach campaigns, configure conversions or app-promotion campaigns, upload TikTok video creatives, or analyze TikTok ad performance. Also triggers on tiktok marketing, tiktok campaign, tiktok ppc, or tiktok ads manager.
4requires_toolkits:
5 - tiktok_marketing
6icon: tiktok_ads
7short_description: Plan and create TikTok Ads with objective-specific validation and reporting.
8---
9 
10# TikTok Ads
11 
12Strategic guide for managing TikTok advertising campaigns. Research deeply, validate parameters carefully, and guide users through the platform's strict objective-specific requirements.
13 
14This skill is for **paid TikTok ads** (the TikTok Marketing API surface).
15 
16## Requirements
17 
18- **Hyper MCP installed and connected.** [https://app.hyperfx.ai/mcp](https://app.hyperfx.ai/mcp)
19- **TikTok Marketing integration connected** (TikTok Ads Manager / Business Center) at [https://app.hyperfx.ai/apps](https://app.hyperfx.ai/apps).
20 
21If `search("tiktok_ads_advertiser_accounts_list")` does not find `tiktok_ads_advertiser_accounts_list`, stop and tell the user to enable Hyper MCP and connect TikTok Marketing.
22 
23### How to run the tools in this skill
24 
25Every tool in this skill is named by its canonical tool name. Run it with the call your surface gives you:
26 
27| Surface | Find a tool | Run it |
28| --- | --- | --- |
29| MCP client (Claude, Cursor, Codex, ChatGPT) | `search("<what you want to do>")`, then `describe("<name>")` | `call("<name>", {...})` |
30| Hyper CLI | `hyperai search "<what you want to do>"`, then `hyperai describe <name>` | `hyperai call <name> --json '{...}'` |
31 
32If a tool is not found, its integration is not connected or not enabled for the workspace: stop and tell the user which integration to connect.
33 
34## Out of scope — defer to other skills
35 
36- **Organic TikTok posting** (videos, photos, carousels — no ad spend) → [`tiktok`](../tiktok).
37- **Creative generation** (ad copy, images) → [`ad-creative-generation`](../ad-creative-generation); video creatives → [`video-generation`](../video-generation).
38- **Cross-platform campaign launches** → use this skill for TikTok, then invoke `meta-ads` / `google-ads` separately.
39 
40## Tool surface
41 
42| Tool | Purpose |
43| --- | --- |
44| `tiktok_ads_advertiser_accounts_list` | Discovery: list advertiser IDs available to the connected user. |
45| `tiktok_ads_campaigns_get`, `tiktok_ads_campaigns_create`, `tiktok_ads_campaigns_update`, `tiktok_ads_campaigns_status_update` | Campaign lifecycle. |
46| `tiktok_ads_ad_groups_list`, `tiktok_ads_ad_groups_create`, `tiktok_ads_ad_groups_update`, `tiktok_ads_ad_groups_status_update` | Ad group lifecycle. |
47| `tiktok_ads_list`, `tiktok_ads_create`, `tiktok_ads_ad_status_update`, `tiktok_ads_update` | Ad lifecycle and supported incremental content changes. Describe the selected tool before editing; Smart+ ads use their dedicated tools. |
48| `tiktok_ads_videos_upload`, `tiktok_ads_videos_get`, `tiktok_ads_videos_search` | Video creative upload + lookup. |
49| `tiktok_ads_integrated_reports_get` | Performance reporting. |
50| `tiktok_ads_custom_audiences_create`, `tiktok_ads_custom_audiences_list`, `tiktok_ads_lookalike_audiences_create` | Audience management (optional). |
51 
52## Phase 1: Account Discovery
53 
54### Initial Setup
55- Use `tiktok_ads_advertiser_accounts_list()` to get advertiser IDs.
56- If multiple accounts: ask the user to select one.
57- If single account: inform the user and proceed.
58 
59### Bid Benchmarks (optional but recommended)
60 
61Before setting bid prices, call `tiktok_ads_benchmarks_get` to retrieve industry-specific CPM/CPC benchmarks. This prevents using placeholder values that may be too low to win auctions or too high for the user's budget.
62 
63```python
64tiktok_ads_benchmarks_get(
65 advertiser_id="123456789",
66 dimensions=["industry"],
67 filtering={"industry": "292801"} # industry code from tiktok_ads_advertiser_accounts_list
68)
69```
70 
71### Available Campaign Objectives
72 
73| Objective | Best For | Key Requirements |
74| --- | --- | --- |
75| `TRAFFIC` | Drive website visits | `promotion_type="WEBSITE"`, CPC billing |
76| `CONVERSIONS` | Drive purchases / leads | Pixel ID, conversion event tracking |
77| `REACH` | Brand awareness | Manual placement only, CPM billing, frequency cap |
78| `APP_PROMOTION` | App installs | App ID, app store URL |
79| `VIDEO_VIEW` | Video engagement | Video creative assets |
80 
81## Phase 2: Campaign Creation
82 
83### Step 1: Create Campaign
84 
85**Budget Requirements:**
86- **MINIMUM $50** for campaign-level budgets (TikTok requirement).
87- `budget_mode`: `BUDGET_MODE_INFINITE` (CBO), `BUDGET_MODE_DAY`, or `BUDGET_MODE_TOTAL`.
88 
89```python
90tiktok_ads_campaigns_create(
91 advertiser_id="123456789",
92 campaign_name="Summer Sale 2026",
93 objective_type="TRAFFIC",
94 budget_mode="BUDGET_MODE_DAY",
95 budget=50.0, # MINIMUM $50/day
96 operation_status="ENABLE"
97)
98```
99 
100### Step 2: Create Ad Group
101 
102**ALWAYS REQUIRED Parameters:**
103- `advertiser_id`, `campaign_id`, `adgroup_name`.
104- `location_ids` (e.g., `["6252001"]` for US).
105- `schedule_type` and `schedule_start_time` (MUST be a future date).
106- `billing_event` (`CPC`, `CPM`, `OCPM`).
107- `budget_mode` (REQUIRED for ad groups).
108 
109**For TRAFFIC Campaigns:**
110```python
111tiktok_ads_ad_groups_create(
112 advertiser_id="123456789",
113 campaign_id="1234567890123456",
114 adgroup_name="Website Traffic - Summer Sale",
115 location_ids=["6252001"], # US
116 schedule_type="SCHEDULE_FROM_NOW",
117 schedule_start_time="2026-06-01 00:00:00", # FUTURE DATE
118 billing_event="CPC",
119 budget_mode="BUDGET_MODE_DAY",
120 budget=30.0,
121 promotion_type="WEBSITE", # REQUIRED for TRAFFIC
122 optimization_goal="CLICK", # REQUIRED (correct spelling)
123 bid_price=0.50,
124 placement_type="PLACEMENT_TYPE_AUTOMATIC",
125 operation_status="ENABLE"
126)
127```
128 
129**For REACH Campaigns:**
130```python
131tiktok_ads_ad_groups_create(
132 advertiser_id="123456789",
133 campaign_id="1234567890123456",
134 adgroup_name="Brand Awareness US",
135 location_ids=["6252001"],
136 schedule_type="SCHEDULE_FROM_NOW",
137 schedule_start_time="2026-06-01 00:00:00",
138 billing_event="CPM", # REQUIRED for REACH
139 budget_mode="BUDGET_MODE_DAY",
140 budget=30.0,
141 optimization_goal="REACH",
142 placement_type="PLACEMENT_TYPE_NORMAL", # REQUIRED — automatic NOT supported
143 placements=["PLACEMENT_TIKTOK"], # REQUIRED
144 bid_price=2.0, # REQUIRED
145 frequency=3, # REQUIRED
146 frequency_schedule=7, # REQUIRED
147 operation_status="ENABLE"
148)
149```
150 
151### Step 3: Upload Creative Assets
152 
153Upload one video per creative variant. Capture the returned `video_id` — you'll need it in Step 4.
154 
155```python
156video_response = tiktok_ads_videos_upload(
157 advertiser_id="123456789",
158 video_file=video_data,
159 upload_type="UPLOAD_BY_FILE"
160)
161video_id = video_response["data"]["video_id"]
162```
163 
164> Already-uploaded videos can be reused. Use `tiktok_ads_videos_search` to find existing videos by name or `tiktok_ads_videos_get` to fetch metadata for a known video ID.
165 
166### Step 4: Create the Ad
167 
168```python
169tiktok_ads_create(
170 advertiser_id="123456789",
171 adgroup_id="1234567890123456",
172 ad_name="Summer Sale - Hero Video",
173 identity_type="CUSTOMIZED_USER", # or "AUTH_CODE" for TikTok Account spark ads
174 identity_id="<advertiser_identity_id>",
175 ad_format="SINGLE_VIDEO",
176 video_id=video_id,
177 ad_text="Limited-time summer drop. Shop now.",
178 landing_page_url="https://example.com/summer",
179 call_to_action="SHOP_NOW",
180 operation_status="DISABLE" # create paused, enable after review
181)
182```
183 
184Always create ads paused (`operation_status="DISABLE"`) and only flip them to `ENABLE` once the user has reviewed.
185 
186## Critical Parameter Rules
187 
188### Common Errors & Solutions
189 
190| Error | Solution |
191| --- | --- |
192| Budget must be at least $50 | TikTok enforces a MINIMUM $50 for campaign budgets. |
193| Start time in past | Use a future date in `schedule_start_time` and the **current** year. |
194| TikTok API rejects `optimize_goal` in some contexts | Both `optimize_goal` and `optimization_goal` exist in the schema, but prefer `optimization_goal` — it is the field TikTok validates in most objective types. |
195| Only supports manual placement | REACH requires `placement_type="PLACEMENT_TYPE_NORMAL"`. |
196| Bid needs to be greater than $0 | Set `bid_price` > 0. |
197| Please set frequency cap | REACH requires both `frequency` and `frequency_schedule`. |
198 
199### Parameter Dependencies
200 
201**TRAFFIC objective requires:**
202- `promotion_type="WEBSITE"`.
203- `optimization_goal="CLICK"`.
204- `billing_event="CPC"`.
205- `bid_price` > 0.
206 
207**REACH objective requires:**
208- `optimization_goal="REACH"`.
209- `billing_event="CPM"`.
210- `placement_type="PLACEMENT_TYPE_NORMAL"`.
211- `placements` array (e.g., `["PLACEMENT_TIKTOK"]`).
212- `bid_price` > 0.
213- `frequency` and `frequency_schedule`.
214 
215**CONVERSIONS objective requires:**
216- A connected TikTok Pixel and a configured conversion event.
217- `optimization_goal="CONVERT"` (or `VALUE` for value-based).
218- `billing_event="OCPM"`.
219- `pixel_id` and `external_action` set on the ad group.
220 
221## Reporting
222 
223```python
224tiktok_ads_integrated_reports_get(
225 advertiser_id="123456789",
226 report_type="BASIC",
227 data_level="AUCTION_AD",
228 dimensions=["ad_id"], # ID-based only — NOT names
229 start_date="2026-04-01",
230 end_date="2026-04-30",
231 metrics=["impressions", "clicks", "ctr", "spend", "cpc", "cpm"],
232 page_size=20
233)
234```
235 
236**Reporting Rules:**
237- With the `stat_time_day` dimension: maximum 30-day range per call.
238- Use ID-based dimensions only (`ad_id`, `campaign_id`, `adgroup_id` — not names).
239- Conversion metrics (`conversion`, `cost_per_conversion`, `conversion_rate`, etc.) require a connected pixel and a configured conversion event.
240- `data_level` must match the dimension granularity: `AUCTION_AD` with `ad_id`, `AUCTION_ADGROUP` with `adgroup_id`, `AUCTION_CAMPAIGN` with `campaign_id`.
241 
242## Safety Rules
243 
244**Never:**
245- Set ad group budgets below $20/day without warning the user.
246- Schedule a campaign with a past `schedule_start_time` (TikTok rejects this with a confusing error).
247- Mix REACH ad groups with `PLACEMENT_TYPE_AUTOMATIC` — it will silently fail validation.
248- Create ads with `operation_status="ENABLE"` before the user has reviewed creative + targeting.
249- Run reports with name-based dimensions — TikTok only accepts ID dimensions.
250 

Discussion

Alternatives

Also in Posting & schedulingSee all 401 in Marketing →