struct Facebook::Proto::Campaign

Included Modules

Defined in:

cli/proto/facebook/Campaign.pb.cr

Constant Summary

FIELDS = {1 => {name: :id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :account_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :bid_strategy, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :boosted_object_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :budget_rebalance_flag, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :budget_remaining, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :buying_type, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :can_create_brand_lift_study, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :can_use_spend_cap, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :configured_status, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :created_time, pb_type: Datetime, crystal_type: Datetime, cast_type: Datetime?, native: false, optional: true, repeated: false, default: nil, packed: false}, 12 => {name: :daily_budget, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 13 => {name: :effective_status, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 14 => {name: :last_budget_toggling_time, pb_type: Datetime, crystal_type: Datetime, cast_type: Datetime?, native: false, optional: true, repeated: false, default: nil, packed: false}, 15 => {name: :lifetime_budget, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 16 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 17 => {name: :objective, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 18 => {name: :pacing_type, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 19 => {name: :source_campaign_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 20 => {name: :spend_cap, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 21 => {name: :start_time, pb_type: Datetime, crystal_type: Datetime, cast_type: Datetime?, native: false, optional: true, repeated: false, default: nil, packed: false}, 22 => {name: :status, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 23 => {name: :stop_time, pb_type: Datetime, crystal_type: Datetime, cast_type: Datetime?, native: false, optional: true, repeated: false, default: nil, packed: false}, 24 => {name: :topline_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 25 => {name: :updated_time, pb_type: Datetime, crystal_type: Datetime, cast_type: Datetime?, native: false, optional: true, repeated: false, default: nil, packed: false}, 26 => {name: :execution_options, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
Fields = {} of String => Field

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(buf : Protobuf::Buffer) #

def self.new(id : String | Nil = nil, account_id : String | Nil = nil, bid_strategy : String | Nil = nil, boosted_object_id : String | Nil = nil, budget_rebalance_flag : Bool | Nil = nil, budget_remaining : String | Nil = nil, buying_type : String | Nil = nil, can_create_brand_lift_study : Bool | Nil = nil, can_use_spend_cap : Bool | Nil = nil, configured_status : String | Nil = nil, created_time : Datetime | Nil = nil, daily_budget : String | Nil = nil, effective_status : String | Nil = nil, last_budget_toggling_time : Datetime | Nil = nil, lifetime_budget : String | Nil = nil, name : String | Nil = nil, objective : String | Nil = nil, pacing_type : Array(String) | Nil = nil, source_campaign_id : String | Nil = nil, spend_cap : String | Nil = nil, start_time : Datetime | Nil = nil, status : String | Nil = nil, stop_time : Datetime | Nil = nil, topline_id : String | Nil = nil, updated_time : Datetime | Nil = nil, execution_options : Array(String) | Nil = nil) #

def self.new(pull : JSON::PullParser) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def []=(key : String, val) #

def []?(key : String) #

def account_id : String | Nil #

def account_id=(account_id : String | Nil) #

def bid_strategy : String | Nil #

def bid_strategy=(bid_strategy : String | Nil) #

def boosted_object_id : String | Nil #

def boosted_object_id=(boosted_object_id : String | Nil) #

def budget_rebalance_flag : Bool | Nil #

def budget_rebalance_flag=(budget_rebalance_flag : Bool | Nil) #

def budget_remaining : String | Nil #

def budget_remaining=(budget_remaining : String | Nil) #

def buying_type : String | Nil #

def buying_type=(buying_type : String | Nil) #

def can_create_brand_lift_study : Bool | Nil #

def can_create_brand_lift_study=(can_create_brand_lift_study : Bool | Nil) #

def can_use_spend_cap : Bool | Nil #

def can_use_spend_cap=(can_use_spend_cap : Bool | Nil) #

def configured_status : String | Nil #

def configured_status=(configured_status : String | Nil) #

def created_time : Datetime | Nil #

def created_time=(created_time : Datetime | Nil) #

def daily_budget : String | Nil #

def daily_budget=(daily_budget : String | Nil) #

def effective_status : String | Nil #

def effective_status=(effective_status : String | Nil) #

def execution_options : Array(String) | Nil #

def execution_options=(execution_options : Array(String) | Nil) #

def execution_options=(execution_options : Array(String) | Nil) #

def id : String | Nil #

def id=(id : String | Nil) #

def last_budget_toggling_time : Datetime | Nil #

def last_budget_toggling_time=(last_budget_toggling_time : Datetime | Nil) #

def lifetime_budget : String | Nil #

def lifetime_budget=(lifetime_budget : String | Nil) #

def name : String | Nil #

def name=(name : String | Nil) #

def objective : String | Nil #

def objective=(objective : String | Nil) #

def pacing_type : Array(String) | Nil #

def pacing_type=(pacing_type : Array(String) | Nil) #

def pacing_type=(pacing_type : Array(String) | Nil) #

def source_campaign_id : String | Nil #

def source_campaign_id=(source_campaign_id : String | Nil) #

def spend_cap : String | Nil #

def spend_cap=(spend_cap : String | Nil) #

def start_time : Datetime | Nil #

def start_time=(start_time : Datetime | Nil) #

def status : String | Nil #

def status=(status : String | Nil) #

def stop_time : Datetime | Nil #

def stop_time=(stop_time : Datetime | Nil) #

def to_hash #

def to_protobuf(io : IO, embedded = false) #

def to_protobuf #

def topline_id : String | Nil #

def topline_id=(topline_id : String | Nil) #

def updated_time : Datetime | Nil #

def updated_time=(updated_time : Datetime | Nil) #