A Rule that will be triggered based on certain criteria defined on ad objects, and perform custom actions.
Field | Description |
---|---|
id numeric string | ID of the rule |
account_id numeric string | ID of the ad account that owns the rule |
created_by | The user who created the rule |
created_time datetime | Time when the rule was created |
name string | The friendly name of a rule, optional for inline rules |
schedule_spec | Specifies the schedule with which a rule will be evaluated |
status string | The status of a rule |
updated_time datetime | The time when the rule was last updated. |
Edge | Description |
---|---|
The execution history associated with this rule. Each entry represents a distinct run of the rule and provides any actions that may have been taken on any ad objects. |
Error | Description |
---|---|
368 | The action attempted has been deemed abusive or is otherwise disallowed |
100 | Invalid parameter |
/{ad_rule_id}
.Parameter | Description |
---|---|
evaluation_spec Object | Defines the evaluation spec upon which a rule will be executed |
execution_spec Object | Defines the execution spec upon which a rule will be executed |
name string | The friendly name of a rule, optional for inline rules |
schedule_spec Object | Specifies the schedule with which a rule will be evaluated |
status enum {ENABLED, DISABLED, DELETED, HAS_ISSUES} | The status of a rule |
success
: bool, Error | Description |
---|---|
200 | Permissions error |
2703 | Rules that turn off ads can't have cost conditions. You need to change the rule's conditions or action. |
100 | Invalid parameter |
/{ad_rule_id}
.success
: bool, Error | Description |
---|---|
200 | Permissions error |
100 | Invalid parameter |