struct TwitterAds::Proto::StatsAccountMetrics

Included Modules

Defined in:

twitter-ads/proto/stats_account_metrics.pb.cr

Constant Summary

FIELDS = {1 => {name: :segment, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :engagements, pb_type: :int64, crystal_type: Int64, cast_type: Array(Int64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 3 => {name: :impressions, pb_type: :int64, crystal_type: Int64, cast_type: Array(Int64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 4 => {name: :retweets, pb_type: :int64, crystal_type: Int64, cast_type: Array(Int64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 5 => {name: :replies, pb_type: :int64, crystal_type: Int64, cast_type: Array(Int64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 6 => {name: :likes, pb_type: :int64, crystal_type: Int64, cast_type: Array(Int64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 7 => {name: :follows, pb_type: :int64, crystal_type: Int64, cast_type: Array(Int64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 8 => {name: :card_engagements, pb_type: :int64, crystal_type: Int64, cast_type: Array(Int64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 9 => {name: :clicks, pb_type: :int64, crystal_type: Int64, cast_type: Array(Int64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 10 => {name: :app_clicks, pb_type: :int64, crystal_type: Int64, cast_type: Array(Int64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 11 => {name: :url_clicks, pb_type: :int64, crystal_type: Int64, cast_type: Array(Int64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 12 => {name: :qualified_impressions, pb_type: :int64, crystal_type: Int64, cast_type: Array(Int64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 13 => {name: :billed_engagements, pb_type: :int64, crystal_type: Int64, cast_type: Array(Int64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 14 => {name: :billed_charge_local_micro, pb_type: :int64, crystal_type: Int64, cast_type: Array(Int64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 15 => {name: :video_total_views, pb_type: :int64, crystal_type: Int64, cast_type: Array(Int64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 16 => {name: :video_views_25, pb_type: :int64, crystal_type: Int64, cast_type: Array(Int64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 17 => {name: :video_views_50, pb_type: :int64, crystal_type: Int64, cast_type: Array(Int64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 18 => {name: :video_views_75, pb_type: :int64, crystal_type: Int64, cast_type: Array(Int64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 19 => {name: :video_views_100, pb_type: :int64, crystal_type: Int64, cast_type: Array(Int64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 20 => {name: :video_cta_clicks, pb_type: :int64, crystal_type: Int64, cast_type: Array(Int64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 21 => {name: :video_content_starts, pb_type: :int64, crystal_type: Int64, cast_type: Array(Int64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 22 => {name: :video_mrc_views, pb_type: :int64, crystal_type: Int64, cast_type: Array(Int64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 23 => {name: :video_3s100pct_views, pb_type: :int64, crystal_type: Int64, cast_type: Array(Int64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 24 => {name: :media_views, pb_type: :int64, crystal_type: Int64, cast_type: Array(Int64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 25 => {name: :media_engagements, pb_type: :int64, crystal_type: Int64, cast_type: Array(Int64)?, native: true, optional: true, repeated: true, 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(segment : String | Nil = nil, engagements : Array(Int64) | Nil = nil, impressions : Array(Int64) | Nil = nil, retweets : Array(Int64) | Nil = nil, replies : Array(Int64) | Nil = nil, likes : Array(Int64) | Nil = nil, follows : Array(Int64) | Nil = nil, card_engagements : Array(Int64) | Nil = nil, clicks : Array(Int64) | Nil = nil, app_clicks : Array(Int64) | Nil = nil, url_clicks : Array(Int64) | Nil = nil, qualified_impressions : Array(Int64) | Nil = nil, billed_engagements : Array(Int64) | Nil = nil, billed_charge_local_micro : Array(Int64) | Nil = nil, video_total_views : Array(Int64) | Nil = nil, video_views_25 : Array(Int64) | Nil = nil, video_views_50 : Array(Int64) | Nil = nil, video_views_75 : Array(Int64) | Nil = nil, video_views_100 : Array(Int64) | Nil = nil, video_cta_clicks : Array(Int64) | Nil = nil, video_content_starts : Array(Int64) | Nil = nil, video_mrc_views : Array(Int64) | Nil = nil, video_3s100pct_views : Array(Int64) | Nil = nil, media_views : Array(Int64) | Nil = nil, media_engagements : Array(Int64) | 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 app_clicks : Array(Int64) | Nil #

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

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

def billed_charge_local_micro : Array(Int64) | Nil #

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

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

def billed_engagements : Array(Int64) | Nil #

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

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

def card_engagements : Array(Int64) | Nil #

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

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

def clicks : Array(Int64) | Nil #

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

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

def engagements : Array(Int64) | Nil #

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

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

def follows : Array(Int64) | Nil #

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

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

def impressions : Array(Int64) | Nil #

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

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

def likes : Array(Int64) | Nil #

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

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

def media_engagements : Array(Int64) | Nil #

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

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

def media_views : Array(Int64) | Nil #

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

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

def qualified_impressions : Array(Int64) | Nil #

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

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

def replies : Array(Int64) | Nil #

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

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

def retweets : Array(Int64) | Nil #

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

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

def segment : String | Nil #

def segment=(segment : String | Nil) #

def to_hash #

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

def to_protobuf #

def url_clicks : Array(Int64) | Nil #

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

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

def video_3s100pct_views : Array(Int64) | Nil #

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

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

def video_content_starts : Array(Int64) | Nil #

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

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

def video_cta_clicks : Array(Int64) | Nil #

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

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

def video_mrc_views : Array(Int64) | Nil #

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

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

def video_total_views : Array(Int64) | Nil #

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

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

def video_views_100 : Array(Int64) | Nil #

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

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

def video_views_25 : Array(Int64) | Nil #

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

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

def video_views_50 : Array(Int64) | Nil #

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

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

def video_views_75 : Array(Int64) | Nil #

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

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