Method: applications.deviceTierConfigs.create
Tạo cấu hình cấp thiết bị mới cho một ứng dụng.
Yêu cầu HTTP
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/deviceTierConfigs
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.
|
Tham số truy vấn
Tham số |
allowUnknownDevices |
boolean
Liệu dịch vụ có chấp nhận mã thiết bị mà danh mục thiết bị của Play không biết hay không.
|
Nội dung yêu cầu
Nội dung yêu cầu chứa một bản sao của DeviceTierConfig
.
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 thực thể DeviceTierConfig
mới tạo.
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.
[null,null,["Cập nhật lần gần đây nhất: 2024-12-17 UTC."],[[["Creates a new device tier configuration for a specified Android app using an HTTP POST request."],["The request requires the app's package name as a path parameter and allows for optional query parameters like `allowUnknownDevices`."],["Request and response bodies utilize the `DeviceTierConfig` object to define the configuration details."],["Authorization is essential, necessitating the `https://www.googleapis.com/auth/androidpublisher` OAuth scope."]]],["This outlines creating a new device tier configuration for an app using a POST request to a specific URL. The request uses path parameters, specifically the app's `packageName`. It also utilizes a query parameter, `allowUnknownDevices` (boolean), to handle unknown device IDs. The request body must include a `DeviceTierConfig` instance, and upon success, the response body returns the newly created `DeviceTierConfig`. This operation requires `androidpublisher` OAuth scope authorization.\n"]]