← 返回目录
📁 Marketing API › Ad Measurement › Guides › TikTok App Events SDK › Compliance best practices

年龄限制

根据 TikTok 商业产品(数据)条款第 2.8 条的定义,任何关于儿童的数据不得分享给 TikTok for Business。TikTok 应用事件 SDK 必须以合规的方式配置: - 如果您的应用主要面向儿童,必须设置年龄限制。未经年龄限制通过,TikTok 应用事件 SDK 不得初始化,数据也不得传输至 TikTok for Business。 - 如果您的应用不是主要面向儿童,则可以在没有年龄限制的情况下使用 TikTok 应用事件 SDK。然而,在所有情况下,关于儿童的数据仍不得传输给 TikTok for Business。

在通过年龄限制前延迟事件收集

Android

当 TikTok 应用事件 SDK 初始化时,将收集事件并在本地存储,直到调用 startTrack(),之后存储的事件将被发送到 TikTok。如果您的应用主要面向儿童,必须完全延迟事件的收集和存储,直到通过年龄限制。

在通过年龄限制前:

(code curl http)
// Disable auto start and do not fully initialize the SDK at this point
TTConfig ttConfig = new TTConfig(context)
                    .disableAutoStart(); // disable sending data here
...
(/code)

在通过年龄限制后:

(code curl http)
// After the age gate is passed, fully initialize and start the sdk.
TikTokBusinessSdk.initializeSdk(ttConfig); // initialize the SDK
TiktokBusiness.startTrack(); // start sending data
(/code)

iOS

当 TikTok 应用事件 SDK 初始化时,将收集事件并在本地存储,直到调用 setTrackingEnabled(),之后存储的事件将被发送到 TikTok。如果您的应用主要面向儿童,必须完全延迟事件的收集和存储,直到通过年龄限制。

在通过年龄限制前:

(code curl http)
// Disable auto start and do not fully initialize the SDK at this point
let config = TikTokConfig.init(appId: "APP_ID", tiktokAppId: TIKTOK_APP_ID)
config?.disableTracking(); // disable measurement here
...
(/code)

在通过年龄限制后:

(code curl http)
// After the age gate is passed, fully initialize and start the sdk.
TikTokBusiness.initializeSdk(config); // initialize the SDK
TikTokBusiness.setTrackingEnabled(true); // start sending data
(/code)

Unity

当 TikTok 应用事件 SDK 初始化时,将收集事件并在本地存储,直到调用 StartTrack(),之后存储的事件将被发送到 TikTok。如果您的应用主要面向儿童,必须完全延迟事件的收集和存储,直到通过年龄限制。

在通过年龄限制前:

(code curl http)
// Disable auto start and do not fully initialize the SDK at this point
TikTokConfig config = new TikTokConfig("iOS_appId", "iOS_tiktokAppId", "Android_appId", "Android_tiktokAppId");
config.DisableTrack(); // disable measurement here
...
(/code)

在通过年龄限制后:

(code curl http)
// After the age gate is passed, fully initialize and start the sdk.
TikTokBusinessSDK.InitializeSdk(config); // initialize the SDK
TikTokBusinessSDK.StartTrack(); // start sending data
(/code)

内容来源:TikTok API for Business 官方文档 · 本地归档

在接这个接口时卡住了?
Stuck wiring this API into production? We build ad-delivery tooling on these platforms — campaign automation, reporting pipelines, error-handling and migration between API versions.
联系我们 · Talk to us 每日平台更新简报 →