เผยแพร่แอปส่วนตัว
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แอปที่เผยแพร่ผ่าน API การเผยแพร่แอปที่กำหนดเองของ Google Play ต้องไม่
เผยแพร่สู่สาธารณะ กระบวนการยืนยันตัวตนที่น้อยกว่า
แอปสาธารณะ ทำให้ลดเวลาการเผยแพร่ได้เหลือเพียง 5 นาที
(เทียบกับ 2 ชั่วโมงผ่าน Play Console)
หากต้องการเผยแพร่แอปส่วนตัวสำหรับองค์กร โปรดโทร
Accounts.customApps.create
การส่งรหัสบัญชีนักพัฒนาแอปขององค์กรเป็นพารามิเตอร์ ช่องที่ต้องกรอกใน
เนื้อหาของคำขอคือชื่อแอปและข้อมูลเริ่มต้นของแอป
ภาษา ตรวจสอบว่าแอปส่วนตัวที่คุณเผยแพร่เป็นไปตามหลักเกณฑ์ต่อไปนี้ด้วย
ข้อกำหนด
- ชื่อแพ็กเกจไม่ซ้ำกันสำหรับ 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 ได้ทันที แอปจะพร้อมเผยแพร่
แก่ผู้ใช้ปลายทางได้ภายใน 5 นาที
โดยค่าเริ่มต้น แอปส่วนตัวที่เผยแพร่แล้วจะใช้ได้เฉพาะกับองค์กรเท่านั้น
ที่ลิงก์กับบัญชีนักพัฒนาซอฟต์แวร์ หากต้องการตั้งค่าองค์กรให้
แอปส่วนตัวควรพร้อมใช้งาน ให้เพิ่มรหัสองค์กรลงใน
พร็อพเพอร์ตี้ organizations
การเผยแพร่แอปส่วนตัว
แอปส่วนตัวจะได้รับการอนุมัติโดยอัตโนมัติเมื่อเผยแพร่ แต่จะไม่โดยอัตโนมัติ
พร้อมใช้งานสำหรับผู้ใช้ เว้นแต่ผู้ดูแลระบบไอทีขององค์กรจะให้สิทธิ์เข้าถึงไว้อย่างชัดแจ้ง
กับแอปที่ได้รับอนุมัติทั้งหมด คุณสามารถเปิดใช้ฟีเจอร์นี้ในคอนโซล EMM โดยใช้
Users.setAvailableProductSet
(ตั้งค่า productSetBehavior
เป็น "allApproved"
)
นอกจากนี้ คุณยังใช้การเรียกใช้เดียวกันเพื่อให้ผู้ดูแลระบบไอทีเพิ่มแอปที่ต้องการไปยังรายการที่อนุญาตได้ด้วย
สำหรับผู้ใช้ (ตั้งค่า productSetBehavior
เป็น "whitelist"
)
ดูข้อมูลเพิ่มเติมเกี่ยวกับวิธีเพิ่มแอปใน Managed Google Play Store ของผู้ใช้
โปรดดูหัวข้อสร้างเลย์เอาต์ของร้านค้าที่กำหนดเอง
การอัปเดตแอปส่วนตัว
เพื่อมอบประสบการณ์ของผู้ใช้ที่ดีที่สุดเท่าที่จะเป็นไปได้สำหรับลูกค้าองค์กรของคุณ
เราขอแนะนำให้ผสานรวมการเผยแพร่แอปส่วนตัวควบคู่ไปกับแอปและร้านค้า
ฟีเจอร์การอัปเดตข้อมูลผลิตภัณฑ์ผ่านทาง API การเผยแพร่ของ Google Play
ซึ่งจะช่วยให้ผู้ดูแลระบบไอทีเผยแพร่ แก้ไข และอัปเดตแอปส่วนตัวได้
จากคอนโซล EMM หรือ IDE โดยตรง คุณใช้บัญชีบริการเดียวกับที่
ที่คุณสร้างสำหรับการเผยแพร่แอปส่วนตัวเพื่อให้สิทธิ์ API การเผยแพร่ของ Google Play
คำขอ
คุณหรือลูกค้าองค์กรยังอัปเดตแอปส่วนตัวและร้านค้าของตนได้ด้วย
รายละเอียดจาก Play Console (ดูข้อมูลเพิ่มเติมได้ที่ศูนย์ช่วยเหลือของ Play Console)
เริ่มเขียนโค้ดด้วยไลบรารีของไคลเอ็นต์ของเรา
ไลบรารีของไคลเอ็นต์สำหรับ Google Play Custom App Publishing API พร้อมให้ใช้งานใน
Java
Python
.NET
และ Ruby
ดูข้อมูลเพิ่มเติมเกี่ยวกับ Android Enterprise
- สำหรับข้อมูลเพิ่มเติมเกี่ยวกับการพัฒนาโซลูชัน EMM สำหรับ Android โปรดดู
Android Enterprise
- สำหรับข้อมูลเกี่ยวกับแนวทางปฏิบัติที่ดีที่สุดในการพัฒนาแอป Android สำหรับ
การจัดจำหน่ายระดับองค์กร โปรดดูที่สำหรับ 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/)."]]