קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
כאן מוסבר איך לזהות ולנהל את השימוש ב-API של Play Games Services במשחק.
זיהוי הגבלת קצב של יצירת בקשות
אם אתם משתמשים ב-SDK של שירותי המשחקים של Play, פונקציות הטיפול בקריאה החוזרת או המאזינים שלכם יחזירו שגיאות כשהמשחק יחרוג ממגבלת הקצב שלו.
ב-Android, קריאות שמחזירות אובייקטים מסוג PendingResult, כמו incrementAchievementImmediate, מחזירות קוד סטטוס STATUS_NETWORK_ERROR_OPERATION_DEFERRED באובייקט התוצאה. קוד הסטטוס הזה מציין שהספרייה תנסה לבצע את הקריאה שוב מאוחר יותר באופן אוטומטי, כשהמשחק לא יהיה מוגבל יותר בקצב שליחת הבקשות.
בקטע הגדלת המכסה מוסבר איך מבקשים הגדלה של המכסה למשחקים.
ניהול המכסה היומית
כדי לבדוק את המכסה היומית של האפליקציה ב-Google Cloud Platform, אפשר להיכנס לפרויקט ב-Google Cloud Platform.
כדי להציג או לשנות את מגבלות השימוש בפרויקט, או כדי לבקש הגדלת מכסה:
אם עדיין אין לכם חשבון לחיוב בפרויקט, צריך ליצור חשבון כזה.
כדי להציג ולשנות הגדרות שקשורות למכסות, בוחרים באפשרות Quotas. כדי להציג את נתוני השימוש, בוחרים באפשרות שימוש.
אתם יכולים להגדיר את המספר המקסימלי של שיחות שמשתמש יכול לבצע בשנייה, כדי לוודא ששחקן שמנצל לרעה את השירות לא ינצל את כל המכסה של האפליקציה. מידע נוסף על הגבלת השימוש זמין במסמכי העזרה של Google Cloud Platform.
בקטע הגדלת המכסה מוסבר איך מבקשים הגדלה של המכסה למשחקים.
שליחת בקשה להגדלת מכסה
כדי לבקש הגדלה של המכסה של המשחק, לוחצים על הקישור Request more לצד הרשומה של המכסה של האפליקציה ב-Google Cloud Platform.
בדרך כלל אנחנו לא מאשרים בקשות להגדלת המכסה של משחקים, אלא אם יש למשחק שימוש יוצא דופן והוא עומד בשיטות המומלצות שמפורטות ברשימת המשימות לבדיקת איכות.
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-30 (שעון 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-08-30 (שעון UTC)."],[],[],null,["This topic describes how to detect and manage Play Games Services API usage in\nyour game.\n\nDetect rate limiting\n\nIf you are using the Play Games Services SDK, your callback handlers or listeners\nreturn errors when your game exceeds its rate limit.\n\nIn Android, calls that return\n[`PendingResult`](https://developer.android.com/reference/com/google/android/gms/common/api/PendingResult.html)\nobjects,\nsuch as\n[`incrementAchievementImmediate`](https://developer.android.com/reference/com/google/android/gms/games/achievement/Achievements.html#incrementImmediate(com.google.android.gms.common.api.GoogleApiClient,%20java.lang.String,%20int)),\nreturn a `STATUS_NETWORK_ERROR_OPERATION_DEFERRED` status code in the\nresult object. This status code indicates that the library will automatically\nattempt to make the call again later when your game is no longer rate limited.\n\nTo request additional quota for your games, see the\n[quota increase](#quota-increase) section.\n\nManage your daily quota\n\nYou can review your application's daily quota for Google Cloud Platform by\nvisiting your project in the\n[Google Cloud Platform](https://console.developers.google.com/).\n\nTo view or change usage limits for your project, or to request an increase to\nyour quota, do the following:\n\n1. If you don't already have a [billing account](//cloud.google.com/billing/docs/how-to/manage-billing-account) for your project, then create one.\n2. [Visit the Enabled APIs page of the\n API library](https://console.cloud.google.com/apis/enabled) in the API Console, and select an API from the list.\n3. To view and change quota-related settings, select **Quotas** . To view usage statistics, select **Usage**.\n\nYou can set the maximum number of calls a user can make per second, to\nhelp ensure that an abusive player doesn't use up all of your application's\nquota. To learn more about capping usage, see the\nGoogle Cloud Platform\n[documentation](https://developers.google.com/console/help/capping-usage).\n\nTo request additional quota for your games, see the\n[quota increase](#quota-increase) section.\n\nRequest a quota increase\n\nTo request a game quota increase, click the *Request more* link next to\nyour app's quota entry in the\n[Google Cloud Platform](https://console.developers.google.com/).\n\nRequests to increase the games quota usually aren't accepted unless your game is\nexperiencing exceptional usage and is obeying the best practices in the\n[quality checklist](https://developers.google.com/games/services/bestpractices#9_quota_and_rate_limiting)."]]