准备好与玩家分享最新的游戏更改后,即可发布这些更改。发布游戏更改会让您的游戏的公开用户能够使用您配置的 Play 游戏服务。这与发布游戏 APK 不同,并且不会在 Play 商店中显示与您的游戏相关的任何信息。这意味着,您的游戏 APK 的所有用户都将能够使用 Play 游戏服务功能(例如登录功能),而无需单独将用户添加为测试人员,也无需向用户授予发布轨道的访问权限。
在 Play 管理中心内进行的 Play 游戏服务更改最多可能需要 2 小时才能供最终用户使用。请确保在 Play 商店上架游戏之前至少 2 小时发布 Play 游戏服务游戏项目,否则用户在使用 Play 游戏服务功能(包括登录功能)时可能会遇到问题。发布 Play 游戏服务游戏项目将为您的游戏启用 Play 游戏服务,但不会在 Play 商店上架或公开显示您的游戏。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Test and publish your game\n\nTo ensure that Google Play Games Services are functioning correctly in your application, you\nshould test your Play Games Services before publishing your game changes on Google\nPlay.\n\nEnable accounts for testing\n---------------------------\n\nIf your game is in an unpublished state, you must allowlist the user accounts\nthat you want to grant access for testing. Otherwise, your testers will\nencounter OAuth and 404 errors when attempting to access the Play Games Services\nendpoints such as [sign-in](/games/pgs/signin).\n| **Warning:** Remember to add **yourself** as a tester, or the Play Games SDK won't work for your user account.\n\nThere are two ways to enable testers to use PGS APIs for your game:\n\n- At an individual level, by adding individual email addresses.\n- At a group level, by enabling Play Games Services for a Play Console release track.\n\nTo add individual testers to your game project:\n\n1. In the [Google Play Console](https://play.google.com/apps/publish/), select a game.\n2. Open the **Testers** tab for your game in the Google Play Console (**Grow \\\u003e\n Play Games Services \\\u003e Setup and\n management \\\u003e Testers**).\n3. Click the **Add testers** button.\n4. In the dialog that appears, enter the email addresses of the Google Accounts that you want to add as testers (separated with commas or one email address per line).\n5. Click **Add** to save the users as testers. The tester accounts you added should be able to access your Play Games Services within a couple of hours.\n\nTo give testing access to a group, enable a release track to access PGS:\n\nGoogle Play distributes pre-release versions of your app to\ncontrolled groups of trusted users with the release track features. See\n[Set up an open, closed, or internal test](https://support.google.com/googleplay/android-developer/answer/9845334)\nto learn more about testing with release tracks.\n\nYou can grant access to test your game to all users who have access to test APKs\non a given release track. This works the same as if you had added them to the\ntester list individually. To do this, follow these steps:\n\n1. In the [Google Play Console](https://play.google.com/apps/publish/), select a game.\n2. Open the **PGS Testers** section (**Grow \\\u003e Play Games Services \\\u003e\n Setup and management \\\u003e Testers** ) and select the **Release tracks** tab. On this page, you can also see the list of tracks that are already enabled for PGS testing.\n3. Click **Add tracks**.\n4. Select one or more tracks to enable for PGS testing.\n5. Click **Add Tracks**.\n\nThe selected release tracks now appears on the list of tracks enabled for\nPGS testing.\n| **Note:** This feature is only available if you have an Android app linked to your game in Google Play Console.\n\nPublish game changes\n--------------------\n\nOnce you are ready to share your latest game changes with players, it's time\nto publish them. Publishing your game changes makes the Play Games Services that\nyou have configured available to public users of your game. This is different\nfrom publishing your game APK and won't display any information about your\ngame on the Play Store. Instead, it means that all users with your game APK will\nbe able to access Play Games Services features, such as sign-in, without needing\nto be added individually as a tester or be given access to a release track.\n\nIt can take up to 2 hours for Play Games Services changes made in\nPlay Console to be ready for end users. Ensure that your\nPlay Games Services game project is published at least 2 hours before your game\ngoes live on the Play Store, or users may have trouble using Play Games Services\nfeatures (including sign-in). Publishing your Play Games Services game project\nenables Play Games Services for your game. However, it does not make your game\navailable or visible on the Play Store.\n\nTo publish your Play Games Services changes:\n\n1. In the [Google Play Console](https://play.google.com/apps/publish/), select a game.\n2. Open the **Publishing** section for your game in the Play Console (**Grow \\\u003e Play Games\n Services \\\u003e Setup and\n management \\\u003e Publishing**), then follow the instructions on that screen to publish your game.\n3. If there are missing or incorrectly configured items that are preventing you from publishing your game, the **Publishing** section will tell you what those items are so that you can fix them.\n\nThe data for listed testers for the game is not automatically deleted when you\npublish the game changes. To delete data for testers, use the\n[Play Games Services Management APIs](/games/pgs/management).\n| **Note:** If you are using leaderboards and achievements in your game, these game features may not be immediately reflected under your game's listing in the Google Play Store until your users start earning achievements and posting scores."]]