Method: monetization.subscriptions.basePlans.migratePrices
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
1 つ以上の旧価格コホートから現在の価格に定期購入者を移行します。リクエストすると、Google Play から影響を受ける定期購入者に通知が送信されます。同時に使用できる従来の価格コホートの上限は 250 です。
HTTP リクエスト
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:migratePrices
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
packageName |
string
必須。親アプリのパッケージ名。定期購入リソースの packageName フィールドと同じである必要があります。
|
productId |
string
必須。更新する定期購入の ID。定期購入リソースの productId フィールドと同じである必要があります。
|
basePlanId |
string
必須。価格を更新する基本プランの一意の基本プラン ID。
|
リクエスト本文
リクエストの本文には、次の構造のデータが含まれます。
フィールド |
regionalPriceMigrations[] |
object (RegionalPriceMigrationConfig )
必須。更新する地域別の価格。
|
regionsVersion |
object (RegionsVersion )
必須。regionalPriceMigrations で使用されている利用可能な地域のバージョン。
|
latencyTolerance |
enum (ProductUpdateLatencyTolerance )
省略可。このアイテムの更新の伝播に関する遅延の許容度。デフォルトは latency-sensitive(遅延の影響を受けやすい)です。
|
レスポンスの本文
成功すると、レスポンスの本文は空になります。
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/androidpublisher
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-12-17 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"]],["最終更新日 2024-12-17 UTC。"],[[["Migrates subscribers of one or more legacy price cohorts to the current subscription price, notifying affected subscribers via Google Play."],["Supports a maximum of 250 simultaneous legacy price cohorts for migration."],["Requires providing the package name, subscription ID, and base plan ID for the price migration."],["The request body specifies regional price updates, the regions version, and an optional latency tolerance for the update."],["Utilizes the `https://www.googleapis.com/auth/androidpublisher` authorization scope for access."]]],["This content describes the process of migrating subscribers from legacy price cohorts to the current price using the Google Play API. This involves sending a `POST` request to a specific endpoint with parameters like `packageName`, `productId`, and `basePlanId`. The request body requires `regionalPriceMigrations` and `regionsVersion`, with an optional `latencyTolerance` parameter. Successful requests result in an empty response, and require `androidpublisher` authorization scope. Google Play notifies the affected subscribers of changes, with a limit of 250 simultaneous legacy cohorts.\n"]]