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

# アドボケイトプログラムのルールにおける日付ベースのアクションの解説

日付ベースのアクションを使うと、1つのプログラムルールで、紹介に関するアクティビティが発生した時期に応じて異なるアクションを適用できます。たとえば、プロモーション期間中の購入には、それ以外の時期の購入とは異なるアクションを適用できます。

ルールの作成時、または既存のルールの編集時に日付ベースのアクションを有効にする方法については、 [Advocateでプログラムルールを設定する](https://help.impact.com/brand/ja/what-would-you-like-to-learn-about/advocate-program/getting-started-with-advocate/advocate-program-rules-explained.md).

## 日付ベースのアクションの仕組み

ルールが実行されるかどうかは、トリガーと条件によって決まります。日付ベースのアクションによって、ルールのスケジュールやトリガーが変更されることはありません。

ルールが実行されると、impact.comは選択した紹介日またはアクティビティの日付を、ルール上の各アクションの日付範囲と照合します。

* 選択した日付がアクションの日付範囲内にある場合、そのアクションが適用されます。
* 日付ベースのアクションを有効にすると、日付範囲が設定されていない既存のアクションがルールのデフォルトアクションになります。選択した日付がいずれのアクションの日付範囲にも含まれない場合、デフォルトアクションが適用されます。

{% hint style="success" %}
**注：** アクションの日付範囲は、そのアクションが適用される時期を制限するものであり、ルールをトリガーできる時期を制限するものではありません。トリガーと条件が満たされると、ルールは引き続き実行されます。
{% endhint %}

日付ベースのアクションは、ルール条件の *時間* とは異なります。 *時間* 条件は、ルール自体がトリガーされるかどうかを決定します。日付ベースのアクションは、ルールがトリガーされた後にどのアクションを適用するかを決定します。

## どの日付を評価できますか？

日付ベースのアクションを設定するときに選択できる日付は、ルールのトリガーによって異なります。

| ルールのトリガー             | 評価できる日付                             |
| -------------------- | ----------------------------------- |
| 紹介の開始                | 紹介開始日                               |
| 友達が購入する              | 紹介開始日、紹介コンバージョン日、または購入日             |
| 友達がアクションを実行する        | 紹介開始日、紹介コンバージョン日、またはアクション日          |
| 友達のセグメントやフィールドが変更される | 紹介開始日、紹介コンバージョン日、またはフィールドやセグメントの変更日 |

{% hint style="warning" %}
**重要：** ルールで設定できるデフォルトアクションは、アドボケイト向けと友達向けにそれぞれ1つだけです。同じ対象に複数のデフォルトアクションが設定されている場合は、余分なアクションを削除または変更してください。変更するまで、 *確認* 画面に検証エラーが表示されます。
{% 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/ja/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.
