Obtain publishing rights for custom apps on Managed Google Play Store

If you haven't done so before, start by following the first two steps of Googles "Get started with custom app publishing" -> "Preliminary setup" instructions:
"Enable the Google Play Custom App Publishing API" and "Create a service account".
You need the "service account's private key file" to continue.
Run the action and supply the "private key file" to it as the json_key parameter. The command will output a URL to visit. After logging in you are redirected to a page that outputs your "Developer Account ID" - take note of that, you will need it to be able to use create_app_on_managed_play_store.

Supported platforms android
Author @janpio
Returns An URI to obtain publishing rights for custom apps on Managed Play Store

1 Example

  json_key: "path/to/your/json/key/file"
# it is probably easier to execute this action directly in the command line:
# $ fastlane run get_managed_play_store_publishing_rights


Key Description Default
json_key The path to a file containing service account JSON, used to authenticate with Google *
json_key_data The raw service account JSON data used to authenticate with Google *

* = default value is dependent on the user's system


To show the documentation in your terminal, run

fastlane action get_managed_play_store_publishing_rights


It is recommended to add the above action into your Fastfile, however sometimes you might want to run one-offs. To do so, you can run the following command from your terminal

fastlane run get_managed_play_store_publishing_rights

To pass parameters, make use of the : symbol, for example

fastlane run get_managed_play_store_publishing_rights parameter1:"value1" parameter2:"value2"

It's important to note that the CLI supports primitive types like integers, floats, booleans, and strings. Arrays can be passed as a comma delimited string (e.g. param:"1,2,3"). Hashes are not currently supported.

It is recommended to add all fastlane actions you use to your Fastfile.

Source code

This action, just like the rest of fastlane, is fully open source, view the source code on GitHub

Back to actions