Manage Play Games Services project settings in Google Cloud Platform | Android game development | Android Developers
Typical scenarios include :
- Enabling additional APIs for your project (such as Google Drive).
- Editing the branding information for your game in the OAuth 2.0 dialog.
- Viewing your API quota and requesting more (if necessary).
- Editing authorized URIs or JavaScript origins in Client IDs that you’ve
created in the past.
View your project
To view your project in Google Cloud Platform :
- Select a credential for your game on the Configuration page
(Grow>
Bạn đang đọc: Manage Play Games Services project settings in Google Cloud Platform | Android game development | Android Developers
Play Games
Services > Setup and
management > Configuration - Scroll to the bottom of the Authentication section and click View in
Google Cloud Platform.
Adjust API usage quotas
In Google Cloud Platform, you can view the API usage limits currently set up for your game and the amount of quota that has been used. You can also set per-user limits to prevent an abusive user ( or a buggy game client ) from depleting your quota .
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.
Be aware that “users” are determined based on the IP address of the
client making the quota request. For instance, if all of your requests came from
a single server, that server might be erroneously tagged as a single spammy user.
To prevent this, you can attach a userIp=x.x.x.x
argument to your API endpoint
requests.
To learn more about setting per-user quotas, see Google Cloud Platform documentation .
In addition to a per-user limit, there is an application-wide
per-day limit for the Google Play Games Services API. Typically, you
will not need to change the pre-allocated limit. However, if you anticipate a
large spike in volume (for example, for an upcoming launch event), you can
request for additional quota by clicking the Request more link.
Activate other APIs
When you create your client ID in Play Console, the Google Play Games Services API is automatically turned on for your project. You can activate other Google APIs from Google Cloud Platform .
To enable an API for your project, do the following:
- Open the API Library in Google API Console. If prompted, select a project or create a new one. API Library lists all available APIs, grouped by product family and popularity .
- If the API you want to enable isn’t visible in the list, use search to find it .
-
Select the API you want to enable, then click the Enable button.
- If prompted, enable billing .
- If prompted, accept the API’s terms of service .
Modify branding information
To modify the branding information ( title, logo, etc. ) for your game that appears in the OAuth 2.0 dialog, set the attributes in the consent màn hình hiển thị of Google Cloud Platform .
To set up your project’s consent màn hình hiển thị, do the following :
- Open the [Consent Screen page](https://console.developers.google.com/apis/credentials/consent)
in Play Console. If prompted, select a project or create a
new one. - Fill out the form and click Save.
Modify client ID related attributes
Important:
If you change the launch URL of
your web app, you must follow the instructions below to make the corresponding
change in Play Console to avoid getting origin_mismatch
errors. If you
change the package name of your Android app, you must create a new linked app
entry and remove the existing linked app entry that has the old package name.
To modify attributes related to your OAuth 2.0 client ID (web
origins and redirect urls for a web app, etc.):
- Open Play Console and navigate to your game.
- Select a credential for your game on the Configuration page
(Grow > Play Games
Services >Setup and
).
management > Configuration - Scroll to the bottom of the Authentication section and click View in
Google Cloud Platform. - In Google Cloud Platform{, select your project.
- In the sidebar on the left, select APIs & auth. Make sure that the
Google Play Games Services API status is ON in the displayed list of APIs. - In the sidebar on the left, select Registered apps.
- Expand the OAuth 2.0 Client ID section and find the attribute to edit.
Source: https://thomaygiat.com
Category : Ứng Dụng
Hướng Dẫn Chi Tiết Xử Lý Lỗi E-66 Máy Giặt Electrolux
Mục ChínhHướng Dẫn Chi Tiết Xử Lý Lỗi E-66 Máy Giặt ElectroluxLỗi E-66 máy giặt Electrolux là gì?4 Nguyên nhân gây lỗi E-66 máy giặt…
Tủ Lạnh Sharp Lỗi H-36 Cách Xử Lý Đơn Giản
Mục ChínhTủ Lạnh Sharp Lỗi H-36 Cách Xử Lý Đơn GiảnGiới thiệu về lỗi H-36 trên tủ lạnh SharpNguyên nhân gây lỗi H-36 trên tủ…
Khắc phục lỗi E-62 máy giặt Electrolux không cần thợ
Mục ChínhKhắc phục lỗi E-62 máy giặt Electrolux không cần thợMã lỗi E-62 Máy giặt Electrolux là gì?Các bộ phận liên quan đến mã lỗi…
Tủ Lạnh Sharp Lỗi H-35 Nguy Cơ Không Thể Sửa Chữa!
Mục ChínhQuy Trình Tự Sửa Lỗi H-35 Tủ Lạnh Sharp Từng Bước An ToànMã lỗi H-35 trên tủ lạnh Sharp là gì?Nguyên nhân gây lỗi…
Tủ lạnh Sharp nháy lỗi H-34 Cuộc chạy đua với thời gian!
Mục ChínhTủ lạnh Sharp nháy lỗi H-34 Cuộc chạy đua với thời gian!Tìm Hiểu Lỗi H-34 Trên Tủ Lạnh Sharp Là Gì?Nguyên nhân phổ biến…
Hậu quả nghiêm trọng từ lỗi H-30 trên tủ lạnh Sharp
Mục ChínhHậu quả nghiêm trọng từ lỗi H-30 trên tủ lạnh SharpLỗi H-30, H-31, H-32, H-33 tủ Lạnh Sharp là gì?Tầm quan trọng của các…