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
必需。父级应用的软件包名称,必须与 Subscription 资源的 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
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-12-17。
[null,null,["最后更新时间 (UTC):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"]]