TwitterAds::Proto::StatsLineItem
Inherits JSON::Serializable < Protobuf::Message < Struct < Value < Object
Constants
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: :campaign_id, pb_type: :string,
crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 4 => {name: :placement, pb_type: :string,
crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 5 => {name: :engagement, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :impression, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :retweet, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :replie, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :like, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :follow, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :card_engagement, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 12 => {name: :click, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 13 => {name: :app_click, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 14 => {name: :url_click, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 15 => {name: :qualified_impression, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 16 => {name: :billed_engagement, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 17 => {name: :billed_charge_local_micro, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 18 => {name: :video_total_view, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 19 => {name: :video_views_25, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 20 => {name: :video_views_50, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 21 => {name: :video_views_75, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 22 => {name: :video_views_100, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 23 => {name: :video_cta_click, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 24 => {name: :video_content_start, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 25 => {name: :video_mrc_view, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 26 => {name: :video_3s100pct_view, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 27 => {name: :media_view, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 28 => {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
new(date : String, account_id : String, campaign_id : String, placement : String, 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)
new(buf : Protobuf::Buffer)
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)
account_id
account_id=(account_id : String)
app_click
app_click=(app_click : Int64 | Nil)
billed_charge_local_micro
billed_charge_local_micro=(billed_charge_local_micro : Int64 | Nil)
billed_engagement
billed_engagement=(billed_engagement : Int64 | Nil)
campaign_id
campaign_id=(campaign_id : String)
card_engagement
card_engagement=(card_engagement : Int64 | Nil)
click
click=(click : Int64 | Nil)
date
date=(date : String)
engagement
engagement=(engagement : Int64 | Nil)
follow
follow=(follow : Int64 | Nil)
impression
impression=(impression : Int64 | Nil)
like
like=(like : Int64 | Nil)
media_engagement
media_engagement=(media_engagement : Int64 | Nil)
media_view
media_view=(media_view : Int64 | Nil)
placement
placement=(placement : String)
qualified_impression
qualified_impression=(qualified_impression : Int64 | Nil)
replie
replie=(replie : Int64 | Nil)
retweet
retweet=(retweet : Int64 | Nil)
to_hash
to_protobuf(io : IO, embedded = false)
to_protobuf
url_click
url_click=(url_click : Int64 | Nil)
video_3s100pct_view
video_3s100pct_view=(video_3s100pct_view : Int64 | Nil)
video_content_start
video_content_start=(video_content_start : Int64 | Nil)
video_cta_click
video_cta_click=(video_cta_click : Int64 | Nil)
video_mrc_view
video_mrc_view=(video_mrc_view : Int64 | Nil)
video_total_view
video_total_view=(video_total_view : Int64 | Nil)
video_views_100
video_views_100=(video_views_100 : Int64 | Nil)
video_views_25
video_views_25=(video_views_25 : Int64 | Nil)
video_views_50
video_views_50=(video_views_50 : Int64 | Nil)
video_views_75
video_views_75=(video_views_75 : Int64 | Nil)