Method: monetization.subscriptions.basePlans.migratePrices
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
將訂閱者從一或多個舊版價格同類群組遷移至目前價格。提出要求後,Google Play 會通知受影響的訂閱者。最多只能同時支援 250 個舊版價格同類群組。
HTTP 要求
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:migratePrices
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
packageName |
string
必要欄位。父項應用程式的套件名稱。必須與訂閱資源的 packageName 欄位相同。
|
productId |
string
必要欄位。要更新的訂閱項目 ID。必須與 Subscription 資源的 productId 欄位相等。
|
basePlanId |
string
必要欄位。要更新價格的基本方案專屬 ID。
|
要求主體
要求主體的資料會採用以下結構:
欄位 |
regionalPriceMigrations[] |
object (RegionalPriceMigrationConfig )
必要欄位。要更新的區域價格。
|
regionsVersion |
object (RegionsVersion )
必要欄位。用於 regionalPriceMigrations 的可用區域版本。
|
latencyTolerance |
enum (ProductUpdateLatencyTolerance )
選用設定。這項產品更新的傳播延遲容許值。預設為「延遲敏感」。
|
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/androidpublisher
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-17 (世界標準時間)。
[[["容易理解","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 (世界標準時間)。"],[[["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"]]