Method: inappproducts.insert
建立應用程式內商品 (受管理的產品或訂閱項目)。
請勿再使用這個方法建立訂閱項目。詳情請參閱這篇文章。
HTTP 要求
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
packageName |
string
應用程式的套件名稱。
|
查詢參數
參數 |
autoConvertMissingPrices |
boolean
如果為 true,則主應用程式指定的所有目標區域 (未為此應用程式內商品指定價格) 的價格,都會根據預設價格自動轉換為指定貨幣。預設值為 false。
|
要求主體
要求主體包含 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 (世界標準時間)。"],[[["Creates an in-app product, such as a managed product or a subscription, within a specified app."],["This method is deprecated for subscription creation; refer to the provided article for alternative approaches."],["The request utilizes an HTTP POST to a structured URL including the package name and optional query parameters for price conversion."],["Request and response bodies utilize the `InAppProduct` object for data transfer."],["Authorization requires the `https://www.googleapis.com/auth/androidpublisher` scope."]]],[]]