> 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/snapchat-zhuan-hua-api.md).

# Snapchat 转化 API

使用 Snapchat API，当第三方 Cookie 被阻止时，仍可将转化数据成功传递给 Snapchat。

{% hint style="info" %}
要使用 Snapchat 转化 API，您需要： **像素 ID** 和 **访问令牌**&#x20;
{% endhint %}

### 从 Snapchat 商业账户获取必要的数据

#### 像素 ID

1. 在 Snapchat 商业账户中转到 事件管理（Event Manager）

2. 新建事件来源 **»** 选择 “**网页**" **»** 下一步

3. 选择 “**转换（Conversion）API**" 在 设置网页事件（Set Up Web Event） **»** 下一步<br>

   <div align="left"><figure><img src="/files/b7518140971259f6d1b893cf13591fa6d11f2a81" alt="" width="375"><figcaption></figcaption></figure></div>

4. 创建新像素或从下拉列表中选择已创建的像素 **»** 定义像素名称 **»** 确认

5. 创建像素后，复制像素 ID

<figure><img src="/files/77b411dda0ce167620f810c4e0aa58a4437694fc" alt=""><figcaption></figcaption></figure>

#### 访问令牌

1. 设置 Snap 像素

2. 选择已创建的像素 **»** 选择 “**创建新令牌**" 在 CAPI 访问令牌（CAPI Access Token）下 **»** 下一步<br>

   <div align="left"><figure><img src="/files/f1c0094013873eac3e0d809ff3df8e6c160dfd29" alt="" width="375"><figcaption></figcaption></figure></div>

3. 生成令牌 按钮 **»** 下一步

4. 选择 “**手动设置**" 在 事件设置方法（Event setup method） **»** 下一步

5. 根据您的需求选择事件 **»** 下一步<br>

   <figure><img src="/files/6bab8ac711ecc39be31791920defc130fffc4bba" alt=""><figcaption></figcaption></figure>

6. 复制 "**您的访问令牌**" **»** 完成

***

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

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

2. 转到 Postback 部分<br>

   <figure><img src="/files/b70cd36f518a7387dc05fd2aae91b456510d3524" alt=""><figcaption></figcaption></figure>

3. 在 类型 中选择 Snapchat

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

5. 选择事件&#x20;

6. 定义 Snapchat 事件

<figure><img src="/files/e5231825061be409e368d3a261f5cf427503061f" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}

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

8. 转到 提交

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

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


---

# 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/snapchat-zhuan-hua-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.
