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 )
(省略可)このプロダクトの更新の伝播の許容範囲。デフォルトでは、レイテンシの影響を受けやすい値に設定されます。
|
リクエスト本文
リクエストの本文には InAppProduct
のインスタンスが含まれています。
レスポンスの本文
成功した場合、レスポンスの本文には InAppProduct
のインスタンスが含まれます。
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/androidpublisher
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 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"]]