> 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 请求。了解更多关于 [*动作生命周期*](/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
     {"动作生命周期回传",
     "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.
