TikTok Ads

TikTok ads: performance, creative, Smart+ campaigns and change history.

Connect

Add this server to your assistant with the install guide for your client.

Server URL https://tiktok.mcp.hopkin.ai

From the command line
npm install -g @hopkin/cli
hopkin auth set-key hpk_live_...
hopkin tiktok ping

Reporting

Creative

Accounts and campaigns

Change history

Connections and account

Workflows

Questions we hear most from TikTok advertisers, and what Hopkin checks to answer them. Hopkin reads your ad account and does not change it.

How did the account do?

"How did my TikTok campaigns do over the last 7 days?"

Get performance report gives spend, clicks, conversions, cost per result and reach by campaign, one row per day. Ask for ad groups or ads instead when you want to go one level down.

Why did one campaign underperform?

"Campaign X had a bad month. What happened?"

Hopkin opens the campaign with Get campaign, lists its ad groups with List ad groups, and pulls the daily trend from Get performance report to see where it slipped.

What changed before results moved?

"CPA spiked on Thursday. Did anyone touch the account?"

Get activities lists budget, bid, targeting and creative edits with before and after values, plus ads rejected in review. Hopkin lines those up against the daily numbers.

Who is converting?

"Which age groups and countries convert best?"

Get insights splits results by age, gender, country or placement, with spend and cost per conversion for each group.

Which videos hold attention?

"Which videos keep people watching, and what do they look like?"

Get creative report shows views, watch time and how many people reach 25, 50, 75 and 100 percent of each video. Preview ads puts the best ones on screen with their numbers.

Which Smart+ creatives work?

"How are the creative variants in our Smart+ campaigns doing?"

Hopkin starts with Get Smart+ overview for the roll-up, then Get Smart+ report for each video or image, caption and call to action. The standard reports only show the parent ad.

For agents

Details for chaining the TikTok tools. The tools only read the ad account. Almost every tool needs advertiser_id (TikTok's ad account ID); call tiktok_ads_list_advertisers first if you do not have it.

Choose the report

  • tiktok_ads_get_performance_report: the default for delivery and conversions. Requires level (campaign, adgroup, ad). Dates: date_preset (last_7d, last_14d, last_30d) or start_date and end_date (YYYY-MM-DD); the default is last_7d, ending yesterday, and explicit dates override the preset. Scope with campaign_id or adgroup_id. It always returns one row per entity per day (stat_time_day) and takes no dimensions parameter. Metrics are fixed: spend, impressions, clicks, cpc, cpm, ctr, reach, frequency, conversion, cost_per_conversion, conversion_rate, result and cost_per_result, plus the campaign, ad group and ad names for the level.
  • tiktok_ads_get_insights: only for splits the performance report cannot do. Requires data_level (AUCTION_ADVERTISER, AUCTION_CAMPAIGN, AUCTION_ADGROUP, AUCTION_AD) and dimensions (for example ["age_group", "country"], ["stat_time_day"]). Use report_type: "AUDIENCE" for demographic splits (age, gender, country); the default is BASIC. metrics is optional, lifetime: true ignores the date range. Without dates it covers from 2020-01-01 to today. The tool's description also lists placement as a dimension.
  • Reports page: default 20 rows, maximum 100 for performance and insights. Check pagination.hasMore and pass pagination.nextCursor as cursor with every other parameter unchanged.

Campaign deep dive

1. tiktok_ads_get_campaign with campaign_id for the settings.

2. tiktok_ads_list_ad_groups with campaign_ids: [...]; tiktok_ads_get_ad_group for one group's detail.

3. tiktok_ads_get_performance_report with level: "campaign" (or "adgroup"), the campaign_id and the date range. Do not ask for dimensions; day granularity is already there.

Listing

  • tiktok_ads_list_campaigns, tiktok_ads_list_ad_groups and tiktok_ads_list_ads take status (STATUS_ALL, STATUS_ON, STATUS_OFF, or ENABLE / DISABLE), search, and ID filters (campaign_id, campaign_ids, adgroup_ids, ad_ids). Only TikTok's primary operation status is filterable; secondary statuses such as budget exceeded are not. tiktok_ads_get_ad fetches one ad.
  • tiktok_ads_list_audiences lists custom and lookalike audiences.
  • List tools use limit (1 to 100, default 20) and cursor, read from cache and return cached and synced_at. Pass refresh: true to bypass the cache.

Change history

tiktok_ads_get_activities with advertiser_id, start_date / end_date (default: 7 days before the end date up to today, UTC), entity_type (ADVERTISER, CAMPAIGN, ADGROUP, AD, INSTANT_FORM) and entity_ids. Read coverage.complete_from first: an empty result before that date means not recorded, not that nothing changed. TikTok masks operator emails; system changes name the system. limit is 1 to 200 (default 50).

Video and creative

1. tiktok_ads_get_creative_report: one row per ad with video_play_actions, video_watched_2s, video_watched_6s, video_views_p25, video_views_p50, video_views_p75, video_views_p100, average play time, impressions, spend and cpm. Scope with campaign_id or adgroup_id. It has no date_preset: pass start_date and end_date, or get the last 7 days ending yesterday. Do not assume rows are sorted by engagement.

2. Compare completion across campaigns by calling it once per campaign_id and comparing video_views_p100 against video_play_actions.

3. tiktok_ads_preview_ads with advertiser_id, ads: [{ ad_id, metrics }] (1 to 20) and optional metric_labels.

4. Which hooks or formats win: tiktok_ads_enable_creative_intelligence with ad_account_id set to the advertiser ID and enabled: true (omit both to list enrolled advertisers; enabling changes Hopkin's analysis settings only). Then tiktok_ads_get_creative_report with group_by (format, hook_type, archetype, promise_type, visual_style, has_voiceover, has_captions, has_person_on_screen, aspect_ratio); it returns every group at once, with no cursor. tiktok_ads_get_creative_analysis with ad_id gives one ad's storyboard, transcript and frames.

Smart+

  • tiktok_ads_get_smart_plus_overview for the roll-up (dimensions required; query_lifetime: true for lifetime figures) and tiktok_ads_get_smart_plus_report for each creative material (dimensions, start_date and end_date all required; sort with sort_field, default spend, and sort_type).
  • Ad-level results from tiktok_ads_get_performance_report and tiktok_ads_get_insights can come back with a smart_plus_notice; follow it to the Smart+ tools for creative-level numbers.

Connection checks

tiktok_ads_check_auth_status verifies the connection and auth method, tiktok_ads_get_user_info returns the signed-in user's profile, and tiktok_ads_list_advertisers confirms which advertiser accounts are visible. Use these only when something fails or the user asks; otherwise call the tool you need directly.

For developers