限定公開アプリを公開する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Google Play Custom App Publishing API を使用して公開されるアプリは、
できます。軽量な検証プロセスの対象になります。
その結果、公開時間がわずか 5 分に短縮されました。
(Google Play Console では 2 時間以上かかります)。
企業向けの限定公開アプリを公開するには、
Accounts.customApps.create
企業のデベロッパー アカウント ID をパラメータとして渡します。必須のフィールドは
リクエストの本文は、アプリのタイトルとアプリのデフォルトの掲載情報です。
あります。公開する限定公開アプリも、次の要件を満たしていることを確認してください。
要件:
- パッケージ名は Google Play に固有のものです(デベロッパー アカウントに固有のものだけではありません)。
- アプリのタイトルはデベロッパー アカウントに固有のものです。
例
Path apkPath = Paths.get("PATH_TO_APK");
ByteArrayContent apk =
new ByteArrayContent("application/octet-stream", Files.readAllBytes(apkPath));
CustomApp appMetadata =
new CustomApp()
.setTitle("APPLICATION TITLE")
.setLanguageCode("en_US")
.setOrganizations(
List.of(
new CustomAppOrganization()
.setOrganizationId("C0123wxyz")
.setOrganizationName("My organization")));
CustomApps.Create request =
apiClient.accounts() // Playcustomapp apiClient
.customApps()
.create(DEV_ACCOUNT_ID, appMetadata, apk);
CustomApp response = request.execute();
System.out.println(response);
成功すると、アプリがデベロッパー アカウントの公開済みリストに表示されます。
すぐに Play Console から削除します。アプリを配布できるようになります
エンドユーザーに提供します。
デフォルトでは、公開された限定公開アプリは組織のみが使用できます
デベロッパー アカウントにリンクされています。アクセス権を割り当てる組織を設定するには、
限定公開アプリを使用できるようにするには、その組織 ID を
organizations
プロパティ。
限定公開アプリの配布
限定公開アプリは、公開されると自動的に承認されますが、自動では承認されません
ユーザーが明示的にアクセスを許可していない限り、
すべての承認済みアプリに適用されます。この機能は、EMM コンソールで有効にできます。
Users.setAvailableProductSet
(productSetBehavior
を "allApproved"
に設定)。
同じ呼び出しを使用して、IT 管理者が特定のアプリを許可リストに登録することもできます。
(productSetBehavior
を "whitelist"
に設定)。
ユーザーの managed Google Play ストアにアプリを追加する方法について詳しくは、
ストアのカスタム レイアウトを作成するをご覧ください。
限定公開アプリの更新
企業のお客様に可能な限り最高のユーザー エクスペリエンスを提供できるよう、
限定公開アプリの公開は
アプリやストアとまとめて行うことをおすすめします
Google Play Publishing API を通じて利用できる掲載情報の更新機能。
これにより、IT 管理者は限定公開アプリを公開、編集、更新できるようになります。
EMM コンソールや IDE から直接行えます。Compute Engine インスタンスと同じサービス アカウントを
Google Play Publishing API を承認するため、限定公開アプリの公開用に作成したアプリ
できます。
貴社または貴社のお客様は、限定公開アプリやストアも更新できます
(詳しくは、Google Play Console ヘルプセンターをご覧ください)。
クライアント ライブラリを使用してコーディングを開始する
Google Play Custom App Publishing API のクライアント ライブラリは
Java、
Python
.NET、
Ruby があります。
Android Enterprise の詳細
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-31 UTC。
[null,null,["最終更新日 2025-08-31 UTC。"],[[["\u003cp\u003eThe Google Play Custom App Publishing API enables publishing private apps for enterprises, subject to a lighter verification process compared to public apps.\u003c/p\u003e\n"],["\u003cp\u003ePrivate apps are automatically approved upon publishing but require explicit IT admin authorization for user access via an EMM console.\u003c/p\u003e\n"],["\u003cp\u003ePrivate apps can be updated programmatically through the API or manually via the Google Play Console by developers or enterprise customers.\u003c/p\u003e\n"],["\u003cp\u003eClient libraries for the API are available in Java, Python, .NET, and Ruby for streamlined integration into existing workflows.\u003c/p\u003e\n"]]],[],null,["# Publish a private app\n\nApps published through the Google Play Custom App Publishing API can never be\nmade public. They're subject to a lighter weight verification process than\npublic apps as a result, reducing publishing time to as little as five minutes\n(compared to over two hours via the Play Console).\n\nTo publish a private app for an enterprise, call\n[`Accounts.customApps.create`](/android/work/play/custom-app-api/v1/accounts/customApps/create),\npassing the enterprise's developer account ID as a parameter. The only required fields in\nthe request body are the title of the app and the app's default listing\nlanguage. Make sure that any private app you publish also meets the following\nrequirements:\n\n- The package name is unique to Google Play (not just unique to the developer account).\n- The title of the app is unique to the developer account.\n\nExample\n-------\n\n Path apkPath = Paths.get(\"PATH_TO_APK\");\n ByteArrayContent apk =\n new ByteArrayContent(\"application/octet-stream\", Files.readAllBytes(apkPath));\n\n CustomApp appMetadata =\n new CustomApp()\n .setTitle(\"APPLICATION TITLE\")\n .setLanguageCode(\"en_US\")\n .setOrganizations(\n List.of(\n new CustomAppOrganization()\n .setOrganizationId(\"C0123wxyz\")\n .setOrganizationName(\"My organization\")));\n\n CustomApps.Create request =\n apiClient.accounts() // Playcustomapp apiClient\n .customApps()\n .create(DEV_ACCOUNT_ID, appMetadata, apk);\n\n CustomApp response = request.execute();\n System.out.println(response);\n\nIf successful, the app will appear in the developer account's list of published\napps in the Play Console immediately. The app will be available for distribution\nto end users within five minutes.\n\nBy default, the published private app is only available to the organization\nlinked to the developer account. To set the organizations to which the\nprivate app should be made available, add the organization IDs to the\n`organizations` property.\n\n### Distributing private apps\n\n| **Note:** You must be a member of the [Android EMM Developer\n| Community](https://emm.androidenterprise.dev/) to use the Google Play EMM API to enable private app distribution. For more information, see the [EMM developer's\n| overview](/android/work/overview).\n\nPrivate apps are automatically approved when published, but aren't automatically\navailable to a user unless an enterprise IT admin explicitly grants them access\nto all approved apps. You can enable this feature in your EMM Console using\n[Users.setAvailableProductSet](/android/work/play/emm-api/v1/users/setAvailableProductSet)\n(set `productSetBehavior` to `\"allApproved\"`).\n\nYou can also use the same call to enable IT admins to allowlist specific apps\nfor a user (set `productSetBehavior` to `\"whitelist\"`).\nFor more information about how to add apps to a user's managed Google Play store,\nsee [Create custom store layouts](/android/work/play/emm-api/store-layout).\n\nUpdating a private app\n----------------------\n\nTo provide the best possible user experience for your enterprise customers,\nwe recommend integrating private app publishing alongside the app and store\nlisting update features available through the [Google Play Publishing API](https://developers.google.com/android-publisher/).\nDoing so gives IT admins the ability to publish, edit, and update private apps\ndirectly from your EMM console or IDE. You can use the same service account that\nyou created for private app publishing to authorize Google Play Publishing API\nrequests.\n\nYou or your enterprise customer can also update private apps and their store\nlisting details from the Play Console (for more information, see the [Play Console help center](https://support.google.com/googleplay/android-developer/)).\n\nStart coding with our client libraries\n--------------------------------------\n\nClient libraries for the Google Play Custom App Publishing API are available in\n[Java](https://developers.google.com/api-client-library/java/apis/playcustomapp/v1),\n[Python](https://developers.google.com/api-client-library/python/apis/playcustomapp/v1),\n[.NET](https://developers.google.com/api-client-library/dotnet/apis/playcustomapp/v1),\nand [Ruby](https://developers.google.com/api-client-library/ruby/apis/playcustomapp/v1).\n\nLearn more about Android Enterprise\n-----------------------------------\n\n- For more information about developing an EMM solution for Android, see [Android Enterprise](https://developers.google.com/android/work/).\n- For information about best practices for developing Android apps for enterprise distribution, see [Android for\n enterprise](https://developer.android.com/work/)."]]