Method: stats.get
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Kimliği doğrulanmış kullanıcı için bu uygulamadaki etkileşim ve harcama istatistiklerini döndürür.
HTTP isteği
GET https://games.googleapis.com/games/v1/stats
İstek içeriği
İstek metni boş olmalıdır.
Yanıt gövdesi
Üçüncü taraf istatistik kaynağı.
Başarılı olursa yanıt metni aşağıdaki yapıyla birlikte verileri içerir:
JSON gösterimi |
{
"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
} |
Alanlar |
churn_probability |
number
Oyuncunun ertesi gün oyunu oynamak için geri dönmeme olasılığı. Örnek: 0, 0,1, 0,5, ..., 1,0. Yeterli bilgi yoksa doldurulmaz.
|
num_purchases |
integer
Oyuncunun bu oyunda yaptığı uygulama içi satın alma işlemlerinin sayısı. Örnek: 0, 1, 5, 10, ... . Yeterli bilgi yoksa doldurulmaz.
|
spend_percentile |
number
Oyuncunun bu oyundaki yaklaşık harcama yüzdelik dilimi. Örnek: 0, 0,25, 0,5, 0,75. Yeterli bilgi yoksa doldurulmaz.
|
days_since_last_played |
integer
Oyuncunun bu oyunu en son oynamasından bu yana geçen gün sayısı. Örnek: 0, 1, 5, 10, ... . Yeterli bilgi yoksa doldurulmaz.
|
num_sessions |
integer
Oynatıcının son 28 gün içindeki yaklaşık oturum sayısı. Oyuncu Play Games Hizmetleri'ne bağlandığında bir oturum başlar ve bağlantısı kesildiğinde sona erer. Örnek: 0, 1, 5, 10, ... . Yeterli bilgi yoksa doldurulmaz.
|
num_sessions_percentile |
number
Oyuncunun son 30 gün içindeki oturum yüzdelik dilimi tahmini. Oturum, oyuncu Play Games Hizmetleri'ne bağlandığında başlar ve bağlantı kesildiğinde sona erer. Örnek: 0, 0,25, 0,5, 0,75. Yeterli bilgi yoksa doldurulmaz.
|
avg_session_length_minutes |
number
Oynatıcının dakika cinsinden ortalama oturum uzunluğu. Örnek: 1, 30, 60, ... . Yeterli bilgi yoksa doldurulmaz.
|
spend_probability |
number
Oyuncunun sonraki yedi gün içinde oyunu harcama olasılığı. Örnek: 0, 0,25, 0,50, 0,75. Yeterli bilgi yoksa doldurulmaz.
|
high_spender_probability |
number
Oyuncunun, eşik tutarının üzerinde harcama yapma olasılığı. Örnek: 0, 0,25, 0,50, 0,75. Yeterli bilgi yoksa doldurulmaz.
|
total_spend_next_28_days |
number
Oyuncunun sonraki 28 gün içinde harcayacağı tahmini para miktarı. Örnek: 1, 30, 60, ... . Yeterli bilgi yoksa doldurulmaz.
|
kind |
string
Bu kaynağın türünü benzersiz bir şekilde tanımlar. Değer her zaman sabit games#statsResponse dizesidir.
|
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamlarından birini gerektirir:
https://www.googleapis.com/auth/games
https://www.googleapis.com/auth/games_lite
Daha fazla bilgi için OAuth 2.0 Overview (OAuth 2.0'a Genel Bakış) sayfasına göz atın.
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-27 UTC.
[null,null,["Son güncelleme tarihi: 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)."]]