# 启用行为清算事件通知

事件通知（有时称为事件回传）是标准的 HTTP 通知，可在发生操作、点击或其他事件时通知您。事件回传可配置为将事件数据传送到您的内部报告系统，从而提供事件的最新视图。

操作结算事件将在操作结算时向指定的 URL（以及包含的任何参数）发出 HTTP 请求。了解更多关于 [*操作生命周期*](https://app.gitbook.com/s/wMLlMoFBtKJa8ptd3zaw/what-would-you-like-to-learn-about/platform-features/actions-and-payouts/understand-the-action-life-cycle-and-finance).

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

1. 从顶部导航栏，选择 ![](https://1152657667-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fb2rE79d9UhOKZQLgzSqx%2Fuploads%2Fgit-blob-1183576591b45997efe4dc81a25024640591d02a%2F245137dc972a7a7f6165b59538fcdbac8fd5bd8fee4ba9f20c1a2982c5b58b57.svg?alt=media) **\[用户资料] → 设置**. &#x20;
2. 在 *技术*，在左侧选择 **事件通知**.
3. 在 *操作结算事件*下，选择 ![](https://1152657667-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fb2rE79d9UhOKZQLgzSqx%2Fuploads%2Fgit-blob-6027673a720a6522269e1861ad0554c4a85baf29%2F9dcf248c757a094c6af27798e61091b8425a0afa1637ae0e5ba3448c5f85b1a1.svg?alt=media) **\[编辑]**.
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. 选择 **保存**.
