Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.78 KB

BidRuleset.md

File metadata and controls

39 lines (30 loc) · 1.78 KB

BidRuleset

Full ruleset record. Returned by the show / create / update / clone endpoints. The rules array is pre-sorted by priority ASC.

Properties

Name Type Description Notes
id int [optional]
userid int Owner advertiser id. [optional]
name str [optional]
paytype str Pricing flavor of every bid in the ruleset. Must match the campaign's paytype at attach-time — a `cpc` ruleset can only attach to a CPC campaign, etc. [optional]
default_tz str IANA timezone applied to any rule whose own `tz` is empty. Defaults to `UTC`. [optional]
rules List[BidRule] [optional]
is_deleted bool [optional]
created int Unix seconds. [optional]
updated int Unix seconds. [optional]
campaign_count int Count of non-deleted campaigns currently attached to this ruleset. Useful as the "edit affects N other campaigns" heads-up before a destructive change. [optional]

Example

from goadserver.models.bid_ruleset import BidRuleset

# TODO update the JSON string below
json = "{}"
# create an instance of BidRuleset from a JSON string
bid_ruleset_instance = BidRuleset.from_json(json)
# print the JSON string representation of the object
print(BidRuleset.to_json())

# convert the object into a dict
bid_ruleset_dict = bid_ruleset_instance.to_dict()
# create an instance of BidRuleset from a dict
bid_ruleset_from_dict = BidRuleset.from_dict(bid_ruleset_dict)

[Back to Model list] [Back to API list] [Back to README]