Unity / Google Play Services - Configuration Issues

Hi UnityAnswers,

So this weekend I decided to do a self game jam and release a game on the app store. I’ve finished it but am currently hooking in Google Play Services. I’ve done this twice before, but the other two projects were in Unity 4.

Anyway, here’s what’s happening.


  • I assume the Client ID is what I want but when I put in my game services ID from the google play console, I get the following error:

XmlException: Document element did not appear. Line 1, position 1.

I was hoping to fully release this weekend, but this issue is holding me back. Ah well, but any help would be appreciated! Thanks. :slight_smile:

I was able to figure it out with help from someone on reddit.

Constant Class: this can be whatever you want, just give it a name

Resource Definition: in your google play console, go to game services and to your app. Select either leaderboards or achievements (assuming you’ve set them up) and at the bottom you’ll see the ‘get resources’ link. Click that and paste it into the box in Unity.

Client ID: also in the game services, go down to linked apps (again, assuming you’ve already set this up) and click on your game from the list. At the bottom copy the string under OAuth2 Client ID.


If you don’t want to use Achievements or Leaderboards from the Google Play Console, you can copy and paste the following android resourse text:

 <?xml version="1.0" encoding="utf-8"?>
 <resources> <string
 name="app_id">[your app_id]</string>
 <string name="package_name">[package
 name]</string> </resources>