Method: inappproducts.update
更新應用程式內商品 (受管理的產品或訂閱項目)。
您不應再使用這項方法更新訂閱項目。詳情請參閱這篇文章。
HTTP 要求
PUT https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
packageName |
string
應用程式的套件名稱。
|
sku |
string
應用程式內商品的專屬 ID。
|
查詢參數
參數 |
autoConvertMissingPrices |
boolean
如果為 true,則主應用程式指定的所有目標區域 (未為此應用程式內商品指定價格) 的價格,都會根據預設價格自動轉換為指定貨幣。預設值為 false。
|
allowMissing |
boolean
如果設為 true,且應用程式內商品的套件名稱和 SKU 不存在,系統就會建立應用程式內商品。
|
latencyTolerance |
enum (ProductUpdateLatencyTolerance )
選用設定。這項產品更新的傳播延遲容許值。預設為「延遲敏感」。
|
要求主體
要求主體包含 InAppProduct
的例項。
回應主體
如果成功,回應主體會包含 InAppProduct
的執行例項。
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/androidpublisher
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-17 (世界標準時間)。
[null,null,["上次更新時間:2024-12-17 (世界標準時間)。"],[[["Updates an existing in-app product or subscription using a PUT request."],["Requires `packageName` and `sku` as path parameters for identification."],["Provides optional query parameters for price conversion, product creation, and update latency."],["Request and response bodies utilize the `InAppProduct` object schema."],["Needs `https://www.googleapis.com/auth/androidpublisher` authorization scope for access."]]],["This outlines how to update an in-app product via a PUT request to `https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}`. It specifies the `packageName` and `sku` as path parameters. Query parameters allow for auto-converting prices (`autoConvertMissingPrices`), creating missing products (`allowMissing`), and setting latency tolerance (`latencyTolerance`). The request and response bodies both utilize the `InAppProduct` resource. This method now should not be used to update subscription. An authorization scope of `https://www.googleapis.com/auth/androidpublisher` is needed.\n"]]