> For the complete documentation index, see [llms.txt](https://knowledgebase.offer18.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledgebase.offer18.com/zh/lian-meng-huo-ban/ji-cheng/tiktok-event-api.md).

# TikTok 事件 API

使用 TikTok 事件 API，您可以轻松发送转化数据，帮助跟踪 TikTok 上的广告表现并优化广告投放，尤其是在第三方 Cookie 被阻止时。

{% hint style="info" %}
要使用 TikTok 事件 API，您需要：一个 **像素 ID** 和一个 **访问令牌**
{% endhint %}

### 从 TikTok 广告管理获取必要数据

#### 像素 ID

1. 工具 **»** 事件
2. 转到 管理 网络事件
3. 输入 像素 名称 **»** 选择 “**事件 API**" 作为 连接 方法 **»** 下一步

<figure><img src="/files/114963d0b5c10d26136e0b60226853e4c5c4c496" alt=""><figcaption></figcaption></figure>

4. 选择 “**手动 设置 事件 API**" 在 安装 类型 **»** 下一步

<figure><img src="/files/92771f992b41e9a22e16db97b65ff67ff2473f74" alt=""><figcaption></figcaption></figure>

5. 确保您位于 广告 管理器 **»** 资产 **»** 设置

<figure><img src="/files/30ca1cfaaf5b806f545fa8fa25240a89ea5d05ec" alt=""><figcaption></figcaption></figure>

6. **像素 ID** 将在 " 之后 出现**ID:"** **»** 复制 此 **像素 ID**

#### 对于访问令牌

1. 事件管理器 **»** 设置
2. 转到 “**生成访问令牌**" 在 事件 API 部分 下

***

### 在 联盟 仪表板 中 放置 像素 ID 和 访问 令牌

1. 登录 Affiliate 仪表板 **»** 打开相应的要约&#x20;

2. 转到 Postback 部分\ <br>

   <figure><img src="/files/5bcf10efe0a231ad5dd74ed1a3d45673b28f40ed" alt=""><figcaption></figcaption></figure>

3. 在 类型 中 选择 TikTok

4. 投放地点 **像素 ID** 和 **访问令牌**&#x20;

5. 选择事件&#x20;

6. 定义 TikTok 事件

<figure><img src="/files/47e3eaa244d3b75bf2eea8f2635de9d7ed5b1a74" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}

* 对于 TikTok 点击 ID 使用 **{aff\_click\_id}**&#x20;
* 对于其他值，请使用来自的附加参数 **{aff\_sub1}** 到 **{aff\_sub5}**
  {% endhint %}

8. 转到 提交

{% hint style="info" %}
要使用现有的 **像素 ID** 和 **访问令牌**，点击 使用 现有 然后 从 下拉 列表 中 选择 像素 ID。
{% endhint %}

确保在联盟跟踪链接中使用相同的参数以接收来自 TikTok 的值。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://knowledgebase.offer18.com/zh/lian-meng-huo-ban/ji-cheng/tiktok-event-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
