title: Google play game service error code 400
body: <p>There is an app that uses play games service, but by some reason it stops working.
  it looks some times i can login successfully but usually - no. if i checked API traffic there is about 10% got response code = 200, and others - 404. </p>
  
  <p>methods that get 404:</p>
  
  <ul>
  <li>games.applications.played</li>
  <li>games.events.record</li>
  </ul>
  
  <p>when i tried to check error in log i see:</p>
  
  <pre><code>11705-13707/com.google.android.gms W/GamesServiceBroker: Client connected with SDK 12171000, Services 11975436, and Games 54390036
  11705-9262/com.google.android.gms E/BoundService: No such BoundService for action: com.google.android.gms.auth.APP_CERT
  11705-9262/com.google.android.gms E/BoundService: No such BoundService for action: com.google.android.gms.auth.APP_CERT
  691-778/system_process E/PROXIMITY: ProximitySensor: unknown event (type=3, code=0)
  8876-8890/com.agminstruments.drumpadmachine V/FA: Inactivity, disconnecting from the service
  691-778/system_process E/PROXIMITY: ProximitySensor: unknown event (type=3, code=0)
  2254-2269/? I/PerfService: PerfServiceNative_getPackName
  11705-16860/com.google.android.gms E/Volley: [3966] BasicNetwork.performRequest: Unexpected response code 400 for https://www.googleapis.com/games/v1/players/me?language=ru-RU
  11705-9262/com.google.android.gms E/PlayerAgent: Unable to load player g08394879143000804289
  11705-9262/com.google.android.gms W/PlayerAgent: {"errors":[{"domain":"global","reason":"invalid","message":"Invalid applicationId with value . Reason: No application ids specified."}],"code":400}
  3978-3978/com.google.android.play.games.ui I/SignInActivity: Transition from 8 to 11
  3978-3978/com.google.android.play.games.ui W/SignInActivity: onSignInFailed()...
  3978-3978/com.google.android.play.games.ui W/SignInActivity: Sign in failed during 8
  3978-3978/com.google.android.play.games.ui W/SignInActivity: ==&gt; Returning non-OK result: 10002
  </code></pre>
  
  <p>i not understand why there is no ID in the message "Invalid applicationId with value ." because i've added id into the application. also i've tried to change the ID, and in this case i got an error that ID XXXXXXXXXXXX not linked with app my.package.name.</p>
  
  <p>also i've double checked <code>Application ID</code>, <code>SHA</code> fingerprints , re-import <code>google-services.json</code> also tried to add manually <code>OAuth2 Client ID</code> from linked apps. check play services instruction and everything looks ok. 
  what more i can check?  </p>
  
  <p><strong>Update:</strong></p>
  
  <p>tried to update play-servies to 11.8.0 and use <code>GoogleSignInClient</code></p>
  
  <pre><code> mGoogleSignInClient = GoogleSignIn.getClient(application, GoogleSignInOptions.DEFAULT_GAMES_SIGN_IN);
   activity.startActivityForResult(mGoogleSignInClient.getSignInIntent(), 312);
  </code></pre>
  
  <p>but also got an error:</p>
  
  <pre><code>com.google.android.gms.common.api.ApiException: 4: 
  </code></pre>