Method: edits.bundles.upload
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
อัปโหลด Android App Bundle ใหม่ไปยังการแก้ไขนี้ หากคุณใช้ไลบรารีไคลเอ็นต์ Google API โปรดเพิ่มการหมดเวลาของคำขอ HTTP ก่อนเรียกใช้ปลายทางนี้ (แนะนำให้ใช้การหมดเวลา 2 นาที) ดูตัวอย่างใน Java ได้ที่การหมดเวลาและข้อผิดพลาด
คำขอ HTTP
- URI การอัปโหลดสำหรับคำขออัปโหลดสื่อ:
POST https://androidpublisher.googleapis.com/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles
- URI ของข้อมูลเมตาสำหรับคำขอข้อมูลเมตาเท่านั้น
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
packageName |
string
ชื่อแพ็กเกจของแอป
|
editId |
string
ตัวระบุของการแก้ไข
|
พารามิเตอร์การค้นหา
พารามิเตอร์ |
ackBundleInstallationWarning (deprecated) |
boolean
เลิกใช้งานแล้ว ระบบนำคำเตือนการติดตั้งออกแล้ว คุณจึงไม่จำเป็นต้องตั้งค่าฟิลด์นี้อีกต่อไป
|
deviceTierConfigId |
string
การกำหนดค่าระดับของอุปกรณ์ (DTC) เพื่อใช้สร้างไฟล์นำส่ง (APK) มีรหัส DTC หรือ "ล่าสุด" สำหรับ DTC ที่อัปโหลดล่าสุด
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ BundlesUploadRequestBody
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ Bundle
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/androidpublisher
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-12-17 UTC
[[["เข้าใจง่าย","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"]],["อัปเดตล่าสุด 2024-12-17 UTC"],[[["Uploads a new Android App Bundle to the specified edit using either media upload or metadata-only requests."],["Requires providing the package name and edit ID as path parameters in the request URL."],["Optionally allows setting query parameters for device tier config and acknowledging bundle installation warnings (deprecated)."],["Utilizes the `BundlesUploadRequestBody` in the request body and returns a `Bundle` object in the response upon success."],["Needs authorization with the `https://www.googleapis.com/auth/androidpublisher` scope."]]],["This document outlines how to upload an Android App Bundle to an edit using the Android Publisher API. Key actions include sending a `POST` request to a specified URI, which can be a media upload URI or a metadata-only URI. Required path parameters are `packageName` and `editId`. Optional query parameters include `deviceTierConfigId`, while `ackBundleInstallationWarning` is deprecated. The request body should contain `BundlesUploadRequestBody`, and a successful response will provide a `Bundle` instance. The operation requires the `androidpublisher` authorization scope. It is advised to increase the HTTP request timeout to 2 minutes.\n"]]