The catalogue/TikTok Ads

TikTok Ads

app.tiktok-ads

Report on TikTok ad campaigns and pause, enable or re-budget them

API keymarketingRead the source↗
Version1.0.1
Categorymarketing
AuthAPI key
Tools9
Transportstdio
LicenceMIT
01

What it does

The app, in its own words.

TikTok Ads through the TikTok API for Business (Marketing API v1.3): list ad accounts, campaigns, ad groups and ads, run performance and audience reports, pause or enable delivery and change campaign or ad group budgets. Enabling delivery and budget changes affect spend and ask for approval.

tiktoktiktok-adsadsadvertisingmarketingcampaignsreportsppc
02

Tools

9 tools the agent can call.

Every one is declared with typed parameters and returns structured results, so the host can render them instead of narrating them.

  • enable-deliveryEnable (unpause) TikTok campaigns, ad groups or ads (operation_status ENABLE), up to 20 of one level per call. AFFECTS SPEND: enabled items start delivering and spending the advertiser's money right away, within their budgets. An ad only delivers when its ad group and campaign are enabled too. Returns { success, level, operationStatus, updatedIds, notUpdatedIds? }.
  • get-advertiser-infoGet details of up to 100 TikTok ad accounts. Returns { advertisers: [{ advertiserId, name, status, currency, timezone, displayTimezone, balance, company, country, role, createTime }] }. Budgets and report spend are in the account currency; report dates follow the account time zone.
  • get-reportRun a synchronous TikTok Ads report (report/integrated/get) for one ad account: spend, impressions, clicks, conversions and other metrics, broken down by dimensions. Returns { columns, rows (arrays in column order), page, pageSize, totalNumber, totalPage, hasMore, totals? }; metric values are numbers (null when TikTok reports "-"), ids stay strings. Dates are YYYY-MM-DD in the account time zone (see get-advertiser-info), at most 365 days apart. BASIC report dimensions: campaign_id, adgroup_id, ad_id, advertiser_id, stat_time_day, stat_time_hour (TikTok limits hourly data to short ranges). AUDIENCE report adds gender, age, country_code, platform, language, ac and others, combined with one id dimension. Common metrics: spend, impressions, clicks, ctr, cpc, cpm, reach, frequency, conversion, cost_per_conversion, conversion_rate, result, cost_per_result, video_play_actions, video_watched_2s, video_watched_6s, likes, comments, shares, follows; at the campaign/ad group/ad level also campaign_name, adgroup_name, ad_name. TikTok rejects unknown or unsupported names with a [BAD_REQUEST] that names them.
  • list-ad-groupsList the ad groups of one TikTok ad account, optionally only those of some campaigns. Returns { adGroups: [{ adgroupId, name, campaignId, operationStatus, secondaryStatus, budget, budgetMode, optimizationGoal, bidType, bidPrice, billingEvent, scheduleStartTime, scheduleEndTime, createTime, modifyTime }], page, pageSize, totalNumber, totalPage, hasMore }.
  • list-adsList the ads of one TikTok ad account, optionally only those of some campaigns or ad groups. Returns { ads: [{ adId, name, adgroupId, campaignId, operationStatus, secondaryStatus, adFormat, adText, landingPageUrl, createTime, modifyTime }], page, pageSize, totalNumber, totalPage, hasMore }.
  • list-advertisersList the TikTok ad accounts (advertisers) the access token is authorized for. Returns { advertisers: [{ advertiserId, name }], count }. Start here: every other tool needs an advertiserId (a long numeric string). Use get-advertiser-info for currency, time zone, status and balance. Needs the TikTok developer app id and secret as system secrets.
  • list-campaignsList the campaigns of one TikTok ad account, one page at a time. Returns { campaigns: [{ campaignId, name, objectiveType, operationStatus (ENABLE or DISABLE), secondaryStatus, budget, budgetMode, createTime, modifyTime }], page, pageSize, totalNumber, totalPage, hasMore }. Budget is in the account currency; budgetMode BUDGET_MODE_INFINITE means no campaign budget. For spend and results use get-report.
  • pause-deliveryPause TikTok campaigns, ad groups or ads (operation_status DISABLE), up to 20 of one level per call. Paused items stop spending; enable-delivery turns them back on. Returns { success, level, operationStatus, updatedIds, notUpdatedIds? }.
  • update-budgetSet the budget of one TikTok campaign or ad group, in the account currency (see get-advertiser-info). AFFECTS SPEND: a higher budget lets TikTok spend more of the advertiser's money. The budget mode (daily or total) stays as it is; items with BUDGET_MODE_INFINITE have no budget to set, and ad groups of a campaign with campaign budget optimization take their budget from the campaign. Reads the current budget first and returns { success, level, id, budgetMode, previousBudget, budget } so the change can be reverted. TikTok enforces minimums and how often a budget can change.
03

Auth and permissions

What it asks for.

Declared in the manifest, in advance. The app cannot reach anything it did not ask for here.

System secrets

TIKTOK_APP_IDTIKTOK_APP_SECRET

Installation secrets

TIKTOK_ACCESS_TOKEN

Reading further

The manifest and the source for TikTok Ads live in the repository, alongside the other apps.

Read the source↗Back to the catalogue→

TikTok Ads · Agent Apps