# Rules

Rules are a part of Voluum Automizer. They are used to launch predefined actions when certain conditions are met. Sample use cases include:

• Stopping an unprofitable campaign

• Assigning a marker to profitable custom variables.

Controlling your campaigns with Rules requires you to have a supported traffic source integrated with Voluum. In order to learn how to integrate, read the Integration article.

##### Overview

Rules can be managed from the AUTOMIZER module, in the Rules tab.

From there, you can add new rules and view currently active rules.

##### How Does It Work?

Voluum Automizer constantly checks your metrics against set conditions to verify if an action defined in a rule should be launched. The metrics are checked within a given time frame. The time frame is dynamic, meaning that it changes with every check.

Consider the following example:

You create a rule at 2 P.M that sends an alert if certain conditions are met. You select the 1-day time range. After a short amount of time, Automizer will perform check to see if a condition set in this rule has been met between 2 P.M. yesterday and 2 P.M. today. If yes, then an alert will be generated. If not, Voluum will keep performing checks every short amount of time rounding up to the last full hour. After 3 P.M. it will check if a condition has been met between 3 P.M. yesterday and 3 P.M. today and so on. An alert will be generated only if a condition is met in a time range that ends at the current time.

Automizer also makes sure that it will not send an alert about the same event twice. When performing checks it will wait until conditions have been met uniquely within the selected time frame.

In order to add a Rule, perform the following steps:

1. In Voluum, go to the AUTOMIZER module.

2. In the Rules tab, click the New optimization rule button.

3. In the New optimization rule pop-up window, provide a name for your rule into the Rule name text field.

4. Select a type of element from the Create rule for menu by clicking the appropriate radio button. You can select the following types of elements:

 CampaignOfferDimension (custom variable)
5. Select the concrete element or elements from the drop-down menu that this rule will apply to. You can select up to 20 elements within one rule.

6. Select an action to launch. You can select between the following actions:

### Caution

Voluum Note: Not all actions are available for every entity.

7. (Optional) Click the Add action button to select more than one action that will be launched simultaneously (for example, pause and send an alert).

8. Select metric type. You can select the following event types or metrics:

 DimensionConversionVisitClicksRevenueROI %CR %CV % CTR %CPV %CostProfitImpressionErroreCPA
9. Select a logical condition type from the drop-down menu. You can select the following conditions:

 For the Dimension metric For the remaining metrics Is on the listIs not on the list Is lower thanIs higher than
10. Provide a value of your indicator into the text field.

11. (Optional) You can add additional conditions by clicking the Add condition button. The rule will only be launched when all conditions are met.

12. Select a time frame that this rule will be applied to from the Time frame drop-down menu. You can select the following time ranges:

 1 hour3 hours12 hours1 day 2 days7 days30 days90 days
13. Select rule frequency. You can select the following frequencies:

 15 minutes30 minutes1 hour2 hours4 hours 8 hours16 hours24 hours48 hours

### Caution

Voluum Note: Some frequencies are only available for certain time frames.

14. Click the Save button.