Token导航 LogoToken导航

Agent Skill · 开发

tiktok-ads-cli(tiktok ADS CLI 广告)

tiktok-ads-cli 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

tiktok-ads-cli 是开发类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描有提醒项,按安装量在开发类的 21,746 个 Skill 里排第 9,914。

总安装 2,493周安装 106GitHub Stars 公开资料未说明下载 873核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tiktok-ads-cli(tiktok ADS CLI 广告)
来源仓库:https://github.com/bin-huang/tiktok-ads-cli
安装命令:
openclaw skills install tiktok-ads-cli
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install tiktok-ads-cli

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

tiktok-ads-cli 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。适用于 TikTok 广告数据分析、效果报告与批量管理。支持广告系列、组与单条广告的统计指标提取。

安装命令为 openclaw skills install tiktok-ads-cli,需确认广告账户 API 权限。使用前请核实数据权限范围,避免越权访问敏感商业信息。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install tiktok-ads-cli;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

tiktok-ads-cli 怎么安装?

在终端执行 openclaw skills install tiktok-ads-cli。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

tiktok-ads-cli 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

tiktok-ads-cli 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

tiktok-ads-cli 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

tiktok-ads-cli 用的人多吗?

公开数据是累计安装 2,493 次,近一周安装 106 次,下载 873 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

tiktok-ads-cli 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
tiktok-ads-cli

tiktok ADS CLI 广告 · 本页

2,493—接触敏感数据MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
tiktok-ads-cli
description
>
Triggers
TikTok Ads", "TikTok ad performance", "TikTok campaign stats",

TikTok Ads CLI Skill

You have access to tiktok-ads-cli, a read-only CLI for the TikTok Marketing API (v1.3). Use it to query advertiser accounts, pull synchronous and async performance reports, inspect ad creatives and assets, manage custom and lookalike audiences, and check pixel tracking.

Quick start

# Check if the CLI is available
tiktok-ads-cli --help

# Get advertiser account info
tiktok-ads-cli advertiser 7000000000000

# List campaigns
tiktok-ads-cli campaigns 7000000000000

If the CLI is not installed, install it:

npm install -g tiktok-ads-cli

Authentication

The CLI requires a TikTok OAuth access token. Credentials are resolved in this order:

  1. --credentials <path> flag (per-command)
  2. Environment variable: TIKTOK_ADS_ACCESS_TOKEN (also reads TIKTOK_ADS_APP_ID and TIKTOK_ADS_SECRET if set)
  3. Auto-detected file: ~/.config/tiktok-ads-cli/credentials.json

The credentials JSON file requires only access_token. The app_id and secret fields are optional:

{
  "access_token": "YOUR_ACCESS_TOKEN"
}

Before running any command, verify credentials are configured by running tiktok-ads-cli advertiser <id>. If it fails with a credentials error, ask the user to set up authentication.

Entity hierarchy

Advertiser Account
 +-- Campaign
 |    +-- Ad Group
 |         +-- Ad -> Creative
 +-- Custom Audience
 +-- Lookalike Audience
 +-- Pixel

Advertiser IDs are numeric strings (e.g., 7000000000000). Every command that operates on entities within an account takes the advertiser ID as its first positional argument.

Monetary values

The TikTok Marketing API returns monetary values (e.g., spend, cpc, cpm) as decimal strings in the major currency unit (e.g., "12.34" means $12.34). No conversion needed.

Output format

All commands output pretty-printed JSON by default. Use --format compact for single-line JSON (useful for piping).

Listing commands use page-based pagination with --page and --page-size options. Check the page_info object in the response for total_number, page, and total_page to determine if more pages exist.

Commands reference

Advertiser info

# Get advertiser account details (supports comma-separated IDs for multiple accounts)
tiktok-ads-cli advertiser 7000000000000
tiktok-ads-cli advertiser 7000000000000,7000000000001

Campaign hierarchy

# List campaigns
tiktok-ads-cli campaigns 7000000000000
tiktok-ads-cli campaigns 7000000000000 --status CAMPAIGN_STATUS_ENABLE
tiktok-ads-cli campaigns 7000000000000 --page 2 --page-size 50

# List ad groups
tiktok-ads-cli adgroups 7000000000000
tiktok-ads-cli adgroups 7000000000000 --campaign-ids 123,456
tiktok-ads-cli adgroups 7000000000000 --status ADGROUP_STATUS_DELIVERY_OK
tiktok-ads-cli adgroups 7000000000000 --campaign-ids 123 --status ADGROUP_STATUS_ENABLE

# List ads
tiktok-ads-cli ads 7000000000000
tiktok-ads-cli ads 7000000000000 --campaign-ids 123,456
tiktok-ads-cli ads 7000000000000 --adgroup-ids 789
tiktok-ads-cli ads 7000000000000 --status AD_STATUS_DELIVERY_OK
tiktok-ads-cli ads 7000000000000 --campaign-ids 123 --adgroup-ids 789 --status AD_STATUS_ENABLE
campaigns options
OptionDescriptionDefault
--status <status>Filter by primary status (e.g., CAMPAIGN_STATUS_ENABLE, CAMPAIGN_STATUS_DISABLE)all
--page <n>Page number1
--page-size <n>Page size (max 1000)100
adgroups options
OptionDescriptionDefault
--campaign-ids <ids>Filter by campaign IDs (comma-separated)all
--status <status>Filter by primary statusall
--page <n>Page number1
--page-size <n>Page size (max 1000)100
ads options
OptionDescriptionDefault
--campaign-ids <ids>Filter by campaign IDs (comma-separated)all
--adgroup-ids <ids>Filter by ad group IDs (comma-separated)all
--status <status>Filter by primary statusall
--page <n>Page number1
--page-size <n>Page size (max 1000)100

Synchronous report

The report command is the primary tool for performance analysis. All options marked required must be provided.

# Campaign-level daily report
tiktok-ads-cli report 7000000000000 \
  --report-type BASIC \
  --data-level AUCTION_CAMPAIGN \
  --dimensions campaign_id,stat_time_day \
  --metrics spend,impressions,clicks,ctr,cpc \
  --start-date 2026-03-01 \
  --end-date 2026-03-15

# Ad-level report
tiktok-ads-cli report 7000000000000 \
  --report-type BASIC \
  --data-level AUCTION_AD \
  --dimensions ad_id,stat_time_day \
  --metrics spend,impressions,clicks,conversion,cost_per_conversion \
  --start-date 2026-03-01 \
  --end-date 2026-03-15

# With filtering
tiktok-ads-cli report 7000000000000 \
  --report-type BASIC \
  --data-level AUCTION_CAMPAIGN \
  --dimensions campaign_id \
  --metrics spend,impressions \
  --start-date 2026-03-01 \
  --end-date 2026-03-15 \
  --filters '[{"field_name":"campaign_ids","filter_type":"IN","filter_value":"123,456"}]'
report options
OptionRequiredDescriptionDefault
--report-type <type>yesBASIC, AUDIENCE, PLAYABLE_MATERIAL, CATALOG--
--data-level <level>yesAUCTION_ADVERTISER, AUCTION_CAMPAIGN, AUCTION_ADGROUP, AUCTION_AD--
--dimensions <dims>yesComma-separated (e.g., campaign_id,stat_time_day)--
--metrics <metrics>yesComma-separated (e.g., spend,impressions,clicks,ctr,cpc)--
--start-date <date>yesStart date (YYYY-MM-DD)--
--end-date <date>yesEnd date (YYYY-MM-DD)--
--filters <json>noFiltering conditions as JSON stringnone
--page <n>noPage number1
--page-size <n>noPage size (max 1000)100
Common dimensions

Dimensions documented in CLI help text: ad_id, adgroup_id, campaign_id, stat_time_day, stat_time_hour, country_code

The CLI passes dimension names directly to the TikTok Business API without validation. Audience dimensions (e.g., gender, age) are used with --report-type AUDIENCE.

Common metrics

Metrics documented in CLI help text: spend, impressions, clicks, ctr, cpc, cpm, conversion, cost_per_conversion

The CLI passes metric names directly to the TikTok Business API without validation. Refer to the TikTok Marketing API docs for the full list of available metrics (e.g., video engagement, ROAS, social interaction metrics).

Async report

For large reports, create an async task and check its status later.

# Create async report task
tiktok-ads-cli async-report 7000000000000 \
  --report-type BASIC \
  --dimensions ad_id,stat_time_day \
  --start-date 2026-03-01 \
  --end-date 2026-03-15 \
  --metrics spend,impressions,clicks

# Check task status (poll until complete; returns download URL when done)
tiktok-ads-cli report-status 7000000000000 task_abc123
async-report options
OptionRequiredDescription
--report-type <type>yesBASIC, AUDIENCE, PLAYABLE
--dimensions <dims>yesComma-separated dimension names
--start-date <date>yesStart date (YYYY-MM-DD)
--end-date <date>yesEnd date (YYYY-MM-DD)
--metrics <metrics>noComma-separated metric names

Note: The async report always uses data_level: AUCTION_AD internally.

Audience report

# Audience analysis by gender and age
tiktok-ads-cli audience-report 7000000000000 \
  --start-date 2026-03-01 \
  --end-date 2026-03-15 \
  --dimensions gender,age

# Audience report filtered by campaigns
tiktok-ads-cli audience-report 7000000000000 \
  --start-date 2026-03-01 \
  --end-date 2026-03-15 \
  --dimensions gender,age \
  --campaign-ids 123,456
audience-report options
OptionRequiredDescription
--start-date <date>yesStart date (YYYY-MM-DD)
--end-date <date>yesEnd date (YYYY-MM-DD)
--dimensions <dims>noDimensions: gender, age, country_code, language, platform, etc.
--campaign-ids <ids>noFilter by campaign IDs (comma-separated)

Creative assets

# List image assets
tiktok-ads-cli images 7000000000000
tiktok-ads-cli images 7000000000000 --page 2 --page-size 50

# List video assets
tiktok-ads-cli videos 7000000000000
tiktok-ads-cli videos 7000000000000 --page 2 --page-size 50

# List ad creatives (creative details for ads)
tiktok-ads-cli ad-creatives 7000000000000
tiktok-ads-cli ad-creatives 7000000000000 --ad-ids 123,456
images / videos options
OptionDescriptionDefault
--page <n>Page number1
--page-size <n>Page size (max 1000)100
ad-creatives options
OptionDescriptionDefault
--ad-ids <ids>Filter by ad IDs (comma-separated)all
--page <n>Page number1
--page-size <n>Page size100

Audiences

# List custom audiences
tiktok-ads-cli custom-audiences 7000000000000
tiktok-ads-cli custom-audiences 7000000000000 --page 2 --page-size 50

# List lookalike audiences (a type of custom audience)
tiktok-ads-cli lookalike-audiences 7000000000000
tiktok-ads-cli lookalike-audiences 7000000000000 --page 2 --page-size 50
custom-audiences / lookalike-audiences options
OptionDescriptionDefault
--page <n>Page number1
--page-size <n>Page size100

Pixels

# List all pixels
tiktok-ads-cli pixels 7000000000000
tiktok-ads-cli pixels 7000000000000 --page 2

# Get a specific pixel by code
tiktok-ads-cli pixel 7000000000000 PIXEL_CODE_123
pixels options
OptionDescriptionDefault
--page <n>Page number1
--page-size <n>Page size100

The pixel command takes no additional options -- just the advertiser ID and the pixel code.

Workflow guidance

When the user asks for a quick overview

  1. Run tiktok-ads-cli campaigns <advertiser-id> to see all campaigns
  2. Use tiktok-ads-cli report with --report-type BASIC --data-level AUCTION_CAMPAIGN for a performance snapshot
  3. Present the data (report spend is already in major currency units, no conversion needed)

When the user asks for deep analysis

  1. Start with a campaign-level report to see overall performance
  2. Use --data-level AUCTION_ADGROUP to identify top/bottom ad groups
  3. Drill down with --data-level AUCTION_AD for underperforming ad groups
  4. Use audience-report with --dimensions gender,age for demographic analysis
  5. Use --dimensions stat_time_day for daily trends to spot anomalies
  6. Cross-reference with ad-creatives to review creative content

When the user asks about creative performance

  1. Run a report with --data-level AUCTION_AD to get ad-level metrics
  2. Use ads to list ads and find their IDs
  3. Use ad-creatives to inspect creative details
  4. Use images and videos to browse available creative assets

When the user asks about audience reach

  1. Use custom-audiences to see existing custom audiences
  2. Use lookalike-audiences to check lookalike audience setups
  3. Use audience-report with demographic dimensions to see who is being reached

When the user asks about conversion tracking

  1. Run pixels to list active TikTok Pixels
  2. Use pixel to get details about a specific pixel
  3. Check the report with conversions and cost_per_conversion metrics

When the user asks for large date-range reports

  1. Use async-report to create an async task (avoids timeout for large datasets)
  2. Use report-status to poll for completion
  3. The completed task response will include a download URL

Error handling

  • Authentication errors -- ask the user to verify their access token; run tiktok-ads-cli advertiser <id> to test
  • "No credentials found" -- ask the user to set up one of: --credentials flag, TIKTOK_ADS_ACCESS_TOKEN env var, or ~/.config/tiktok-ads-cli/credentials.json
  • Empty report results -- check the date range, data level, and whether the account had active ads in the period
  • API error codes -- the CLI surfaces the TikTok API error message; common issues include invalid advertiser IDs, expired tokens, or insufficient permissions
  • Page out of range -- check page_info.total_page in the response to avoid requesting pages beyond the total

API documentation references

平台分布

OpenClaw

97.16%
按下载量换算848

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills