The execution_spec
of a rule determines the action that applies to all objects that pass evaluation. Schedule and Trigger Based Rules support different actions. Actions are listed under execution_type
.
Execution Type | Description |
---|---|
| Sends a jeweled notification to this rule's creator, or the list of users specified in Supported Evaluation Types: |
| Pauses the objects. Supported Evaluation Types: |
| Unpauses the objects. Supported Evaluation Types: |
| Changes the budgets based on a defined Supported Evaluation Types: |
| Changes the budgets based on a defined Supported Evaluation Types: |
| Changes the bids based on a defined Supported Evaluation Types: |
| Pauses the currently active ad, and activates the next ad by ID in the ad set. Requires an Supported Evaluation Types: |
Pauses the objects that match the evaluation criteria, and rebalances their budgets towards the rest based on a defined Supported Evaluation Types: | |
| Sends a ping to the application's subscription via Webhooks. See Trigger Based Rules for more details on setup. Supported Evaluation Types: |
execution_options
You may need to provide additional information to perform some of these actions. The execution_spec
provides an optional execution_options
array to specify these additional parameters. The array contains a list of execution_option
objects, which are dictionaries with keys of field
, value
, and operator
just like Evaluation Spec's filter
objects.
Trigger Based Rules do not require any execution options.
Below, see supported execution options, which execution_type
values they support, and how to structure them. Currently, the only supported operator for all options is EQUAL
.
Execution Option Field | Description |
---|---|
| Jeweled notification recipients for Supported Execution Types: ALL Value (Example): |
Specifies Supported Execution Types: Value (Example): Ad Rules Change Spec Examples | |
| Supports different options that determine how budgets are rebalanced. See example for more details. Supported Execution Types: Value (Example): Rebalance Budget Ad Rules |
| Specifies the maximum number of times a budget/bid change action is taken for each individual ad object for the rule. If not specified, it defaults to no limit. Supported Execution Types: Value (Example): int (123) |
| Specifies the minimum amount of minutes until the same action can be taken on an object by a rule. For example, if value is Supported Execution Types: Value (Example): int (123) |
user_ids
If user_ids
are provided for Schedule Based Rules:
user_ids
This summary email aggregates notifications for all rules to which each user is subscribed. If no actions are performed by any of the subscribed rules, the user does not get an email for that day.