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 Games Services ומסתיים כשהוא מנותק. למשל: 0, 1, 5, 10, ... . השדה לא מאוכלס אם אין מספיק מידע.
|
num_sessions_percentile |
number
האחוזון המשוער של הסשנים של השחקן ב-30 הימים האחרונים. סשן מתחיל כשהוא מחובר ל-Play Games Services ומסתיים כשהוא מנותק. למשל: 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.
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-27 (שעון UTC).
[null,null,["עדכון אחרון: 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)."]]