This topic describes how to detect and manage Play Games Services API usage in your game.
Detect rate limiting
If you are using the Play Games Services SDK, your callback handlers or listeners return errors when your game exceeds its rate limit.
In Android, calls that return
PendingResult
objects,
such as
incrementAchievementImmediate
,
return a STATUS_NETWORK_ERROR_OPERATION_DEFERRED
status code in the
result object. This status code indicates that the library will automatically
attempt to make the call again later when your game is no longer rate limited.
To request additional quota for your games, see the quota increase section.
Manage your daily quota
You can review your application's daily quota for Google Cloud Platform by visiting your project in the Google Cloud Platform.
To view or change usage limits for your project, or to request an increase to your quota, do the following:
- If you don't already have a billing account for your project, then create one.
- Visit the Enabled APIs page of the API library in the API Console, and select an API from the list.
- To view and change quota-related settings, select Quotas. To view usage statistics, select Usage.
You can set the maximum number of calls a user can make per second, to help ensure that an abusive player doesn't use up all of your application's quota. To learn more about capping usage, see the Google Cloud Platform documentation.
To request additional quota for your games, see the quota increase section.
Request a quota increase
To request a game quota increase, click the Request more link next to your app's quota entry in the Google Cloud Platform.
Requests to increase the games quota usually aren't accepted unless your game is experiencing exceptional usage and is obeying the best practices in the quality checklist.