Method: inappproducts.patch
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.
Bản vá một sản phẩm trong ứng dụng (sản phẩm được quản lý hoặc gói thuê bao).
Bạn không nên dùng phương thức này để cập nhật gói thuê bao nữa. Hãy xem bài viết này để biết thêm thông tin.
Yêu cầu HTTP
PATCH https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Thông số |
packageName |
string
Tên gói của ứng dụng.
|
sku |
string
Giá trị nhận dạng duy nhất của sản phẩm trong ứng dụng.
|
Tham số truy vấn
Thông số |
autoConvertMissingPrices |
boolean
Nếu ứng dụng gốc nhắm mục tiêu đến giá đúng cho tất cả các khu vực nhưng chưa chỉ định mức giá cho sản phẩm trong ứng dụng này, thì hệ thống sẽ tự động quy đổi sang đơn vị tiền tệ mục tiêu dựa trên giá mặc định. Giá trị mặc định là false.
|
latencyTolerance |
enum (ProductUpdateLatencyTolerance )
Không bắt buộc. Dung sai về độ trễ khi truyền bản cập nhật sản phẩm này. Giá trị mặc định là phụ thuộc vào độ trễ.
|
Nội dung yêu cầu
Nội dung yêu cầu chứa một bản sao của InAppProduct
.
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 InAppProduct
.
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: 2025-05-21 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: 2025-05-21 UTC."],[[["This operation patches an in-app product, either a managed product or a subscription, within a specified app."],["It involves providing the package name and product's unique identifier (SKU) as path parameters."],["Developers can optionally control auto-conversion of missing prices and update propagation latency using query parameters."],["The request and successful response both utilize the `InAppProduct` object for data transfer."],["Authorization requires the `https://www.googleapis.com/auth/androidpublisher` scope."]]],["This API patches in-app products, including managed products and subscriptions, via a `PATCH` HTTP request to a specified URL. The URL requires the app's `packageName` and the product's `sku` as path parameters. Optional query parameters, `autoConvertMissingPrices` and `latencyTolerance`, are available. The request and response body use the `InAppProduct` instance. This process needs `https://www.googleapis.com/auth/androidpublisher` OAuth scope. Note that updating subscriptions through this method is deprecated.\n"]]