struct Facebook::Proto::AdAccount

Included Modules

Defined in:

cli/proto/facebook/AdAccount.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: :account_status, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :age, pb_type: :double, crystal_type: Float64, cast_type: Float64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :amount_spent, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :balance, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :business_city, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :business_country_code, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :business_name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :business_state, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :business_street, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 12 => {name: :business_street2, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 13 => {name: :business_zip, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 14 => {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}, 15 => {name: :capabilities, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 16 => {name: :created_time, pb_type: Datetime, crystal_type: Datetime, cast_type: Datetime?, native: false, optional: true, repeated: false, default: nil, packed: false}, 17 => {name: :currency, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 18 => {name: :disable_reason, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 19 => {name: :end_advertiser, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 20 => {name: :end_advertiser_name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 21 => {name: :fb_entity, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 22 => {name: :funding_source, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 23 => {name: :has_migrated_permissions, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 24 => {name: :has_page_authorized_adaccount, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 25 => {name: :io_number, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 26 => {name: :is_attribution_spec_system_default, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 27 => {name: :is_direct_deals_enabled, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 28 => {name: :is_in_3ds_authorization_enabled_market, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 29 => {name: :is_in_middle_of_local_entity_migration, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 30 => {name: :is_notifications_enabled, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 31 => {name: :is_personal, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 32 => {name: :is_prepay_account, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 33 => {name: :is_tax_id_required, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 34 => {name: :line_numbers, pb_type: :int64, crystal_type: Int64, cast_type: Array(Int64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 35 => {name: :media_agency, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 36 => {name: :min_campaign_group_spend_cap, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 37 => {name: :min_daily_budget, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 38 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 39 => {name: :offsite_pixels_tos_accepted, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 40 => {name: :owner, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 41 => {name: :partner, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 42 => {name: :show_checkout_experience, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 43 => {name: :spend_cap, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 44 => {name: :tax_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 45 => {name: :tax_id_status, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 46 => {name: :tax_id_type, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 47 => {name: :timezone_id, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 48 => {name: :timezone_name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 49 => {name: :timezone_offset_hours_utc, pb_type: :double, crystal_type: Float64, cast_type: Float64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 50 => {name: :user_role, 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(id : String | Nil = nil, account_id : String | Nil = nil, account_status : Int64 | Nil = nil, age : Float64 | Nil = nil, amount_spent : String | Nil = nil, balance : String | Nil = nil, business_city : String | Nil = nil, business_country_code : String | Nil = nil, business_name : String | Nil = nil, business_state : String | Nil = nil, business_street : String | Nil = nil, business_street2 : String | Nil = nil, business_zip : String | Nil = nil, can_create_brand_lift_study : Bool | Nil = nil, capabilities : Array(String) | Nil = nil, created_time : Datetime | Nil = nil, currency : String | Nil = nil, disable_reason : Int64 | Nil = nil, end_advertiser : String | Nil = nil, end_advertiser_name : String | Nil = nil, fb_entity : Int64 | Nil = nil, funding_source : String | Nil = nil, has_migrated_permissions : Bool | Nil = nil, has_page_authorized_adaccount : Bool | Nil = nil, io_number : String | Nil = nil, is_attribution_spec_system_default : Bool | Nil = nil, is_direct_deals_enabled : Bool | Nil = nil, is_in_3ds_authorization_enabled_market : Bool | Nil = nil, is_in_middle_of_local_entity_migration : Bool | Nil = nil, is_notifications_enabled : Bool | Nil = nil, is_personal : Int64 | Nil = nil, is_prepay_account : Bool | Nil = nil, is_tax_id_required : Bool | Nil = nil, line_numbers : Array(Int64) | Nil = nil, media_agency : String | Nil = nil, min_campaign_group_spend_cap : String | Nil = nil, min_daily_budget : Int64 | Nil = nil, name : String | Nil = nil, offsite_pixels_tos_accepted : Bool | Nil = nil, owner : String | Nil = nil, partner : String | Nil = nil, show_checkout_experience : Bool | Nil = nil, spend_cap : String | Nil = nil, tax_id : String | Nil = nil, tax_id_status : Int64 | Nil = nil, tax_id_type : String | Nil = nil, timezone_id : Int64 | Nil = nil, timezone_name : String | Nil = nil, timezone_offset_hours_utc : Float64 | Nil = nil, user_role : 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 account_status : Int64 | Nil #

def account_status=(account_status : Int64 | Nil) #

def age : Float64 | Nil #

def age=(age : Float64 | Nil) #

def amount_spent : String | Nil #

def amount_spent=(amount_spent : String | Nil) #

def balance : String | Nil #

def balance=(balance : String | Nil) #

def business_city : String | Nil #

def business_city=(business_city : String | Nil) #

def business_country_code : String | Nil #

def business_country_code=(business_country_code : String | Nil) #

def business_name : String | Nil #

def business_name=(business_name : String | Nil) #

def business_state : String | Nil #

def business_state=(business_state : String | Nil) #

def business_street : String | Nil #

def business_street2 : String | Nil #

def business_street2=(business_street2 : String | Nil) #

def business_street=(business_street : String | Nil) #

def business_zip : String | Nil #

def business_zip=(business_zip : String | Nil) #

def can_create_brand_lift_study : Bool | Nil #

def can_create_brand_lift_study=(can_create_brand_lift_study : Bool | Nil) #

def capabilities : Array(String) | Nil #

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

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

def created_time : Datetime | Nil #

def created_time=(created_time : Datetime | Nil) #

def currency : String | Nil #

def currency=(currency : String | Nil) #

def disable_reason : Int64 | Nil #

def disable_reason=(disable_reason : Int64 | Nil) #

def end_advertiser : String | Nil #

def end_advertiser=(end_advertiser : String | Nil) #

def end_advertiser_name : String | Nil #

def end_advertiser_name=(end_advertiser_name : String | Nil) #

def fb_entity : Int64 | Nil #

def fb_entity=(fb_entity : Int64 | Nil) #

def funding_source : String | Nil #

def funding_source=(funding_source : String | Nil) #

def has_migrated_permissions : Bool | Nil #

def has_migrated_permissions=(has_migrated_permissions : Bool | Nil) #

def has_page_authorized_adaccount : Bool | Nil #

def has_page_authorized_adaccount=(has_page_authorized_adaccount : Bool | Nil) #

def id : String | Nil #

def id=(id : String | Nil) #

def io_number : String | Nil #

def io_number=(io_number : String | Nil) #

def is_attribution_spec_system_default : Bool | Nil #

def is_attribution_spec_system_default=(is_attribution_spec_system_default : Bool | Nil) #

def is_direct_deals_enabled : Bool | Nil #

def is_direct_deals_enabled=(is_direct_deals_enabled : Bool | Nil) #

def is_in_3ds_authorization_enabled_market : Bool | Nil #

def is_in_3ds_authorization_enabled_market=(is_in_3ds_authorization_enabled_market : Bool | Nil) #

def is_in_middle_of_local_entity_migration : Bool | Nil #

def is_in_middle_of_local_entity_migration=(is_in_middle_of_local_entity_migration : Bool | Nil) #

def is_notifications_enabled : Bool | Nil #

def is_notifications_enabled=(is_notifications_enabled : Bool | Nil) #

def is_personal : Int64 | Nil #

def is_personal=(is_personal : Int64 | Nil) #

def is_prepay_account : Bool | Nil #

def is_prepay_account=(is_prepay_account : Bool | Nil) #

def is_tax_id_required : Bool | Nil #

def is_tax_id_required=(is_tax_id_required : Bool | Nil) #

def line_numbers : Array(Int64) | Nil #

def line_numbers=(line_numbers : Array(Int64) | Nil) #

def line_numbers=(line_numbers : Array(Int64) | Nil) #

def media_agency : String | Nil #

def media_agency=(media_agency : String | Nil) #

def min_campaign_group_spend_cap : String | Nil #

def min_campaign_group_spend_cap=(min_campaign_group_spend_cap : String | Nil) #

def min_daily_budget : Int64 | Nil #

def min_daily_budget=(min_daily_budget : Int64 | Nil) #

def name : String | Nil #

def name=(name : String | Nil) #

def offsite_pixels_tos_accepted : Bool | Nil #

def offsite_pixels_tos_accepted=(offsite_pixels_tos_accepted : Bool | Nil) #

def owner : String | Nil #

def owner=(owner : String | Nil) #

def partner : String | Nil #

def partner=(partner : String | Nil) #

def show_checkout_experience : Bool | Nil #

def show_checkout_experience=(show_checkout_experience : Bool | Nil) #

def spend_cap : String | Nil #

def spend_cap=(spend_cap : String | Nil) #

def tax_id : String | Nil #

def tax_id=(tax_id : String | Nil) #

def tax_id_status : Int64 | Nil #

def tax_id_status=(tax_id_status : Int64 | Nil) #

def tax_id_type : String | Nil #

def tax_id_type=(tax_id_type : String | Nil) #

def timezone_id : Int64 | Nil #

def timezone_id=(timezone_id : Int64 | Nil) #

def timezone_name : String | Nil #

def timezone_name=(timezone_name : String | Nil) #

def timezone_offset_hours_utc : Float64 | Nil #

def timezone_offset_hours_utc=(timezone_offset_hours_utc : Float64 | Nil) #

def to_hash #

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

def to_protobuf #

def user_role : String | Nil #

def user_role=(user_role : String | Nil) #