TwitterAds::Proto::StatsAccountMetrics
Inherits JSON::Serializable < Protobuf::Message < Struct < Value < Object
Constants
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
new(buf : Protobuf::Buffer)
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)
new(pull : JSON::PullParser)
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Class methods
from_protobuf(io)
Instance methods
[](key : String)
[]=(key : String, val)
[]?(key : String)
app_clicks
app_clicks=(app_clicks : Array(Int64) | Nil)
app_clicks=(app_clicks : Array(Int64) | Nil)
billed_charge_local_micro
billed_charge_local_micro=(billed_charge_local_micro : Array(Int64) | Nil)
billed_charge_local_micro=(billed_charge_local_micro : Array(Int64) | Nil)
billed_engagements
billed_engagements=(billed_engagements : Array(Int64) | Nil)
billed_engagements=(billed_engagements : Array(Int64) | Nil)
card_engagements
card_engagements=(card_engagements : Array(Int64) | Nil)
card_engagements=(card_engagements : Array(Int64) | Nil)
clicks
clicks=(clicks : Array(Int64) | Nil)
clicks=(clicks : Array(Int64) | Nil)
engagements
engagements=(engagements : Array(Int64) | Nil)
engagements=(engagements : Array(Int64) | Nil)
follows
follows=(follows : Array(Int64) | Nil)
follows=(follows : Array(Int64) | Nil)
impressions
impressions=(impressions : Array(Int64) | Nil)
impressions=(impressions : Array(Int64) | Nil)
likes
likes=(likes : Array(Int64) | Nil)
likes=(likes : Array(Int64) | Nil)
media_engagements
media_engagements=(media_engagements : Array(Int64) | Nil)
media_engagements=(media_engagements : Array(Int64) | Nil)
media_views
media_views=(media_views : Array(Int64) | Nil)
media_views=(media_views : Array(Int64) | Nil)
qualified_impressions
qualified_impressions=(qualified_impressions : Array(Int64) | Nil)
qualified_impressions=(qualified_impressions : Array(Int64) | Nil)
replies
replies=(replies : Array(Int64) | Nil)
replies=(replies : Array(Int64) | Nil)
retweets
retweets=(retweets : Array(Int64) | Nil)
retweets=(retweets : Array(Int64) | Nil)
segment
segment=(segment : String | Nil)
to_hash
to_protobuf(io : IO, embedded = false)
to_protobuf
url_clicks
url_clicks=(url_clicks : Array(Int64) | Nil)
url_clicks=(url_clicks : Array(Int64) | Nil)
video_3s100pct_views
video_3s100pct_views=(video_3s100pct_views : Array(Int64) | Nil)
video_3s100pct_views=(video_3s100pct_views : Array(Int64) | Nil)
video_content_starts
video_content_starts=(video_content_starts : Array(Int64) | Nil)
video_content_starts=(video_content_starts : Array(Int64) | Nil)
video_cta_clicks
video_cta_clicks=(video_cta_clicks : Array(Int64) | Nil)
video_cta_clicks=(video_cta_clicks : Array(Int64) | Nil)
video_mrc_views
video_mrc_views=(video_mrc_views : Array(Int64) | Nil)
video_mrc_views=(video_mrc_views : Array(Int64) | Nil)
video_total_views
video_total_views=(video_total_views : Array(Int64) | Nil)
video_total_views=(video_total_views : Array(Int64) | Nil)
video_views_100
video_views_100=(video_views_100 : Array(Int64) | Nil)
video_views_100=(video_views_100 : Array(Int64) | Nil)
video_views_25
video_views_25=(video_views_25 : Array(Int64) | Nil)
video_views_25=(video_views_25 : Array(Int64) | Nil)
video_views_50
video_views_50=(video_views_50 : Array(Int64) | Nil)
video_views_50=(video_views_50 : Array(Int64) | Nil)
video_views_75
video_views_75=(video_views_75 : Array(Int64) | Nil)
video_views_75=(video_views_75 : Array(Int64) | Nil)