struct Facebook::Proto::Ad
- Facebook::Proto::Ad
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- Protobuf::Message
Defined in:
cli/proto/facebook/Ad.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: :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
- .new(buf : Protobuf::Buffer)
- .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)
- .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)
- #adset_id : String | Nil
- #adset_id=(adset_id : String | Nil)
- #audience_id : String | Nil
- #audience_id=(audience_id : String | Nil)
- #bid_amount : Int64 | Nil
- #bid_amount=(bid_amount : Int64 | Nil)
- #bid_type : String | Nil
- #bid_type=(bid_type : String | Nil)
- #campaign_id : String | Nil
- #campaign_id=(campaign_id : String | Nil)
- #configured_status : String | Nil
- #configured_status=(configured_status : String | Nil)
- #created_time : Datetime | Nil
- #created_time=(created_time : Datetime | Nil)
- #date_format : String | Nil
- #date_format=(date_format : String | Nil)
- #demolink_hash : String | Nil
- #demolink_hash=(demolink_hash : String | Nil)
- #display_sequence : Int64 | Nil
- #display_sequence=(display_sequence : Int64 | Nil)
- #draft_adgroup_id : String | Nil
- #draft_adgroup_id=(draft_adgroup_id : String | Nil)
- #effective_status : String | Nil
- #effective_status=(effective_status : String | Nil)
- #engagement_audience : Bool | Nil
- #engagement_audience=(engagement_audience : Bool | 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)
- #include_demolink_hashes : Bool | Nil
- #include_demolink_hashes=(include_demolink_hashes : Bool | Nil)
- #is_autobid : Bool | Nil
- #is_autobid=(is_autobid : Bool | Nil)
- #last_updated_by_app_id : String | Nil
- #last_updated_by_app_id=(last_updated_by_app_id : String | Nil)
- #name : String | Nil
- #name=(name : String | Nil)
- #preview_shareable_link : String | Nil
- #preview_shareable_link=(preview_shareable_link : String | Nil)
- #priority : Int64 | Nil
- #priority=(priority : Int64 | Nil)
- #source_ad_id : String | Nil
- #source_ad_id=(source_ad_id : String | Nil)
- #status : String | Nil
- #status=(status : String | Nil)
- #targeting : Targeting | Nil
- #targeting=(targeting : Targeting | Nil)
- #to_hash
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #updated_time : Datetime | Nil
- #updated_time=(updated_time : Datetime | Nil)