class Google::Apis::GamesV1::StatsResponse

A third party stats resource.

Attributes

avg_session_length_minutes[RW]

Average session length in minutes of the player. E.g., 1, 30, 60, … . Not populated if there is not enough information. Corresponds to the JSON property `avg_session_length_minutes` @return [Float]

churn_probability[RW]

The probability of the player not returning to play the game in the next day. E.g., 0, 0.1, 0.5, …, 1.0. Not populated if there is not enough information. Corresponds to the JSON property `churn_probability` @return [Float]

days_since_last_played[RW]

Number of days since the player last played this game. E.g., 0, 1, 5, 10, … . Not populated if there is not enough information. Corresponds to the JSON property `days_since_last_played` @return [Fixnum]

high_spender_probability[RW]

The probability of the player going to spend beyond a threshold amount of money. E.g., 0, 0.25, 0.50, 0.75. Not populated if there is not enough information. Corresponds to the JSON property `high_spender_probability` @return [Float]

kind[RW]

Uniquely identifies the type of this resource. Value is always the fixed string `games#statsResponse`. Corresponds to the JSON property `kind` @return [String]

num_purchases[RW]

Number of in-app purchases made by the player in this game. E.g., 0, 1, 5, 10, … . Not populated if there is not enough information. Corresponds to the JSON property `num_purchases` @return [Fixnum]

num_sessions[RW]

The approximate number of sessions of the player within the last 28 days, where a session begins when the player is connected to Play Games Services and ends when they are disconnected. E.g., 0, 1, 5, 10, … . Not populated if there is not enough information. Corresponds to the JSON property `num_sessions` @return [Fixnum]

num_sessions_percentile[RW]

The approximation of the sessions percentile of the player within the last 30 days, where a session begins when the player is connected to Play Games Services and ends when they are disconnected. E.g., 0, 0.25, 0.5, 0.75. Not populated if there is not enough information. Corresponds to the JSON property `num_sessions_percentile` @return [Float]

spend_percentile[RW]

The approximate spend percentile of the player in this game. E.g., 0, 0.25, 0. 5, 0.75. Not populated if there is not enough information. Corresponds to the JSON property `spend_percentile` @return [Float]

spend_probability[RW]

The probability of the player going to spend the game in the next seven days. E.g., 0, 0.25, 0.50, 0.75. Not populated if there is not enough information. Corresponds to the JSON property `spend_probability` @return [Float]

total_spend_next_28_days[RW]

The predicted amount of money that the player going to spend in the next 28 days. E.g., 1, 30, 60, … . Not populated if there is not enough information. Corresponds to the JSON property `total_spend_next_28_days` @return [Float]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/games_v1/classes.rb, line 2624
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/games_v1/classes.rb, line 2629
def update!(**args)
  @avg_session_length_minutes = args[:avg_session_length_minutes] if args.key?(:avg_session_length_minutes)
  @churn_probability = args[:churn_probability] if args.key?(:churn_probability)
  @days_since_last_played = args[:days_since_last_played] if args.key?(:days_since_last_played)
  @high_spender_probability = args[:high_spender_probability] if args.key?(:high_spender_probability)
  @kind = args[:kind] if args.key?(:kind)
  @num_purchases = args[:num_purchases] if args.key?(:num_purchases)
  @num_sessions = args[:num_sessions] if args.key?(:num_sessions)
  @num_sessions_percentile = args[:num_sessions_percentile] if args.key?(:num_sessions_percentile)
  @spend_percentile = args[:spend_percentile] if args.key?(:spend_percentile)
  @spend_probability = args[:spend_probability] if args.key?(:spend_probability)
  @total_spend_next_28_days = args[:total_spend_next_28_days] if args.key?(:total_spend_next_28_days)
end