struct
TwitterAds::Proto::Stats::Account
- TwitterAds::Proto::Stats::Account
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- Protobuf::Message
Defined in:
twitter-ads/proto/stats/account.pb.crConstant 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
- .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)
- .new(buf : Protobuf::Buffer)
- .new(pull : JSON::PullParser)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #[]=(key : String, val)
- #[]?(key : String)
- #account_id : String
- #account_id=(account_id : String)
- #app_click : Int64 | Nil
- #app_click=(app_click : Int64 | Nil)
- #billed_charge_local_micro : Int64 | Nil
- #billed_charge_local_micro=(billed_charge_local_micro : Int64 | Nil)
- #billed_engagement : Int64 | Nil
- #billed_engagement=(billed_engagement : Int64 | Nil)
- #card_engagement : Int64 | Nil
- #card_engagement=(card_engagement : Int64 | Nil)
- #click : Int64 | Nil
- #click=(click : Int64 | Nil)
- #country : String | Nil
- #country=(country : String | Nil)
- #date : String
- #date=(date : String)
- #end_time : String
- #end_time=(end_time : String)
- #engagement : Int64 | Nil
- #engagement=(engagement : Int64 | Nil)
- #entity : String
- #entity=(entity : String)
- #entity_ids : Array(String) | Nil
- #entity_ids=(entity_ids : Array(String) | Nil)
- #entity_ids=(entity_ids : Array(String) | Nil)
- #follow : Int64 | Nil
- #follow=(follow : Int64 | Nil)
- #granularity : String
- #granularity=(granularity : String)
- #impression : Int64 | Nil
- #impression=(impression : Int64 | Nil)
- #like : Int64 | Nil
- #like=(like : Int64 | Nil)
- #media_engagement : Int64 | Nil
- #media_engagement=(media_engagement : Int64 | Nil)
- #media_view : Int64 | Nil
- #media_view=(media_view : Int64 | Nil)
- #metric_groups : Array(String) | Nil
- #metric_groups=(metric_groups : Array(String) | Nil)
- #metric_groups=(metric_groups : Array(String) | Nil)
- #placement : String
- #placement=(placement : String)
- #platform : String | Nil
- #platform=(platform : String | Nil)
- #qualified_impression : Int64 | Nil
- #qualified_impression=(qualified_impression : Int64 | Nil)
- #replie : Int64 | Nil
- #replie=(replie : Int64 | Nil)
- #retweet : Int64 | Nil
- #retweet=(retweet : Int64 | Nil)
- #segmentation_type : String | Nil
- #segmentation_type=(segmentation_type : String | Nil)
- #start_time : String
- #start_time=(start_time : String)
- #to_hash
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #url_click : Int64 | Nil
- #url_click=(url_click : Int64 | Nil)
- #video_3s100pct_view : Int64 | Nil
- #video_3s100pct_view=(video_3s100pct_view : Int64 | Nil)
- #video_content_start : Int64 | Nil
- #video_content_start=(video_content_start : Int64 | Nil)
- #video_cta_click : Int64 | Nil
- #video_cta_click=(video_cta_click : Int64 | Nil)
- #video_mrc_view : Int64 | Nil
- #video_mrc_view=(video_mrc_view : Int64 | Nil)
- #video_total_view : Int64 | Nil
- #video_total_view=(video_total_view : Int64 | Nil)
- #video_views_100 : Int64 | Nil
- #video_views_100=(video_views_100 : Int64 | Nil)
- #video_views_25 : Int64 | Nil
- #video_views_25=(video_views_25 : Int64 | Nil)
- #video_views_50 : Int64 | Nil
- #video_views_50=(video_views_50 : Int64 | Nil)
- #video_views_75 : Int64 | Nil
- #video_views_75=(video_views_75 : Int64 | Nil)
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)
#