struct TwitterAds::Proto::LineItem

Included Modules

Defined in:

twitter-ads/proto/line_item.pb.cr

Constant Summary

FIELDS = {1 => {name: :bid_strategy, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :advertiser_user_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :placements, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 5 => {name: :start_time, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :bid_amount_local_micro, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :advertiser_domain, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :target_cpa_local_micro, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :primary_web_event_tag, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :pay_by, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :product_type, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 12 => {name: :end_time, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 13 => {name: :duration_in_days, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 14 => {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}, 15 => {name: :objective, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 16 => {name: :id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 17 => {name: :entity_status, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 18 => {name: :goal, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 19 => {name: :frequency_cap, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 20 => {name: :categories, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 21 => {name: :currency, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 22 => {name: :created_at, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 23 => {name: :updated_at, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 24 => {name: :campaign_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 25 => {name: :creative_source, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 26 => {name: :deleted, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 27 => {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

Class Method Summary

Instance Method Summary

Constructor Detail

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

def self.new(bid_strategy : String | Nil = nil, advertiser_user_id : String | Nil = nil, name : String | Nil = nil, placements : Array(String) | Nil = nil, start_time : String | Nil = nil, bid_amount_local_micro : Int64 | Nil = nil, advertiser_domain : String | Nil = nil, target_cpa_local_micro : String | Nil = nil, primary_web_event_tag : String | Nil = nil, pay_by : String | Nil = nil, product_type : String | Nil = nil, end_time : String | Nil = nil, duration_in_days : Int64 | Nil = nil, total_budget_amount_local_micro : Int64 | Nil = nil, objective : String | Nil = nil, id : String | Nil = nil, entity_status : String | Nil = nil, goal : String | Nil = nil, frequency_cap : Int64 | Nil = nil, categories : Array(String) | Nil = nil, currency : String | Nil = nil, created_at : String | Nil = nil, updated_at : String | Nil = nil, campaign_id : String | Nil = nil, creative_source : String | Nil = nil, deleted : Bool | Nil = nil, account_id : 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 advertiser_domain : String | Nil #

def advertiser_domain=(advertiser_domain : String | Nil) #

def advertiser_user_id : String | Nil #

def advertiser_user_id=(advertiser_user_id : String | Nil) #

def bid_amount_local_micro : Int64 | Nil #

def bid_amount_local_micro=(bid_amount_local_micro : Int64 | Nil) #

def bid_strategy : String | Nil #

def bid_strategy=(bid_strategy : String | Nil) #

def campaign_id : String | Nil #

def campaign_id=(campaign_id : String | Nil) #

def categories : Array(String) | Nil #

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

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

def created_at : String | Nil #

def created_at=(created_at : String | Nil) #

def creative_source : String | Nil #

def creative_source=(creative_source : String | Nil) #

def currency : String | Nil #

def currency=(currency : String | Nil) #

def deleted : Bool | Nil #

def deleted=(deleted : Bool | Nil) #

def duration_in_days : Int64 | Nil #

def duration_in_days=(duration_in_days : Int64 | Nil) #

def end_time : String | Nil #

def end_time=(end_time : String | Nil) #

def entity_status : String | Nil #

def entity_status=(entity_status : String | Nil) #

def frequency_cap : Int64 | Nil #

def frequency_cap=(frequency_cap : Int64 | Nil) #

def goal : String | Nil #

def goal=(goal : String | Nil) #

def id : String | Nil #

def id=(id : String | Nil) #

def name : String | Nil #

def name=(name : String | Nil) #

def objective : String | Nil #

def objective=(objective : String | Nil) #

def pay_by : String | Nil #

def pay_by=(pay_by : String | Nil) #

def placements : Array(String) | Nil #

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

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

def primary_web_event_tag : String | Nil #

def primary_web_event_tag=(primary_web_event_tag : String | Nil) #

def product_type : String | Nil #

def product_type=(product_type : String | Nil) #

def start_time : String | Nil #

def start_time=(start_time : String | Nil) #

def target_cpa_local_micro : String | Nil #

def target_cpa_local_micro=(target_cpa_local_micro : String | Nil) #

def to_hash #

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

def to_protobuf #

def total_budget_amount_local_micro : Int64 | Nil #

def total_budget_amount_local_micro=(total_budget_amount_local_micro : Int64 | Nil) #

def updated_at : String | Nil #

def updated_at=(updated_at : String | Nil) #