Method: inappproducts.update
アプリ内アイテム(管理対象アイテムまたは定期購入)を更新します。
このメソッドは、定期購入を更新するためには使用しないでください。詳しくは、こちらの記事をご覧ください。
HTTP リクエスト
PUT https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
packageName |
string
アプリのパッケージ名。
|
sku |
string
アプリ内アイテムの固有識別子。
|
クエリ パラメータ
パラメータ |
autoConvertMissingPrices |
boolean
true にすると、このアプリ内アイテムの価格が指定されていない場合、親アプリがターゲットとするすべての地域での価格は、デフォルト価格に基づいてターゲットの通貨に自動換算されます。デフォルトは false です。
|
allowMissing |
boolean
true に設定すると、指定された packageName と SKU に一致するアプリ内アイテムが存在しない場合、そのアプリ内アイテムが作成されます。
|
latencyTolerance |
enum (ProductUpdateLatencyTolerance )
省略可。このアイテムの更新の伝播に関する遅延の許容度。デフォルトは latency-sensitive(遅延の影響を受けやすい)です。
|
リクエスト本文
リクエストの本文には 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。"],[[["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"]]