Skip to content

Latest commit

 

History

History
48 lines (41 loc) · 1.44 KB

File metadata and controls

48 lines (41 loc) · 1.44 KB

gpg-batch-uploader

Google Play Games batch uploader.

This script will batch update Google Play Games localizations for achievements and leaderboards.

How to use

  1. Get the BulkUploader.js file.

  2. Set gpgGameId to your Google Play Games application id.

  3. Fill out/generate the "achievements" structure with all your localizations, here is the spec:

     var achievements = [
       {
         "id": "xxxxxxxxx-xxxxxxxx",
         "position": 1,
         "locales": [
           {
             "code": "locale-code",
             "title": "title text",
             "desc": "desc text",
           },
           // more locales...
         ],
       },
       // more achievements...
     ];
    
  4. Fill out/generate the "leaderboards" structure with all your localizations, here is an example:

      var leaderboards = [
       {
         "id": "xxxxxxxxx-xxxxxxxx",
         "position": 1,
         "locales": [
           {
             "code": "locale-code",
             "title": "title text",
             "suffix": " points",
             "suffixSingular": " point",
             "suffixMany": " points", // only used in ru-RU?
           },
           // more locales...
         ],
       },
       // more leaderboards...
     ];
    
  5. Navigate to the Google Play developer console and paste the entire BulkUploader.js file into the javascript console in Chrome.