Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.

Developer Console v2

willlunniss edited this page Aug 5, 2012 · 25 revisions

A collection of information on the new 'v2' of the Android Developer Console.

Sign up for the new console here. Note that Google lets you switch between the old and new so you can still access the old one via Andlytics.

Andlytics issue link.

General comments

Firstly this is different and will definately require a seperate branch for development. I imagine we should be able to get it ready fairly early before v2 is available for all users. At which point we can switch to the new version.

It appears to be structured in a better way compared to the old one, it may even be possible to use a proper JSON parser for it.

Active/total installs is not provided in the main overview anymore, so we will have to get it from the /statistics requests which contains the full historical data broken down by category for all the different install metrics (so 2 requests per app for active and total). Number of ratings and comments are also seperated out as well.

Login/XSRF Token

TODO

App data

Number of requests needed: 1 per account

Request: POST https://play.google.com/apps/publish/v2/androidapps?dev_acc=DEV_ACCOUNT_ID

Payload: {"method":"fetch","params":[,,1,1],"xsrf":"XSRF_TOKEN"}

Response:

{"result" : [ null,
      [ [ null,
          [ null,
            "PACKAGENAME",
            [ null,
              [ [ null,
                  "en-US",
                  "NAME",
                  "DESCRIPTION"
                  "",
                  "LAST_WHATS_NEW"
                ] ],
              [ null,
                0,
                24,
                1
              ]
            ],
            null,
            [ [ null,
                null,
                [ null,
                  null,
                  "PACKAGENAME",
                  VERSION_NUMBER,
                  "VERSION_NAME,
                  null,
                  [ null,
                    null,
                    null,
                    "APP_ICON_URL"
                  ]
                ],
                2
              ],
              .....
              LIST OF VERSIONS
              .....
            ],
            [ null,
              "PRICE",
              "GBP"
            ],
            "1343835459797", -- DATE?
            1
          ]
        ],
        .....
        LIST OF APPS
        .....
      ]
    ],
  "xsrf" : "XSRF_TOKEN"
}

Use: List of all apps and some of their version info

Stats

First request

Number of requests: 1 per app

Request: POST https://play.google.com/apps/publish/v2/statistics?dev_acc=DEV_ACCOUNT_ID

Payload: {"method":"getSupportedMetrics","params":[,"PACKAGE_NAME"],"xsrf":"XSRF_TOKEN"}

Response: {"result":[null,0],"xsrf":"XSRF_TOKEN"}

Use: Not sure

App stats

Number of requests: 1 for active and 1 for total per app. (lots more if we want it broken down by the STATS_TYPE metrics)

Request: POST https://play.google.com/apps/publish/v2/statistics?dev_acc=DEV_ACCOUNT_ID

Payload: {"method":"getCombinedStats","params":[,"PACKAGE_NAME",1,STATS_TYPE_INDEX,[STATS_BY_INDEX]],"xsrf":"XSRF_TOKEN"}

STATS_TYPE_INDEX Key: 1 = Active installs, ... 8 = Total user installs ...

STATS_BY_INDEX Key: Data by: 1 = Android version, 2 = Device, 3 = Country, 4 = Language, 5 = App version, 6 = Carrier

Reponse (For active installs by android version):

{ "result" : [ null,
      [ null,
        [ null,
          [ [ null,
              "1327737599999", -- Day 1
              "5"
            ],
            ....
            Active installs by day
            ....
            [ null,
              "1344063599999", -- TODAY
              "ACTIVE_INSTALLS"
            ]
          ]
        ],
        [ null, -- Active installs by API, ordered most by API version today to last by API version today
          [ [ null,
              [ [ null,
                  "1327823999999",
                  "0"
                ],
                ....
                Active installs by day for android API 15
                ....
                [ null,
                  "1344063599999",
                  "4066"
                ]
              ],
              null,
              null,
              "15",
              "Android 4.0.3 - 4.0.4" -- VERSION
            ],
            
          ....
		  List by version
		  ....
          [ null,
            [ null,
              [ [ null,
                  "API e.g. 15",
                  "INSTALLS",
                  "VERSION RANGE e.g. Anroid 4.0.3 - 4.0.4"
                ],
                ....
                List of overview data
                ....
              ]
            ],
            null,
            [ null, -- Percentage data for my app
              [ [ null,
                  0.4757224757224757,
                  "Android 4.0.3 - 4.0.4",
                  "Android 4.0.3 - 4.0.4"
                ],
                ....
              ]
            ],
            null,
            [ null, -- All aps in category
              [ [ null,
                  "API",
                  "ACTIVE_INSTALLS_BY_VERSION",
                  "VERSION_RANGE",
                  0.18342732537584786
                ],
                ....
              ]
            ],
            null,
            [ null,
              [ [ null, -- Total
                  0.581975898262862,
                  "Android 2.3.3 - 2.3.7",
                  "Android 2.3.3 - 2.3.7"
                ],
                ....
              ]
            ],
            null,
            "1344063599999", -- DATE
            24, -- NOT SURE
            "ACTIVE_INSTALLS"
          ]
        ],
        null,
        null,
        null,
        null,
        null,
        "APP_NAME"
      ]
    ],
  "xsrf" : "XSRF_TOKEN"
}

Ratings/Comments

Ratings

Number of requests: 1 per app

Request: POST https://play.google.com/apps/publish/v2/reviews?dev_acc=DEV_ACCOUNT_ID

Payload: {"method":"getRatings","params":[,["PACKAGE_NAME"]],"xsrf":"XSRF_TOKEN"}

Response:

{ "result" : [ null,
      [ [ null,
          "PACKAGE_NAME",
          "NUM_1_STARS",
          "NUM_2_STARS",
          "NUM_3_STARS",
          "NUM_4_STARS",
          "NUM_5_STARS"
        ] ]
    ],
  "xsrf" : "XSRF_TOKEN"
}

Comments

Number of requests: 1 per app

Request: POST https://play.google.com/apps/publish/v2/reviews?dev_acc=DEV_ACCOUNT_ID

Payload: {"method":"getReviews","params":[,"PACKAGE_NAME",START_INDEX,NUMBER_OF_COMMENTS_TO_FETCH] ,"xsrf":"XSRF_TOKEN"}

Response:

{ "result" : [ null,
      [ [ null,
          "gaia:17919762185957048423:1:vm:11887109942373535891", -- ID?
          "REVIEWERS_NAME",
          "1343652956570", -- DATE?
          RATING,
          "VERSION_NAME",
          "COMMENT",
          null,
          null,
          [ null,
            "USER",
            "DEVICE_MANFACTURER",
            "DEVICE_MODEL"
          ],
          "LOCALE",
          null,
          0
        ],
        ....
        List of comments
        ....
      ],
      "TOTAL_COMMENTS"
    ],
  "xsrf" : "XSRF_TOKEN"
}

Clone this wiki locally