struct TwitterAds::Proto::Stats::Account

Included Modules

Defined in:

twitter-ads/proto/stats/account.pb.cr

Constant Summary

FIELDS = {1 => {name: :date, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 2 => {name: :account_id, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 3 => {name: :entity, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 4 => {name: :entity_ids, 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: false, repeated: false, default: nil, packed: false}, 6 => {name: :end_time, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 7 => {name: :metric_groups, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 8 => {name: :granularity, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 9 => {name: :placement, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 10 => {name: :segmentation_type, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :country, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 12 => {name: :platform, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 13 => {name: :engagement, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 14 => {name: :impression, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 15 => {name: :retweet, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 16 => {name: :replie, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 17 => {name: :like, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 18 => {name: :follow, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 19 => {name: :card_engagement, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 20 => {name: :click, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 21 => {name: :app_click, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 22 => {name: :url_click, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 23 => {name: :qualified_impression, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 24 => {name: :billed_engagement, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 25 => {name: :billed_charge_local_micro, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 26 => {name: :video_total_view, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 27 => {name: :video_views_25, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 28 => {name: :video_views_50, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 29 => {name: :video_views_75, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 30 => {name: :video_views_100, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 31 => {name: :video_cta_click, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 32 => {name: :video_content_start, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 33 => {name: :video_mrc_view, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 34 => {name: :video_3s100pct_view, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 35 => {name: :media_view, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 36 => {name: :media_engagement, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, 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(date : String, account_id : String, entity : String, start_time : String, end_time : String, granularity : String, placement : String, entity_ids : Array(String) | Nil = nil, metric_groups : Array(String) | Nil = nil, segmentation_type : String | Nil = nil, country : String | Nil = nil, platform : String | Nil = nil, engagement : Int64 | Nil = nil, impression : Int64 | Nil = nil, retweet : Int64 | Nil = nil, replie : Int64 | Nil = nil, like : Int64 | Nil = nil, follow : Int64 | Nil = nil, card_engagement : Int64 | Nil = nil, click : Int64 | Nil = nil, app_click : Int64 | Nil = nil, url_click : Int64 | Nil = nil, qualified_impression : Int64 | Nil = nil, billed_engagement : Int64 | Nil = nil, billed_charge_local_micro : Int64 | Nil = nil, video_total_view : Int64 | Nil = nil, video_views_25 : Int64 | Nil = nil, video_views_50 : Int64 | Nil = nil, video_views_75 : Int64 | Nil = nil, video_views_100 : Int64 | Nil = nil, video_cta_click : Int64 | Nil = nil, video_content_start : Int64 | Nil = nil, video_mrc_view : Int64 | Nil = nil, video_3s100pct_view : Int64 | Nil = nil, media_view : Int64 | Nil = nil, media_engagement : Int64 | Nil = nil) #

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

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 #

def account_id=(account_id : String) #

def app_click : Int64 | Nil #

def app_click=(app_click : Int64 | Nil) #

def billed_charge_local_micro : Int64 | Nil #

def billed_charge_local_micro=(billed_charge_local_micro : Int64 | Nil) #

def billed_engagement : Int64 | Nil #

def billed_engagement=(billed_engagement : Int64 | Nil) #

def card_engagement : Int64 | Nil #

def card_engagement=(card_engagement : Int64 | Nil) #

def click : Int64 | Nil #

def click=(click : Int64 | Nil) #

def country : String | Nil #

def country=(country : String | Nil) #

def date : String #

def date=(date : String) #

def end_time : String #

def end_time=(end_time : String) #

def engagement : Int64 | Nil #

def engagement=(engagement : Int64 | Nil) #

def entity : String #

def entity=(entity : String) #

def entity_ids : Array(String) | Nil #

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

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

def follow : Int64 | Nil #

def follow=(follow : Int64 | Nil) #

def granularity : String #

def granularity=(granularity : String) #

def impression : Int64 | Nil #

def impression=(impression : Int64 | Nil) #

def like : Int64 | Nil #

def like=(like : Int64 | Nil) #

def media_engagement : Int64 | Nil #

def media_engagement=(media_engagement : Int64 | Nil) #

def media_view : Int64 | Nil #

def media_view=(media_view : Int64 | Nil) #

def metric_groups : Array(String) | Nil #

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

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

def placement : String #

def placement=(placement : String) #

def platform : String | Nil #

def platform=(platform : String | Nil) #

def qualified_impression : Int64 | Nil #

def qualified_impression=(qualified_impression : Int64 | Nil) #

def replie : Int64 | Nil #

def replie=(replie : Int64 | Nil) #

def retweet : Int64 | Nil #

def retweet=(retweet : Int64 | Nil) #

def segmentation_type : String | Nil #

def segmentation_type=(segmentation_type : String | Nil) #

def start_time : String #

def start_time=(start_time : String) #

def to_hash #

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

def to_protobuf #

def url_click : Int64 | Nil #

def url_click=(url_click : Int64 | Nil) #

def video_3s100pct_view : Int64 | Nil #

def video_3s100pct_view=(video_3s100pct_view : Int64 | Nil) #

def video_content_start : Int64 | Nil #

def video_content_start=(video_content_start : Int64 | Nil) #

def video_cta_click : Int64 | Nil #

def video_cta_click=(video_cta_click : Int64 | Nil) #

def video_mrc_view : Int64 | Nil #

def video_mrc_view=(video_mrc_view : Int64 | Nil) #

def video_total_view : Int64 | Nil #

def video_total_view=(video_total_view : Int64 | Nil) #

def video_views_100 : Int64 | Nil #

def video_views_100=(video_views_100 : Int64 | Nil) #

def video_views_25 : Int64 | Nil #

def video_views_25=(video_views_25 : Int64 | Nil) #

def video_views_50 : Int64 | Nil #

def video_views_50=(video_views_50 : Int64 | Nil) #

def video_views_75 : Int64 | Nil #

def video_views_75=(video_views_75 : Int64 | Nil) #