Method: inappproducts.insert
アプリ内アイテム(管理対象アイテムまたは定期購入)を作成します。
このメソッドは、定期購入を作成するためには使用しないでください。詳しくは、こちらの記事をご覧ください。
HTTP リクエスト
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
packageName |
string
アプリのパッケージ名。
|
クエリ パラメータ
パラメータ |
autoConvertMissingPrices |
boolean
true にすると、このアプリ内アイテムの価格が指定されていない場合、親アプリがターゲットとするすべての地域での価格は、デフォルト価格に基づいてターゲットの通貨に自動換算されます。デフォルトは false です。
|
リクエスト本文
リクエストの本文には InAppProduct
のインスタンスが含まれます。
レスポンスの本文
成功した場合、レスポンスの本文には、新しく作成された InAppProduct
のインスタンスが含まれます。
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/androidpublisher
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-12-17 UTC。
[null,null,["最終更新日 2024-12-17 UTC。"],[[["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."]]],["This document details the process of creating an in-app product using the Android Publisher API. A `POST` request is sent to a specific URL containing the app's package name. The request body includes `InAppProduct` data. The request can include a boolean query parameter, `autoConvertMissingPrices`, to manage regional pricing. The response, upon success, returns the newly created `InAppProduct`. Authorization requires the `androidpublisher` OAuth scope. This method is deprecated for subscriptions.\n"]]