Zarządzanie ustawieniami projektu usług gier Play w Google Cloud Platform
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Czasami możesz chcieć wyświetlić i zmodyfikować projekt Usługi gier Play bezpośrednio w Google Cloud Platform.
Typowe scenariusze to:
Włącz dodatkowe interfejsy API dla projektu (np. Dysk Google).
Edytowanie informacji o brandingu gry w oknie OAuth 2.0.
Wyświetlanie limitu interfejsu API i w razie potrzeby prośba o jego zwiększenie.
edytować autoryzowane identyfikatory URI lub źródła kodu JavaScript w identyfikatorach klientów utworzonych wcześniej.
Wyświetlanie projektu
Aby wyświetlić projekt w Google Cloud Platform:
Wybierz dane logowania do gry na stronie Konfiguracja (Rozwój > Usługi gier Play > Konfiguracja i zarządzanie > Konfiguracja).
Przewiń do dołu sekcji Uwierzytelnianie i kliknij Wyświetl w Google Cloud Platform.
Dostosowywanie limitów korzystania z interfejsu API
W Google Cloud Platform możesz sprawdzić limity wykorzystania interfejsu API skonfigurowane obecnie dla Twojej gry oraz wykorzystaną ilość limitu. Możesz też ustawić limity na użytkownika, aby zapobiec wyczerpaniu limitu przez użytkownika naruszającego zasady (lub przez wadliwy klient gry).
Aby wyświetlić lub zmienić limity wykorzystania w projekcie albo poprosić o zwiększenie limitu, wykonaj te czynności:
Aby wyświetlić i zmienić ustawienia związane z limitami, kliknij Limity. Aby wyświetlić statystyki użytkowania, kliknij Użycie.
Pamiętaj, że „użytkownicy” są określani na podstawie adresu IP klienta, który wysyła żądanie dotyczące limitu. Jeśli na przykład wszystkie żądania pochodzą z jednego serwera, może on zostać błędnie oznaczony jako jeden spamujący użytkownik.
Aby temu zapobiec, możesz dołączyć argument userIp=x.x.x.x do żądań punktu końcowego interfejsu API.
Więcej informacji o ustawianiu limitów na użytkownika znajdziesz w dokumentacji Google Cloud Platform.
Oprócz limitu na użytkownika istnieje również limit dzienny dla interfejsu API Usług gier Google Play, który dotyczy całej aplikacji. Zazwyczaj nie musisz zmieniać wstępnie przydzielonego limitu. Jeśli jednak przewidujesz duży wzrost liczby wyświetleń (np. w przypadku nadchodzącego wydarzenia), możesz poprosić o dodatkowy limit, klikając link Poproś o więcej.
Aktywowanie innych interfejsów API
Gdy utworzysz identyfikator klienta w Konsoli Play, interfejs API Usługi gier Google Play zostanie automatycznie włączony w Twoim projekcie. Możesz aktywować inne interfejsy API Google w Google Cloud Platform.
Aby włączyć interfejs API w projekcie:
Otwórz Bibliotekę API w konsoli interfejsów API Google. Jeśli pojawi się monit, wybierz projekt lub utwórz nowy.
Biblioteka API zawiera listę wszystkich dostępnych interfejsów API, pogrupowanych według rodziny produktów i popularności.
Jeśli interfejs API, który chcesz włączyć, nie jest widoczny na liście, znajdź go za pomocą wyszukiwarki.
Wybierz interfejs API, który chcesz włączyć, a następnie kliknij przycisk Włącz.
Jeśli pojawi się taka prośba, włącz płatności.
Jeśli pojawi się taka prośba, zaakceptuj Warunki korzystania z interfejsu API.
Modyfikowanie informacji o brandingu
Aby zmodyfikować informacje o brandingu (tytuł, logo itp.) gry, które pojawiają się w oknie dialogowym OAuth 2.0, ustaw atrybuty na ekranie zgody w Google Cloud Platform.
Aby skonfigurować ekran zgody w projekcie:
Otwórz [ekran zgody](https://console.developers.google.com/apis/credentials/consent) w Konsoli Play. Jeśli pojawi się monit, wybierz projekt lub utwórz nowy.
Wypełnij formularz i kliknij Zapisz.
Modyfikowanie atrybutów związanych z identyfikatorem klienta
Aby zmodyfikować atrybuty związane z identyfikatorem klienta OAuth 2.0 (np. źródła internetowe i adresy URL przekierowań aplikacji internetowej):
Otwórz Konsolę Play i przejdź do swojej gry.
Wybierz dane logowania do gry na stronie Konfiguracja (Rozwój > Usługi gier Play > Konfiguracja i zarządzanie > Konfiguracja).
Przewiń do dołu sekcji Uwierzytelnianie i kliknij Wyświetl w Google Cloud Platform.
W Google Cloud Platform wybierz swój projekt.
Na pasku bocznym po lewej stronie wybierz Interfejsy API i autoryzacja. Sprawdź, czy stan interfejsu API Usług Google Play Games jest WŁĄCZONY na wyświetlonej liście interfejsów API.
Na pasku bocznym po lewej stronie kliknij Zarejestrowane aplikacje.
Rozwiń sekcję Identyfikator klienta OAuth 2.0 i znajdź atrybut, który chcesz edytować.
Treść strony i umieszczone na niej fragmenty kodu podlegają licencjom opisanym w Licencji na treści. Java i OpenJDK są znakami towarowymi lub zastrzeżonymi znakami towarowymi należącymi do firmy Oracle lub jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-08-30 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-08-30 UTC."],[],[],null,["There may be instances where you will want to view and edit your\nPlay Games Services project directly in Google Cloud Platform.\n\nTypical scenarios include:\n\n- Enabling additional APIs for your project (such as Google Drive).\n- Editing the branding information for your game in the OAuth 2.0 dialog.\n- Viewing your API quota and requesting more (if necessary).\n- Editing authorized URIs or JavaScript origins in Client IDs that you've created in the past.\n\nView your project\n\nTo view your project in Google Cloud Platform:\n\n1. Select a credential for your game on the **Configuration** page (**Grow \\\u003e Play Games\n Services \\\u003e Setup and\n management \\\u003e Configuration**).\n2. Scroll to the bottom of the **Authentication** section and click **View in\n Google Cloud Platform**.\n\nAdjust API usage quotas\n\nIn Google Cloud Platform, you can view the API usage limits currently set up for\nyour game and the amount of quota that has been used. You can also set per-user\nlimits to prevent an abusive user (or a buggy game client) from depleting your\nquota.\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\nBe aware that \"users\" are determined based on the IP address of the\nclient making the quota request. For instance, if all of your requests came from\na single server, that server might be erroneously tagged as a single spammy user.\nTo prevent this, you can attach a `userIp=x.x.x.x` argument to your API endpoint\nrequests.\n\nTo learn more about setting per-user quotas, see\nGoogle Cloud Platform [documentation](/console/help#cappingusage).\n\nIn addition to a per-user limit, there is an application-wide\nper-day limit for the Google Play Games Services API. Typically, you\nwill not need to change the pre-allocated limit. However, if you anticipate a\nlarge spike in volume (for example, for an upcoming launch event), you can\nrequest for additional quota by clicking the **Request more** link.\n\nActivate other APIs\n\nWhen you create your client ID in Play Console, the\nGoogle Play Games Services API is automatically turned on for your project. You\ncan activate other Google APIs from Google Cloud Platform.\n\nTo enable an API for your project, do the following:\n\n1. [Open the API Library](https://console.developers.google.com/apis/library)\n in Google API Console. If prompted, select a project or create a new one.\n API Library lists all available APIs, grouped by product family and\n popularity.\n\n2. If the API you want to enable isn't visible in the list, use search to\n find it.\n\n3. Select the API you want to enable, then click the **Enable** button.\n\n4. If prompted, enable billing.\n\n5. If prompted, accept the API's terms of service.\n\nModify branding information\n\nTo modify the branding information (title, logo, etc.) for your game that\nappears in the OAuth 2.0 dialog, set the attributes in the consent screen of\nGoogle Cloud Platform.\n\nTo set up your project's consent screen, do the following:\n\n1. 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.\n2. Fill out the form and click **Save**.\n\nModify 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.\n\nTo modify attributes related to your OAuth 2.0 client ID (web\norigins and redirect urls for a web app, etc.):\n\n1. Open Play Console and navigate to your game.\n2. Select a credential for your game on the **Configuration** page (**Grow \\\u003e Play Games\n Services \\\u003e Setup and\n management \\\u003e Configuration**).\n3. Scroll to the bottom of the **Authentication** section and click **View in\n Google Cloud Platform**.\n4. In Google Cloud Platform{, select your project.\n5. 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.\n6. In the sidebar on the left, select **Registered apps**.\n7. Expand the OAuth 2.0 Client ID section and find the attribute to edit."]]