Get started with custom app publishing Stay organized with collections Save and categorize content based on your preferences.
Page Summary
The Google Play Custom App Publishing API allows EMMs, third-party developers, and organizations to enable enterprise customers to publish private apps directly.
Private apps are only available within an enterprise's managed Google Play store and cannot be accessed outside the enterprise.
Before using the API, you need to enable it for a project, create a service account, and grant publishing permission to that account on your Play Console.
You also need to retrieve your developer account ID from the Play Console URL after completing the setup.
The Google Play Custom App Publishing API is intended for enterprise mobilitymanagement providers (EMMs), third-party app developers, and other organizationswho want to enable their enterprise customers to publish private apps (alsocalledcustom apps) directly from their end-user interface.
An enterprise customer is an organization that usesmanaged Google Play to distribute workapps to employees. Each enterprise customer maintains their ownmanaged Google Play store, which can includeboth public and private apps.Private appsaren't available outside the enterprise—only users with access to theenterprise's managed Google Play store can view and install private apps.
Note: Custom app publishing is designed for private apps that are used by asingle enterprise customer or apps that contain sensitive data. If an app isintended for multiple enterprise customers and/or requires authentication toaccess any sensitive data, then considerpublishing the app to the public Google Play store.Preliminary setup
Before you can publish private apps using the Google Play Custom App Publishing API, youneed to first enable the Google Play Custom App Publishing API for a project,create a service account, and grant publishing permission to this account on your Play Console developer account.
Enable the Google Play Custom App Publishing API
To enable the Google Play Custom App Publishing API for a project, follow thesesteps:
Open theGoogle API Console. If you don't have a Google account, selectMore options >Create account and then fill in the form to create anaccount. If you have a Google account, sign in if prompted.
From the projects list, select a project orcreate a project.
Search the API Library for the Google Play Custom App Publishing API. Toenable the API, select it and then clickenable.
Create a service account
With the same project for which you've enabled the Google Play Custom App Publishing API, follow these steps to create a service account:
Open theGoogle API Console. Login if prompted.
From the projects list, choose the project that you selected or created when enabling the API.
From the main menu, selectIAM & Admin >Service accounts >Create service account.
Enter a name for your service account and selectFurnish a new private key. Then clickCreate.
Take note of the service account's email address and store the service account'sprivate key file in a location accessible to your application. Your applicationneeds them to make authorized calls to the Google Play Custom App Publishing API.
Grant publishing permission to the service account
To grant publishing permission to the service account you've created, follow these steps:
Open thePlay Console
Select an existing developer account or create a new one.
Note: Owner account of your developer account should also be an admin of the enterprise customer you wish to publish the private app to.Follow the steps mentioned ingive users access document to give the permission tocreate and publish private apps to the service account's email address.
Retrieve the developer account ID
After the setup and permission process is complete, take a note of developer account ID from the Play Console URL:
https://play.google.com/console/developers/123456
You need to pass the developer account ID as a parameter when youpublish private apps for the user'senterprise.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.