How can I reset achievements from Google Game Services?
I'm testing my game using Google's new Games Services, and I'd like to reset my account's achievements for testing.
I've found that you can reset achievements using google's APIs (https://developers.google.com/games/services/management/api/#Achievements) and I'm using the OAuth 2.0 playground to send the POST request, but it's not working :(
Specifically, I'm a sending POST request for "https://www.googleapis.com/games/v1management/achievements/reset" as detailed in that link.
AND, when I go to code.google com and check my Services, all the Play services are "ON".
Here is the output. How can I reset my achievements for testing? Am I even close? Apparently my "access is not configured" How do I do that? What was the point of the whole first 2 steps of the OAuth2.0 playground if not to grant my access?
This is how I got it to work:
Open the Google Play Developer Console, go to Linked Apps under Game Services and click Link another App -> Web, for the URL use https://developers.google.com/oauthplayground and complete the setup of this linked app. Make sure the same URL is listed as an authorized redirect URI.
Go to https://developers.google.com/oauthplayground and click on the gears icon in top right, select Use your own OAuth credentials, and copy the Client ID and Client secret for your Web app from https://code.google.com/apis/console.
For the Scope in OAuth Playground's Step 1 use https://www.googleapis.com/auth/games, which is found under Google Play Game Services API.
Do a POST to https://www.googleapis.com/games/v1management/achievements/reset or https://www.googleapis.com/games/v1management/achievements/resetAllForAllPlayers or whatever, leave all other options as is.
Profit :)
Note:
At first I was doing step 2. after step 3. and it gave me the 403
You must set your Client ID & Client Secret in Google Playground.
Click to right side of top "Setting Button". Set your credential information to there.
Finally click to first tab from left side of page. Select scopes and Authorize!
I couldn't get the POST request to work either, but you can reset your achievements by deleting and re-adding your tester account.
There's now a Reset button for draft Achievements and Leaderboards in the bottom of each entry.
Check out this tool which google has provided in their GitHub Repo
https://github.com/playgameservices/management-tools/tree/master/demo-management-tools
Using the tool you can manage Google Play Games Management API to manage and test Google Play Games Features which includes resetting of the Achievements and Leaderboard.
As WeirdElfBOy said, there is a reset button inside every achievement in your developer console. But the following requirements must be fulfilled to get the reset work:
After pressing the reset, it needs long time to reset, in my test it needed about 1 hour, but maybe could be longer or shorter.
So for reset an achievement, you don´t need to use ManagementAPI.
But there is a little issue, I think it´s on Googles site and I reported it to Google. The reset doesn´t work on incremental achievements.
Open the Google Play Games app on your phone, go to settings, and then select "Delete Play Games data", scroll down, and delete data from your game.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.