> 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/advocate-program/advocate-program-settings/date-based-actions-in-advocate-program-rules-explained.md).

# Advocate Program 规则中的基于日期的操作说明

基于日期的操作可让单条计划规则根据推荐活动发生的时间执行不同操作。例如，您可以对促销期间的购买设置奖励操作，与其他时间的购买采用不同的操作。

要在创建规则或编辑现有规则时启用基于日期的操作，请参阅 [在 Advocate 中设置计划规则](https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/advocate-program/getting-started-with-advocate/advocate-program-rules-explained.md).

## 基于日期的操作如何运作

规则的触发条件和条件决定规则是否触发。基于日期的操作不会安排规则，也不会更改其触发条件。

规则触发时，impact.com 会将选定的推荐日期或活动日期与规则中每项操作的日期范围进行比较：

* 如果选定日期在某项操作的日期范围内，则会应用该操作。
* 启用基于日期的操作后，规则中原有的不带日期范围的操作将成为默认操作。如果选定日期不在任何操作的日期范围内，则会应用默认操作。

{% hint style="success" %}
**注意：** 操作的日期范围限定的是该操作的适用时间，而不是规则可触发的时间。只要满足触发条件和规则条件，规则仍会触发。
{% endhint %}

基于日期的操作不同于 *Time* 规则条件。A *Time* 条件决定规则是否触发。基于日期的操作则决定规则触发后应用哪项操作。

## 可以评估哪些日期？

配置基于日期的操作时可以选择的日期，取决于规则的触发条件。

| 规则触发条件           | 可评估的日期                    |
| ---------------- | ------------------------- |
| 推荐开始             | 推荐开始日期                    |
| 好友完成购买           | 推荐开始日期、推荐转化日期或购买日期        |
| 好友执行操作           | 推荐开始日期、推荐转化日期或操作日期        |
| 好友的细分群组和/或字段发生变化 | 推荐开始日期、推荐转化日期或字段或细分群组变更日期 |

{% hint style="warning" %}
**重要提示：** 一条规则只能为推荐人设置一个默认操作，为好友设置一个默认操作。如果规则中同一对象有多个默认操作，请删除或修改多余的操作。 *检查* 屏幕会显示验证错误，直到您完成上述操作。
{% endhint %}

## 示例

某条规则的触发条件为 *好友完成购买*，其基于日期的触发条件为 *购买日期* 以下日期和操作名称仅作示例。

| 操作                 | 日期范围                | 适用条件：好友的购买日期为……         |
| ------------------ | ------------------- | ----------------------- |
| 节日促销（奖励和电子邮件）      | 12 月 1 日至 12 月 31 日 | 在 12 月 1 日至 12 月 31 日期间 |
| 标准奖励（奖励和电子邮件），默认操作 | 无                   | 其他任何日期                  |

促销期间的购买使用促销操作，其他时间的购买使用默认操作。此规则同时适用于新规则和现有规则：

* **新规则：** 创建规则时，添加促销操作及其日期范围，并设置默认操作。
* **现有规则：** 启用基于日期的操作后，规则原有的不带日期范围的操作将成为默认操作。随后，您可以添加带日期范围的促销操作。


---

# 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/zh/what-would-you-like-to-learn-about/advocate-program/advocate-program-settings/date-based-actions-in-advocate-program-rules-explained.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.
