> For the complete documentation index, see [llms.txt](https://support.gamoshi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.gamoshi.com/gamoshi-wiki/how-to-guides/how-to-create-a-dynamic-rule-for-retargeting.md).

# How to Create a Dynamic Rule for Retargeting

*Availability: DSP accounts and PE Enterprise accounts.*

## Overview

Dynamic rules let you create dynamic lists of IPs (for web) or Device IDs (for in-app) that can be used in future retargeting campaigns.

In the **Targeting Module → Dynamic Rules** screen, you can define a rule based on an event, for all entities or for a specific advertiser/campaign/creative/inventory, and decide:

* The maximum number of records to keep in the dynamic list.
* The time window for a record to stay in the list.
* The specific event that triggers data collection.

The resulting dynamic lists can then be selected as allow lists or block lists at the advertiser, campaign, or creative level.

***

## Creating a New Dynamic Rule

{% stepper %}
{% step %}

### Access the Dynamic Rule Creation Form

1. Navigate to the **Targeting module** in the main menu.
2. Open the **Dynamic Rules** screen.
3. Click the **+** button in the top-right corner of the table.
4. This opens the **New Dynamic Rule** form.
   {% endstep %}

{% step %}

### Complete the Information

1. Enter the **Rule Name**.
2. Choose at least one event on which the rule will save data to the dynamic list:
   * Impression
   * Video Impression
   * Click Action
   * Click Tracking
   * Conversion
   * Conversion View
   * Form Submission
   * Installation Event
3. Enter the **Interval** - the duration in days for which the data stays applicable. Default (and maximum allowed) is 30 days.
4. Choose the dynamic list type — **IP** (for web) or **Device ID** (for in-app).
5. Choose the **Maximum Number of Records** allowed in the dynamic list.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>This cannot exceed the account's dynamic lists limit (default: 1MM records; contact your account manager to increase it if needed). If the list reaches its limit, it will remove older records - even before they hit the max interval - to keep the list as current as possible.</p></div>
6. Choose the **start date** to begin collecting records, and an **end date**, if needed.
7. Choose whether the rule runs on all entities, or deactivate the **"Run on all entities"** switch and select a specific advertiser, campaign, creative, or inventory for the rule to listen to.
8. Click **Save**.
9. A dynamic list is automatically created for this rule, with its ID and name shown in the rule record.
   {% endstep %}

{% step %}

### Additional Actions

On the Dynamic Rules screen, you can:

* **Pause a rule:** Data collection stops, but the associated dynamic list remains active and retains data for the declared interval.
* **Delete a rule:** The rule must be paused first. Deleting the rule also deletes its associated dynamic list.
  {% endstep %}
  {% endstepper %}

***

## Associating a Dynamic List

Once a dynamic rule is created, data collection occurs based on the defined events and is saved into a dynamic list. These lists can be used as *Allow Lists* or *Block Lists* at the advertiser, campaign, or creative level.

{% stepper %}
{% step %}

### Go to the Lists Tab

In the relevant entity, go to the **Lists** tab.
{% endstep %}

{% step %}

### Select the List Type

Choose the list type (**IP** or **Device ID**) from the select box.
{% endstep %}

{% step %}

### Choose the Dynamic List

Choose the relevant dynamic list from the available lists for the chosen type - you can see each dynamic list's ID and name on the Dynamic Rules screen.
{% endstep %}

{% step %}

### Select the List Mode

Choose the list mode - **Allow List** or **Block List**.
{% endstep %}

{% step %}

### Apply the List

1. Click **Apply**.
2. The dynamic list is added to the entity in the selected mode.
   {% endstep %}
   {% endstepper %}

***

## Examples

**Example 1 - Retargeting shoppers who viewed a product.** An e-commerce advertiser selling sports shoes wants to re-show their ad to every user who saw it. They create a dynamic rule based on the original campaign with the **Impression** event, then associate the resulting dynamic list as an allow list with a new retargeting campaign.

**Example 2 - Retargeting users who started, but didn't complete, a form.** An advertiser running a lead-gen campaign wants to reach users who clicked through but didn't convert. They create a dynamic rule for the campaign with the **Click Action** event and a 14-day interval, then associate the dynamic list as an allow list with a retargeting campaign, while a separate rule using the **Conversion** event and a **Block List** association excludes users who have already converted.

***

## Related articles

* [Lists Types](/gamoshi-wiki/general-information/lists-types.md)
* [How to create a DSP Campaign](/gamoshi-wiki/how-to-guides/how-to-create-a-dsp-campaign.md)
* [How to Create an Advertiser](/gamoshi-wiki/how-to-guides/how-to-create-an-advertiser.md)
* [How to create a Creative](/gamoshi-wiki/how-to-guides/how-to-create-a-creative.md)
* [How to Implement Conversion Tracking](/gamoshi-wiki/how-to-guides/how-to-implement-conversion-tracking.md)
