> For the complete documentation index, see [llms.txt](https://help.impact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/platform-features/tracking/set-up-tracking/manage-disposition-codes.md).

# 管理处理代码

<a href="https://pxa.impact.com/student/activity/1117597?sid=0c0e3e5c-54c9-4435-9bee-ebcdccb7f292&#x26;sid_i=0?utm_source=app.impact.com&#x26;utm_medium=owned-platform&#x26;utm_content=tra-350&#x26;utm_campaign=help-center" class="button primary">参加 PXA 课程</a>

一个 *处置代码* 是一种自定义代码，用于初始化某个动作的状态，或在该动作更新后更新其状态。

在大多数情况下，处置代码用于定义动作发生变化的自定义原因（即已修改、已批准或已撤销）。在开放式锁定或较长的动作审批窗口等场景中，处置代码可以为合作伙伴提供更多透明度，使其能够看到待处理动作的报告状态更新。

在向 impact.com 提交转化，或提交动作更新（修改和撤销）时，会使用处置代码。

#### **创建处置代码**

1. 在顶部导航栏中，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2F210dEQa93qyQgoJDkieL%2FUser%20profile.svg?alt=media\&token=f84c5b17-fae4-4a30-990a-9de5e57a150b) **\[用户资料] → 设置**.
2. 在 *项目* 在右侧列中，找到 *跟踪* 部分，然后选择 **事件类型**.
3. 找到要添加处置代码的事件类型，然后选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FMLtRUwWz0pujlfmYWOgg%2FMoreVN.svg?alt=media\&token=03a3c355-a347-4207-baf7-c44fadf6d080) **\[菜单] → 处置代码**.
4. 在 *处置代码* 页面右上角，选择 **添加处置代码**.
5. 根据您的需求配置处置代码：
   * **处置代码：** 选择使用标准代码还是创建您自己的代码。处置代码区分大小写——使用时，您必须提交此处提供的确切值。
   * **处置名称：** 为此处置代码提供一个名称，它将显示在该事件类型的处置代码页面上。
   * **状态转换：** 选择此处置将应用于该动作的报告状态——合作伙伴将能够看到这一点。
   * **动作变更：** 选择应用此处置代码时该动作将发生的变化。
6. 选择 **保存** 以创建代码。

#### **删除处置代码**

1. 在顶部导航栏中，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2F210dEQa93qyQgoJDkieL%2FUser%20profile.svg?alt=media\&token=f84c5b17-fae4-4a30-990a-9de5e57a150b) **\[用户资料] → 设置**.
2. 在 *项目* 在右侧列中，找到 *跟踪* 部分，然后选择 **事件类型**.
3. 找到要添加处置代码的事件类型，然后选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FMLtRUwWz0pujlfmYWOgg%2FMoreVN.svg?alt=media\&token=03a3c355-a347-4207-baf7-c44fadf6d080) **\[菜单] → 处置代码**.
4. 在 *处置代码* 页面上，找到您要删除的处置代码。
5. 在 *操作* 列下，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-df93ac0f80fc5cece7983980a5ce3fbcf19aabce%2F3ef9d737089bc07dbb7e4fd41a97edfbaec261e4f55ab3a1666f3daf957f69c3.svg?alt=media) **\[下拉菜单] → 删除**.
6. 在警告弹窗中，选择 **我了解，继续**.

#### **编辑处置代码**

1. 在顶部导航栏中，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2F210dEQa93qyQgoJDkieL%2FUser%20profile.svg?alt=media\&token=f84c5b17-fae4-4a30-990a-9de5e57a150b) **\[用户资料] → 设置**.
2. 在 *项目* 列（右侧），找到 *跟踪* 部分，然后选择 **事件类型**.
3. 找到要添加处置代码的事件类型，然后选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FMLtRUwWz0pujlfmYWOgg%2FMoreVN.svg?alt=media\&token=03a3c355-a347-4207-baf7-c44fadf6d080) **\[菜单] → 处置代码**.
4. 在 *处置代码* 页面上，找到您要编辑的处置代码。
5. 在 *操作* 列下，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-df93ac0f80fc5cece7983980a5ce3fbcf19aabce%2F3ef9d737089bc07dbb7e4fd41a97edfbaec261e4f55ab3a1666f3daf957f69c3.svg?alt=media) **\[下拉菜单] → 编辑**.
6. 进行编辑，然后选择 **保存**.

<details>

<summary>示例配置</summary>

在此示例中，我们将为一个标准的在线销售/CPA 事件类型配置处置代码，该类型通过 CSV 文件接收修改和撤销。

我们有三个要求：

* 我们希望有一个自定义处置代码，用于表示某个动作因商品退货而被修改。
* 当我们使用此代码修改动作时，我们希望通知合作伙伴这是因为订单中的某件商品被退回。
* 该动作状态将在 impact.com 中显示为“已修改”。

**创建处置代码**

1. 在顶部导航栏中，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2F210dEQa93qyQgoJDkieL%2FUser%20profile.svg?alt=media\&token=f84c5b17-fae4-4a30-990a-9de5e57a150b) **\[用户资料] → 设置**.
2. 在 *项目* 列（右侧），找到 *跟踪* 部分，然后选择 **事件类型**.
3. 在事件类型列表中，我们需要找到要修改的事件类型。在此示例中，我们将修改我们唯一的 *销售* 事件类型的计划条款。
4. 在“操作”列下，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-df93ac0f80fc5cece7983980a5ce3fbcf19aabce%2F3ef9d737089bc07dbb7e4fd41a97edfbaec261e4f55ab3a1666f3daf957f69c3.svg?alt=media) **\[下拉菜单] → 处置代码**.
5. 在 *处置代码* 页面，右上角选择 **添加处置代码**.
6. 从这里开始，我们根据需求配置处置代码。
7. 选择 **保存**。现在，此处置代码可用作 `原因` 在修改动作时（无论是 [通过 CSV 文件](/brand/zh/what-would-you-like-to-learn-about/platform-features/submit-and-modify-conversion-data/batch-modify-conversion-data/batch-modifications-and-reversals-overview.md) 或 [通过 API](/brand/zh/what-would-you-like-to-learn-about/platform-features/submit-and-modify-conversion-data/batch-modify-conversion-data/batch-process-reversals-via-api-web-services-overview.md)，具体取决于我们的事件类型配置）。

</details>


---

# 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, and the optional `goal` query parameter:

```
GET https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/platform-features/tracking/set-up-tracking/manage-disposition-codes.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
