struct
TwitterAds::Proto::Campaign
- TwitterAds::Proto::Campaign
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- Protobuf::Message
Defined in:
twitter-ads/proto/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: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :start_time, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :end_time, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :duration_in_days, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :standard_delivery, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :servable, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :funding_instrument_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :daily_budget_amount_local_micro, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :total_budget_amount_local_micro, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :reasons_not_servable, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 12 => {name: :frequency_cap, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 13 => {name: :currency, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 14 => {name: :created_at, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 15 => {name: :updated_at, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 16 => {name: :entity_status, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 17 => {name: :deleted, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 18 => {name: :account_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode) -
Fields =
{} of String => Field
Constructors
- .new(buf : Protobuf::Buffer)
- .new(id : String | Nil = nil, name : String | Nil = nil, start_time : String | Nil = nil, end_time : String | Nil = nil, duration_in_days : Int64 | Nil = nil, standard_delivery : Bool | Nil = nil, servable : Bool | Nil = nil, funding_instrument_id : String | Nil = nil, daily_budget_amount_local_micro : Int64 | Nil = nil, total_budget_amount_local_micro : Int64 | Nil = nil, reasons_not_servable : Array(String) | Nil = nil, frequency_cap : Int64 | Nil = nil, currency : String | Nil = nil, created_at : String | Nil = nil, updated_at : String | Nil = nil, entity_status : String | Nil = nil, deleted : Bool | Nil = nil, account_id : 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)
- #created_at : String | Nil
- #created_at=(created_at : String | Nil)
- #currency : String | Nil
- #currency=(currency : String | Nil)
- #daily_budget_amount_local_micro : Int64 | Nil
- #daily_budget_amount_local_micro=(daily_budget_amount_local_micro : Int64 | Nil)
- #deleted : Bool | Nil
- #deleted=(deleted : Bool | Nil)
- #duration_in_days : Int64 | Nil
- #duration_in_days=(duration_in_days : Int64 | Nil)
- #end_time : String | Nil
- #end_time=(end_time : String | Nil)
- #entity_status : String | Nil
- #entity_status=(entity_status : String | Nil)
- #frequency_cap : Int64 | Nil
- #frequency_cap=(frequency_cap : Int64 | Nil)
- #funding_instrument_id : String | Nil
- #funding_instrument_id=(funding_instrument_id : String | Nil)
- #id : String | Nil
- #id=(id : String | Nil)
- #name : String | Nil
- #name=(name : String | Nil)
- #reasons_not_servable : Array(String) | Nil
- #reasons_not_servable=(reasons_not_servable : Array(String) | Nil)
- #reasons_not_servable=(reasons_not_servable : Array(String) | Nil)
- #servable : Bool | Nil
- #servable=(servable : Bool | Nil)
- #standard_delivery : Bool | Nil
- #standard_delivery=(standard_delivery : Bool | Nil)
- #start_time : String | Nil
- #start_time=(start_time : String | Nil)
- #to_hash
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #total_budget_amount_local_micro : Int64 | Nil
- #total_budget_amount_local_micro=(total_budget_amount_local_micro : Int64 | Nil)
- #updated_at : String | Nil
- #updated_at=(updated_at : String | Nil)
Constructor Detail
def self.new(id : String | Nil = nil, name : String | Nil = nil, start_time : String | Nil = nil, end_time : String | Nil = nil, duration_in_days : Int64 | Nil = nil, standard_delivery : Bool | Nil = nil, servable : Bool | Nil = nil, funding_instrument_id : String | Nil = nil, daily_budget_amount_local_micro : Int64 | Nil = nil, total_budget_amount_local_micro : Int64 | Nil = nil, reasons_not_servable : Array(String) | Nil = nil, frequency_cap : Int64 | Nil = nil, currency : String | Nil = nil, created_at : String | Nil = nil, updated_at : String | Nil = nil, entity_status : String | Nil = nil, deleted : Bool | Nil = nil, account_id : String | Nil = nil)
#