One row in a ruleset's priority-ordered rule list. The first rule whose conditions match the incoming RTB request supplies the campaign's bid for that auction; lower priority = walked earlier.
| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | Rule id, read-only. Every save of the ruleset (create, PATCH, clone) soft-deletes the previous rule rows and inserts the submitted ones with new ids, so stats already stamped with an old rule id stay attributed to that old row. An `id` sent in a request is accepted and ignored. | [optional] |
| priority | int | Walk order — rules are evaluated by ascending `priority`. Lower = higher priority. Ties broken by id. | [optional] |
| bid | int | Bid value in cents, interpreted per the parent ruleset's `paytype` (CPC bid per click, CPM bid per mille impressions, …). | [optional] |
| tz | str | IANA timezone the rule's daypart (`hour_start` / `hour_end`) is resolved in. Empty string = inherit the ruleset's `default_tz`. | [optional] |
| conditions | BidRuleConditions | [optional] |
from goadserver.models.bid_rule import BidRule
# TODO update the JSON string below
json = "{}"
# create an instance of BidRule from a JSON string
bid_rule_instance = BidRule.from_json(json)
# print the JSON string representation of the object
print(BidRule.to_json())
# convert the object into a dict
bid_rule_dict = bid_rule_instance.to_dict()
# create an instance of BidRule from a dict
bid_rule_from_dict = BidRule.from_dict(bid_rule_dict)