แอปที่เผยแพร่ผ่าน API การเผยแพร่แอปที่กำหนดเองของ Google Play ต้องไม่
เผยแพร่สู่สาธารณะ กระบวนการยืนยันตัวตนที่น้อยกว่า
แอปสาธารณะ ทำให้ลดเวลาการเผยแพร่ได้เหลือเพียง 5 นาที
(เทียบกับ 2 ชั่วโมงผ่าน Play Console)
นอกจากนี้ คุณยังใช้การเรียกใช้เดียวกันเพื่อให้ผู้ดูแลระบบไอทีเพิ่มแอปที่ต้องการไปยังรายการที่อนุญาตได้ด้วย
สำหรับผู้ใช้ (ตั้งค่า productSetBehavior เป็น "whitelist")
ดูข้อมูลเพิ่มเติมเกี่ยวกับวิธีเพิ่มแอปใน Managed Google Play Store ของผู้ใช้
โปรดดูหัวข้อสร้างเลย์เอาต์ของร้านค้าที่กำหนดเอง
การอัปเดตแอปส่วนตัว
เพื่อมอบประสบการณ์ของผู้ใช้ที่ดีที่สุดเท่าที่จะเป็นไปได้สำหรับลูกค้าองค์กรของคุณ
เราขอแนะนำให้ผสานรวมการเผยแพร่แอปส่วนตัวควบคู่ไปกับแอปและร้านค้า
ฟีเจอร์การอัปเดตข้อมูลผลิตภัณฑ์ผ่านทาง API การเผยแพร่ของ Google Play
ซึ่งจะช่วยให้ผู้ดูแลระบบไอทีเผยแพร่ แก้ไข และอัปเดตแอปส่วนตัวได้
จากคอนโซล EMM หรือ IDE โดยตรง คุณใช้บัญชีบริการเดียวกับที่
ที่คุณสร้างสำหรับการเผยแพร่แอปส่วนตัวเพื่อให้สิทธิ์ API การเผยแพร่ของ Google Play
คำขอ
คุณหรือลูกค้าองค์กรยังอัปเดตแอปส่วนตัวและร้านค้าของตนได้ด้วย
รายละเอียดจาก Play Console (ดูข้อมูลเพิ่มเติมได้ที่ศูนย์ช่วยเหลือของ Play Console)
เริ่มเขียนโค้ดด้วยไลบรารีของไคลเอ็นต์ของเรา
ไลบรารีของไคลเอ็นต์สำหรับ Google Play Custom App Publishing API พร้อมให้ใช้งานใน
JavaPython.NET
และ Ruby
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 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/)."]]