Method: stats.get
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
इस ऐप्लिकेशन में, पुष्टि किए गए मौजूदा उपयोगकर्ता के लिए यूज़र ऐक्टिविटी और खर्च से जुड़े आंकड़े दिखाता है.
एचटीटीपी अनुरोध
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 की खास जानकारी देखें.
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 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)."]]