A collection of command-line samples for the Play Developer Publishing API.
- Download Google APIs Client Library for Python (google-api-python-client): https://code.google.com/p/google-api-python-client/
or use pip:
$ pip install google-api-python-client
- Make sure you can import the client library:
$ python
>>> import apiclient
>>>
- Install the project as a library:
$ python setup.py install --user
- Fill in deployment information of the app in the
request_with_SA.py
file:
4.1 API authentication - as specified in OAth2 section below 4.2 Application package information and release information 4.3 Deployment store listing information
- Call the API functions in main()
-
In Google Play Console, create a Service Account with P12 key
-
Grant access to the service account, download the key file and save as
key.p12
. -
Go to the
request_with_SA.py
file and enter the account related information -
Try to get listings of an application from Play Store (Please note that you will not be able to manage an application via scripting if it does not exist in Play Store yet!)
All the modification to the app is contained in an Edit ( https://developers.google.com/android-publisher/api-ref/edits )
Create an Edit and then make changes, then commit the Edit.