struct Facebook::Proto::Campaign
- Facebook::Proto::Campaign
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- Protobuf::Message
Defined in:
cli/proto/facebook/Campaign.pb.crConstant 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
- .new(buf : Protobuf::Buffer)
- .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)
- .new(pull : JSON::PullParser)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #[]=(key : String, val)
- #[]?(key : String)
- #account_id : String | Nil
- #account_id=(account_id : String | Nil)
- #bid_strategy : String | Nil
- #bid_strategy=(bid_strategy : String | Nil)
- #boosted_object_id : String | Nil
- #boosted_object_id=(boosted_object_id : String | Nil)
- #budget_rebalance_flag : Bool | Nil
- #budget_rebalance_flag=(budget_rebalance_flag : Bool | Nil)
- #budget_remaining : String | Nil
- #budget_remaining=(budget_remaining : String | Nil)
- #buying_type : String | Nil
- #buying_type=(buying_type : String | Nil)
- #can_create_brand_lift_study : Bool | Nil
- #can_create_brand_lift_study=(can_create_brand_lift_study : Bool | Nil)
- #can_use_spend_cap : Bool | Nil
- #can_use_spend_cap=(can_use_spend_cap : Bool | Nil)
- #configured_status : String | Nil
- #configured_status=(configured_status : String | Nil)
- #created_time : Datetime | Nil
- #created_time=(created_time : Datetime | Nil)
- #daily_budget : String | Nil
- #daily_budget=(daily_budget : String | Nil)
- #effective_status : String | Nil
- #effective_status=(effective_status : String | Nil)
- #execution_options : Array(String) | Nil
- #execution_options=(execution_options : Array(String) | Nil)
- #execution_options=(execution_options : Array(String) | Nil)
- #id : String | Nil
- #id=(id : String | Nil)
- #last_budget_toggling_time : Datetime | Nil
- #last_budget_toggling_time=(last_budget_toggling_time : Datetime | Nil)
- #lifetime_budget : String | Nil
- #lifetime_budget=(lifetime_budget : String | Nil)
- #name : String | Nil
- #name=(name : String | Nil)
- #objective : String | Nil
- #objective=(objective : String | Nil)
- #pacing_type : Array(String) | Nil
- #pacing_type=(pacing_type : Array(String) | Nil)
- #pacing_type=(pacing_type : Array(String) | Nil)
- #source_campaign_id : String | Nil
- #source_campaign_id=(source_campaign_id : String | Nil)
- #spend_cap : String | Nil
- #spend_cap=(spend_cap : String | Nil)
- #start_time : Datetime | Nil
- #start_time=(start_time : Datetime | Nil)
- #status : String | Nil
- #status=(status : String | Nil)
- #stop_time : Datetime | Nil
- #stop_time=(stop_time : Datetime | Nil)
- #to_hash
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #topline_id : String | Nil
- #topline_id=(topline_id : String | Nil)
- #updated_time : Datetime | Nil
- #updated_time=(updated_time : Datetime | Nil)
Constructor Detail
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)
#