Method: stats.get

針對目前已驗證的使用者,傳回這個應用程式中的參與度和支出統計資料。

HTTP 要求

GET https://games.googleapis.com/games/v1/stats

要求主體

要求主體必須為空白。

回應主體

第三方統計資料資源。

如果成功,回應主體即會包含具有以下結構的資料:

JSON 表示法
{
  "churn_probability": number,
  "num_purchases": integer,
  "spend_percentile": number,
  "days_since_last_played": integer,
  "num_sessions": integer,
  "num_sessions_percentile": number,
  "avg_session_length_minutes": number,
  "spend_probability": number,
  "high_spender_probability": number,
  "total_spend_next_28_days": number,
  "kind": string
}
欄位
churn_probability

number

玩家在隔天不回訪遊戲的機率。例如:0、0.1、0.5、...、1.0。資訊不足時不會填入資料。

num_purchases

integer

這個遊戲玩家進行的應用程式內購交易次數。例如:0、1、5、10...資訊不足時不會填入資料。

spend_percentile

number

玩家在這款遊戲中的約略消費百分位數。例如:0、0.25、0.5、0.75。資訊不足時不會填入資料。

days_since_last_played

integer

玩家上次玩這款遊戲後經過的天數。例如:0、1、5、10...資訊不足時不會填入資料。

num_sessions

integer

玩家在過去 28 天內的大致工作階段數;玩家連線至 Play 遊戲服務時開始工作階段,並在中斷連線時結束。例如:0、1、5、10...資訊不足時不會填入資料。

num_sessions_percentile

number

過去 30 天內玩家工作階段的概略值,工作階段會從玩家連線至 Play 遊戲服務時開始,並且在中斷連線時結束。例如:0、0.25、0.5、0.75。資訊不足時不會填入資料。

avg_session_length_minutes

number

玩家平均工作階段時間長度 (以分鐘為單位)。例如:1、30、60......資訊不足時不會填入資料。

spend_probability

number

玩家在未來七天內使用遊戲的機率。例如:0、0.25、0.50、0.75。資訊不足時不會填入資料。

high_spender_probability

number

玩家消費超過門檻金額的機率。例如:0、0.25、0.50、0.75。資訊不足時不會填入資料。

total_spend_next_28_days

number

玩家未來 28 天內會支出的預估金額。例如:1、30、60......資訊不足時不會填入資料。

kind

string

專門識別這個資源的類型。值一律為固定字串 games#statsResponse

授權範圍

需要下列其中一種 OAuth 範圍:

  • https://www.googleapis.com/auth/games
  • https://www.googleapis.com/auth/games_lite

詳情請參閱 OAuth 2.0 總覽