> 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/ja/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>

A *処理コード* は、アクションの状態を初期化するか、更新時にアクションの状態を変更するカスタムコードです。

多くの場合、処理コードは、アクションが変更（修正、承認、取り消しなど）された理由をカスタム定義するために使用されます。期限の定めがないロックや、アクションの承認期間が長いケースでは、処理コードによってパートナーへの透明性を高め、保留中のアクションのレポート状況の更新を確認できるようにします。

処理コードは、impact.comへのコンバージョン送信時や、アクションの更新（修正および取り消し）の送信時に使用します。

#### **処理コードを作成する**

1. 上部のナビゲーションバーで、 ![](https://1458456015-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://1458456015-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://1458456015-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://1458456015-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://1458456015-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://1458456015-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://1458456015-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://1458456015-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>

この例では、CSVファイルを使った変更と取り消しに対応する、標準的なオンライン販売／CPAイベントタイプ向けに処理コードを設定します。

要件は3つあります。

* 商品返品によってアクションが変更されたことを示す、カスタム処理コードを作成します。
* このコードを使ってアクションを変更する際、注文内の商品が返品されたためであることをパートナーに通知します。
* アクションの状態は、impact.com上で「変更済み」と表示されます。

**処理コードの作成**

1. 上部のナビゲーションバーで、 ![](https://1458456015-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://1458456015-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. ［ **保存**］を選択します。これで、この処理コードをアクション変更時の `Reason` として使用できます（イベントタイプの設定に応じて、 [CSVファイル経由](https://help.impact.com/brand/ja/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経由](https://help.impact.com/brand/ja/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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
