Method: stats.get
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Menampilkan statistik engagement dan pembelanjaan di aplikasi ini untuk pengguna yang saat ini diautentikasi.
Permintaan HTTP
GET https://games.googleapis.com/games/v1/stats
Isi permintaan
Isi permintaan harus kosong.
Isi respons
Referensi statistik pihak ketiga.
Jika berhasil, isi respons berisi data dengan struktur berikut:
Representasi 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
} |
Kolom |
churn_probability |
number
Probabilitas pemain tidak kembali untuk memainkan game pada hari berikutnya. Misalnya, 0, 0,1, 0,5, ..., 1,0. Tidak diisi jika tidak ada cukup informasi.
|
num_purchases |
integer
Jumlah pembelian dalam aplikasi yang dilakukan oleh pemain dalam game ini. Misalnya, 0, 1, 5, 10, ... . Tidak diisi jika tidak ada cukup informasi.
|
spend_percentile |
number
Perkiraan persentil pembelanjaan pemain dalam game ini. Misalnya, 0, 0,25, 0,5, 0,75. Tidak diisi jika tidak ada cukup informasi.
|
days_since_last_played |
integer
Jumlah hari sejak pemain terakhir kali memainkan game ini. Misalnya, 0, 1, 5, 10, ... . Tidak diisi jika tidak ada cukup informasi.
|
num_sessions |
integer
Perkiraan jumlah sesi pemain dalam 28 hari terakhir, dengan sesi dimulai saat pemain terhubung ke Layanan game Play dan berakhir saat pemain terputus. Misalnya, 0, 1, 5, 10, ... . Tidak diisi jika tidak ada cukup informasi.
|
num_sessions_percentile |
number
Perkiraan persentil sesi pemain dalam 30 hari terakhir, dengan sesi dimulai saat pemain terhubung ke Layanan game Play dan berakhir saat pemain terputus. Misalnya, 0, 0,25, 0,5, 0,75. Tidak diisi jika tidak ada cukup informasi.
|
avg_session_length_minutes |
number
Durasi sesi rata-rata dalam menit dari pemain. Misalnya, 1, 30, 60, ... . Tidak diisi jika tidak ada cukup informasi.
|
spend_probability |
number
Probabilitas pemain akan menghabiskan game dalam tujuh hari ke depan. Misalnya, 0, 0,25, 0,50, 0,75. Tidak diisi jika tidak ada cukup informasi.
|
high_spender_probability |
number
Probabilitas pemain akan membelanjakan uang melebihi jumlah minimum. Misalnya, 0, 0,25, 0,50, 0,75. Tidak diisi jika tidak ada cukup informasi.
|
total_spend_next_28_days |
number
Perkiraan jumlah uang yang akan dibelanjakan pemain dalam 28 hari ke depan. Misalnya, 1, 30, 60, ... . Tidak diisi jika tidak ada cukup informasi.
|
kind |
string
Secara unik mengidentifikasi jenis resource ini. Nilainya selalu berupa string tetap games#statsResponse .
|
Cakupan otorisasi
Memerlukan salah satu cakupan OAuth berikut:
https://www.googleapis.com/auth/games
https://www.googleapis.com/auth/games_lite
Untuk informasi selengkapnya, lihat Ringkasan OAuth 2.0.
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-27 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-27 UTC."],[],[],null,["# Method: stats.get\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.PlayerStats.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nReturns engagement and spend statistics in this application for the currently authenticated user.\n\n### HTTP request\n\n`GET https://games.googleapis.com/games/v1/stats`\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nA third party stats resource.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"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 } ``` |\n\n| Fields ||\n|------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `churn_probability` | `number` 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. |\n| `num_purchases` | `integer` 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. |\n| `spend_percentile` | `number` 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. |\n| `days_since_last_played` | `integer` Number of days since the player last played this game. E.g., 0, 1, 5, 10, ... . Not populated if there is not enough information. |\n| `num_sessions` | `integer` 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. |\n| `num_sessions_percentile` | `number` 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. |\n| `avg_session_length_minutes` | `number` Average session length in minutes of the player. E.g., 1, 30, 60, ... . Not populated if there is not enough information. |\n| `spend_probability` | `number` 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. |\n| `high_spender_probability` | `number` 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. |\n| `total_spend_next_28_days` | `number` 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. |\n| `kind` | `string` Uniquely identifies the type of this resource. Value is always the fixed string `games#statsResponse`. |\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/games`\n- `\n https://www.googleapis.com/auth/games_lite`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]