Method: edits.bundles.upload
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tải một Android App Bundle mới lên nội dung chỉnh sửa này. Nếu bạn đang sử dụng thư viện ứng dụng Google API, vui lòng tăng thời gian chờ của yêu cầu http trước khi gọi điểm cuối này (nên đặt thời gian chờ là 2 phút). Hãy xem phần Hết thời gian chờ và lỗi để biết ví dụ trong java.
Yêu cầu HTTP
- URI tải lên, dành cho các yêu cầu tải nội dung nghe nhìn lên:
POST https://androidpublisher.googleapis.com/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles
- URI siêu dữ liệu, dành cho các yêu cầu chỉ siêu dữ liệu:
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Tham số |
packageName |
string
Tên gói của ứng dụng.
|
editId |
string
Giá trị nhận dạng của nội dung chỉnh sửa.
|
Tham số truy vấn
Tham số |
ackBundleInstallationWarning (deprecated) |
boolean
Không dùng nữa. Cảnh báo cài đặt đã bị xoá, bạn không cần thiết lập trường này nữa.
|
deviceTierConfigId |
string
Cấu hình cấp thiết bị (DTC) dùng để tạo sản phẩm (APK). Chứa mã của mã lỗi DTC hoặc "LATEST" (MỚI NHẤT) cho mã lỗi DTC được tải lên gần đây nhất.
|
Nội dung yêu cầu
Nội dung yêu cầu chứa một bản sao của BundlesUploadRequestBody
.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một phiên bản của Bundle
.
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/androidpublisher
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-12-17 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 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"]]