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 )
(省略可)このプロダクトの更新の伝播の許容範囲。デフォルトでは、レイテンシの影響を受けやすい値に設定されます。
|
リクエスト本文
リクエストの本文には Subscription
のインスタンスが含まれています。
レスポンスの本文
成功した場合、レスポンスの本文には Subscription
のインスタンスが含まれます。
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/androidpublisher
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-05-21 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-05-21 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"]]