-
Notifications
You must be signed in to change notification settings - Fork 181
Developer Console v2
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.
Branch containing work towards it link.
Firstly this is a massive change and we have no timeframe from Google as to when they will roll this out and switch off the old one, so we need to get this working ASAP. We can then hold it back until all users have v2 access, at which point we can roll it out.
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. However, 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. So basically, it should be easier to work with, but might require more requests.
Login now requires more steps that the old on and I think I'm missing a step as I cannot find the ANDROID_DEV cookie. It may also require more cookies than is noted here as this is not working so I'm not sure, I'm listing based on previous login + extra data that I can see being exchanged.
Same as old version (use built in account manager java calls).
Unknown
Request: GET https://play.google.com/apps/publish/v2/?auth=AUTH_TOKEN [HTTP/1.1 302 Moved Temporarily]
Requires cookie: ANDROID_DEV
Gives cookie: AD
Gives location: https://play.google.com/apps/publish/v2/
Request: GET https://play.google.com/apps/publish/v2/ [HTTP/1.1 302 Moved Temporarily]
Requires cookie: ANDROID_DEV
and AD
Gives location: https://play.google.com/apps/publish/v2/?dev_acc=DEV_ACC
Request: GET https://play.google.com/apps/publish/v2/?dev_acc=DEV_ACC [HTTP/1.1 200 OK]
Requires cookie: ANDROID_DEV
and AD
XSRF Token is in entity as JSON: "XsrfToken":"[null,\"XSRF_TOKEN\"]\n"
Number of requests needed: 1 per account
Request: POST https://play.google.com/apps/publish/v2/androidapps?dev_acc=DEV_ACC
Requires cookie: ANDROID_DEV
and AD
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
Number of requests: 1 per app
Request: POST https://play.google.com/apps/publish/v2/statistics?dev_acc=DEV_ACC
Requires cookie: ANDROID_DEV
and AD
Payload: {"method":"getSupportedMetrics","params":[,"PACKAGE_NAME"],"xsrf":"XSRF_TOKEN"}
Response: {"result":[null,0],"xsrf":"XSRF_TOKEN"}
Use: Not sure
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_ACC
Requires cookie: ANDROID_DEV
and AD
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"
}
Number of requests: 1 per app
Request: POST https://play.google.com/apps/publish/v2/reviews?dev_acc=DEV_ACC
Requires cookie: ANDROID_DEV
and AD
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"
}
Number of requests: 1 per app
Request: POST https://play.google.com/apps/publish/v2/reviews?dev_acc=DEV_ACC
Requires cookie: ANDROID_DEV
and AD
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,
"",
"COMMENT",
null,
"VERSION_NAME",
[ null,
"DEVICE_CODE_NAME",
"DEVICE_MANFACTURER",
"DEVICE_MODEL"
],
"LOCALE",
null,
0
],
....
List of comments
....
],
"TOTAL_COMMENTS"
],
"xsrf" : "XSRF_TOKEN"
}