> 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/partner/zh/ni-xiang-liao-jie-shen-me/platform-features/action-management/event-notifications-and-postbacks/enable-action-clearing-event-notifications.md).

# 启用操作结算事件通知

事件通知（有时也称为事件回调）是标准的 HTTP 通知，可在发生操作、点击或其他事件时通知您。您可以配置事件回调，将事件数据发送到内部报告系统，从而实时了解事件情况。

操作结算事件会在操作结算时向指定 URL（以及其中包含的任何参数）发送 HTTP 请求。详细了解 [*操作生命周期*](https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/platform-features/actions-and-payouts/understand-the-action-life-cycle-and-finance.md).

## 设置操作结算事件通知

1. 在顶部导航栏中，选择 ![](https://1152657667-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fb2rE79d9UhOKZQLgzSqx%2Fuploads%2FhyR4iWDS0fO9ZcKFGf82%2FUser%20profile.svg?alt=media\&token=281d8f1b-b9c5-4208-a0a2-a078f54e0eb6) **\[用户个人资料] → 设置**.
2. 在 *技术*下方的左侧，选择 [**事件通知**](https://app.impact.com/secure/mediapartner/accountSettings/view-edit-pingback-settings-flow.ihtml).
3. 在 *操作结算事件*旁边，选择 ![](https://1152657667-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fb2rE79d9UhOKZQLgzSqx%2Fuploads%2FZMLVDhHLGefqRDHaIWTm%2FEdit.svg?alt=media\&token=1f1168ae-5bd3-456c-a366-904d0ecf00cb) **\[编辑]**.
4. 输入您的 **服务器 URL**。这是 impact.com 用来发送回调的 URL。
5. 选择您偏好的 HTTP 方法。
   * 如果选择 **POST**，接下来需要输入请求正文。下面是一个示例，展示如何为 JSON 格式映射各个数据点。每组键值对中的键应取自您自己的系统设置，值则应为您选择的、由 impact.com 提供的对应数据点，并填写在大括号 { } 中。

     ```programlisting
     {"Action Life Cycle Postback",
     "campaign_id": "{CampaignId}",
     "action_tracker_id": "{ActionTrackerId}",
     "media_partner_id": "{MediaPartnerId}",
     "campaign_name": "{CampaignName}",
     "action_tracker_name": "{ActionTrackerName}",
     "media_partner_name": "{MediaPartnerName}",
     "action_type": "{ActionType}",
     "referring_type": "{ReferringType}",
     "action_id": "{ActionId}",
     "status": "{Status}",
     "status_detail": "{StatusDetail}",
     "ad_id": "{AdId}",
     "payout": "{Payout}",
     "delta_payout": "{DeltaPayout}",
     "intended_payout": "{IntendedPayout}",
     "amount": "{Amount}",
     "delta_amount": "{DeltaAmo
     unt}",
     "intended_amount": "{IntendedAmount}",
     "currency": "{Currency}",
     "original_currency": "{OriginalCurrency}",
     "original_amount": "{OriginalAmount}",
     "event_date": "{EventDate}",
     "creation_date": "{CreationDate}",
     "locking_date": "{LockingDate}",
     "cleared_date": "{ClearedDate}",
     "referring_domain": "{ReferringDomain}",
     "landing_page_url": "{LandingPageUrl}",
     "ref_customer_area": "{RefCustomerArea}",
     "ref_customer_city": "{RefCustomerCity}",
     "ref_customer_region": "{RefCustomerRegion}",
     "ref_customer_country": "{RefCustomerCountry}",
     "ref_click_id": "{RefClickId}",
     "shared_id": "{SharedId}",
     "sub_id1": "{SubId1}",
     "sub_id2": "{SubId2}",
     "sub_id3": "{SubId3}",
     "text_1": "{Text1}",
     "text_2": "{Text2}",
     "promo_code": "{PromoCode}",
     "items": [{join(items, i, 
     "\{\"sku\":\"{i.sku}\",
     \"item_price\":{i.amt},
     \"category\":\"{i.cat}\",
     \"quantity\":{i.qty},
     \"cartamt\":{i.cartamt},\"rbt\":\"{i.rbt}\",
     \"name\":\"{i.name}\",
     \"category_list\":\"{i.itemlist}\"\}")}]\}
     ```
   * 输入正文后，选择一个 *正文格式* 方法是选择 ![](https://1152657667-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fb2rE79d9UhOKZQLgzSqx%2Fuploads%2Fgit-blob-590bdf4e1ffbcc1fe86ad456bebab6a28c64af1f%2Ffd6e4291628446bb1fe27a831f7874b256a28cc84833d72cce2e73b94641edb7.svg?alt=media) **\[单选按钮]**.
     * **查询字符串**
     * **JSON**
     * **XML**
   * 查看 impact.com 的部分 [可用正文参数](https://docs.google.com/spreadsheets/d/1omPZ6CG0guvMPh6EdbYg7BczHqJOrtuZ2zXnTtgfhrY/edit?usp=sharing).
   * 找不到需要的值？请联系您的发布商客户经理（或 [联系支持团队](https://app.impact.com/support/portal.ihtml?createTicket=true)).
6. 选择 **操作清除事件** ![](https://1152657667-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fb2rE79d9UhOKZQLgzSqx%2Fuploads%2Fgit-blob-500f241687470b7f2c6cf43ec949c2463692cd19%2F0323174d38f3b23e95ed28b6734e6af44b570eec2eecb0ea9f2e0f064962b5fb.svg?alt=media)）。这些设置均为可选项。
   * 输入一个 **HTTP 标头** 以便在您与服务器之间传递附加信息。
   * 输入一个 **最短延迟** （秒），设置事件发生后、发送回传之前的等待时间。
   * 输入 **最大请求数** ——这是系统每秒应发出的最大重试请求数。
   * 输入您希望回传的 **成功响应** 内容。
   * 输入您希望回传的 **错误响应** 内容。
7. 选择 **保存**.


---

# 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/partner/zh/ni-xiang-liao-jie-shen-me/platform-features/action-management/event-notifications-and-postbacks/enable-action-clearing-event-notifications.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.
