Next generation Player IDs

To further enhance user privacy, PGS uses next generation Player IDs. With next generation Player IDs, users are assigned a different Player ID for each game they play. However, the Player ID remains consistent for a given game (PGS Project) across devices.

Next generation Player IDs will only apply to users who have never authenticated for your game with PGS. Existing users who have already logged into your game will continue to get the same Player ID.

Next generation Player IDs are rolling out gradually and will soon be required for all PGS projects. For details on the rollout plan, see the Android Developers blog post.

Use next generation Player IDs

To support next generation Player IDs, do the following:

  1. In the Google Play Console, select a game.
  2. Navigate to Grow users > Play Games Services > Setup and management > Configuration.
  3. On the configuration page, select Edit properties. This page includes the settings to enable next generation Player IDs, as shown in the following image:
Use next generation IDs setting in Google Play Console with the On radio button selected.
Figure 1. Use next generation IDs setting in Google Play Console.

Before publishing the change to enable next generation Player IDs, use tester accounts to verify that next generation Player IDs don't cause issues with your identity system.

To do this, select On, but don't publish the change. After you select On, the tester accounts return next generation Player IDs for you to test with. This setting applies to all games linked to this PGS project.

After you complete testing, publish the change with your PGS project in the Play Console (under Grow users > Play Games Services > Setup and management > Publishing) so the change takes effect and all new users start receiving next generation IDs.

Test next generation Player IDs

If your game doesn't make the assumption that a Player ID will be consistent across different titles, then we expect that you will be able to enable next generation Player IDs without issues. However, we still recommend testing to confirm there won't be any issues.

We recommend running the following tests:

  • Verify that tester accounts (receiving next generation Player IDs) can authenticate and link their PGS profile with game progress.
  • Optional: Verify that tester accounts can authenticate to the same identity system with the same PGS profile across separate games, and have their progress tracked.

Use the developer player key

If you need a way to identify a user across your titles to offer cross-game user experiences, you can use the developer player key. The developer player key is only accessible through the REST Web APIs. To retrieve the ID:

  1. Create a server-side web app.
  2. Make the following HTTP request:

    GET https://www.googleapis.com/games/v1/players/me/scopedIds

The response will have one field:

developer_player_key (string) - The user's ID which will be the same across a developer's applications in their Google Play Console.

Retrieve a list of Player IDs across your applications

You can also retrieve a list of a user's Player IDs across the applications owned by your developer account. A user only has an ID for games they have signed into with PGS.

  1. Create a server-side web app.
  2. Make the following HTTP request:

    GET https://www.googleapis.com/games/v1/players/me/multipleApplicationPlayerIds