Method: monetization.subscriptions.patch
HTTP リクエスト
PATCH https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{subscription.packageName}/subscriptions/{subscription.productId}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
subscription.packageName |
string
変更不可。親アプリのパッケージ名。
|
subscription.productId |
string
変更不可。アイテムの一意のアイテム ID。親アプリ内で一意にします。アイテム ID に使用できるのは、小文字(a ~ z)、数字(0 ~ 9)、アンダースコア(_)、ドット(.)のみです。小文字または数字で始まり、1 文字以上 40 文字以下とする必要があります。
|
クエリ パラメータ
パラメータ |
updateMask |
string (FieldMask format)
必須。更新するフィールドのリスト。 完全修飾フィールド名のカンマ区切りリスト。例: "user.displayName,photo" 。
|
regionsVersion |
object (RegionsVersion )
必須。定期購入で使用されている利用可能な地域のバージョン。
|
allowMissing |
boolean
省略可。true に設定すると、指定された packageName と productId に一致する定期購入が存在しない場合、その定期購入が作成されます。 新しい定期購入が作成された場合、updateMask は無視されます。
|
latencyTolerance |
enum (ProductUpdateLatencyTolerance )
省略可。このアイテムの更新の伝播に関する遅延の許容度。デフォルトは latency-sensitive(遅延の影響を受けやすい)です。
|
リクエスト本文
リクエストの本文には Subscription
のインスタンスが含まれます。
レスポンスの本文
成功した場合、レスポンスの本文には Subscription
のインスタンスが含まれます。
認可スコープ
次の 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 subscription, or creates a new one if it doesn't exist and `allowMissing` is set to true."],["Uses `PATCH` HTTP request with specified path and query parameters to update the subscription details."],["Requires providing the `packageName`, `productId`, `updateMask`, and `regionsVersion` for updates."],["Request and response bodies contain a `Subscription` object, allowing access to subscription data."],["Needs `https://www.googleapis.com/auth/androidpublisher` authorization scope for access."]]],["This document outlines the process for updating an existing subscription via a `PATCH` HTTP request to the Android Publisher API. Key actions include specifying the subscription to update using `packageName` and `productId` in the URL path. Required `updateMask` and `regionsVersion` query parameters detail the fields to modify and the region version. The request body uses the `Subscription` resource. Optional parameters `allowMissing` allows creating missing subscriptions, and `latencyTolerance` adjusts update propagation. Successful requests return an updated `Subscription` resource. The process requires `androidpublisher` authorization scope.\n"]]