struct Facebook::Proto::Ad

Included Modules

Defined in:

cli/proto/facebook/Ad.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: :adset_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :bid_amount, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :bid_type, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :campaign_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :configured_status, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :created_time, pb_type: Datetime, crystal_type: Datetime, cast_type: Datetime?, native: false, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :demolink_hash, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :display_sequence, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :effective_status, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 12 => {name: :engagement_audience, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 13 => {name: :is_autobid, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 14 => {name: :last_updated_by_app_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 15 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 16 => {name: :preview_shareable_link, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 17 => {name: :priority, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 18 => {name: :source_ad_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 19 => {name: :status, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 20 => {name: :targeting, pb_type: Targeting, crystal_type: Targeting, cast_type: Targeting?, native: false, optional: true, repeated: false, default: nil, packed: false}, 21 => {name: :updated_time, pb_type: Datetime, crystal_type: Datetime, cast_type: Datetime?, native: false, optional: true, repeated: false, default: nil, packed: false}, 22 => {name: :audience_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 23 => {name: :date_format, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 24 => {name: :draft_adgroup_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 25 => {name: :execution_options, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 26 => {name: :include_demolink_hashes, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, 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(id : String | Nil = nil, account_id : String | Nil = nil, adset_id : String | Nil = nil, bid_amount : Int64 | Nil = nil, bid_type : String | Nil = nil, campaign_id : String | Nil = nil, configured_status : String | Nil = nil, created_time : Datetime | Nil = nil, demolink_hash : String | Nil = nil, display_sequence : Int64 | Nil = nil, effective_status : String | Nil = nil, engagement_audience : Bool | Nil = nil, is_autobid : Bool | Nil = nil, last_updated_by_app_id : String | Nil = nil, name : String | Nil = nil, preview_shareable_link : String | Nil = nil, priority : Int64 | Nil = nil, source_ad_id : String | Nil = nil, status : String | Nil = nil, targeting : Targeting | Nil = nil, updated_time : Datetime | Nil = nil, audience_id : String | Nil = nil, date_format : String | Nil = nil, draft_adgroup_id : String | Nil = nil, execution_options : Array(String) | Nil = nil, include_demolink_hashes : Bool | 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 adset_id : String | Nil #

def adset_id=(adset_id : String | Nil) #

def audience_id : String | Nil #

def audience_id=(audience_id : String | Nil) #

def bid_amount : Int64 | Nil #

def bid_amount=(bid_amount : Int64 | Nil) #

def bid_type : String | Nil #

def bid_type=(bid_type : String | Nil) #

def campaign_id : String | Nil #

def campaign_id=(campaign_id : String | 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 date_format : String | Nil #

def date_format=(date_format : String | Nil) #

def demolink_hash : String | Nil #

def demolink_hash=(demolink_hash : String | Nil) #

def display_sequence : Int64 | Nil #

def display_sequence=(display_sequence : Int64 | Nil) #

def draft_adgroup_id : String | Nil #

def draft_adgroup_id=(draft_adgroup_id : String | Nil) #

def effective_status : String | Nil #

def effective_status=(effective_status : String | Nil) #

def engagement_audience : Bool | Nil #

def engagement_audience=(engagement_audience : Bool | 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 include_demolink_hashes : Bool | Nil #

def include_demolink_hashes=(include_demolink_hashes : Bool | Nil) #

def is_autobid : Bool | Nil #

def is_autobid=(is_autobid : Bool | Nil) #

def last_updated_by_app_id : String | Nil #

def last_updated_by_app_id=(last_updated_by_app_id : String | Nil) #

def name : String | Nil #

def name=(name : String | Nil) #

def preview_shareable_link : String | Nil #

def preview_shareable_link=(preview_shareable_link : String | Nil) #

def priority : Int64 | Nil #

def priority=(priority : Int64 | Nil) #

def source_ad_id : String | Nil #

def source_ad_id=(source_ad_id : String | Nil) #

def status : String | Nil #

def status=(status : String | Nil) #

def targeting : Targeting | Nil #

def targeting=(targeting : Targeting | Nil) #

def to_hash #

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

def to_protobuf #

def updated_time : Datetime | Nil #

def updated_time=(updated_time : Datetime | Nil) #