Method: monetization.subscriptions.basePlans.batchMigratePrices

basePlans.migrationPrices 端点的批处理变体。

将嵌套请求的 delayTolerance 字段设置为 PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT,以达到最大更新吞吐量。

HTTP 请求

POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans:batchMigratePrices

网址采用 gRPC 转码语法。

路径参数

参数
packageName

string

必需。应为其创建或更新订阅的父级应用(软件包名称)。必须等于所有订阅资源上的 packageName 字段。

productId

string

必需。父级订阅的商品 ID(如果所有更新后的优惠都属于同一订阅)。如果此批量更新涵盖多个订阅,请将此字段设置为“-”(必须设置)。

请求正文

请求正文中包含结构如下的数据:

JSON 表示法
{
  "requests": [
    {
      object (MigrateBasePlanPricesRequest)
    }
  ]
}
字段
requests[]

object (MigrateBasePlanPricesRequest)

必需。最多 100 个价格迁移请求。所有请求都必须更新不同的基础方案。

响应正文

basePlans.batchMigratePrices 的响应消息。

如果成功,响应正文将包含结构如下的数据:

JSON 表示法
{
  "responses": [
    {
      object (MigrateBasePlanPricesResponse)
    }
  ]
}
字段
responses[]

object (MigrateBasePlanPricesResponse)

针对所请求价格迁移,每个响应包含一个响应,响应顺序与请求顺序相同。

授权范围

需要以下 OAuth 作用域:

  • https://www.googleapis.com/auth/androidpublisher

MigrateBasePlanPricesRequest

basePlans.migrationPrices 的请求消息。

JSON 表示法
{
  "packageName": string,
  "productId": string,
  "basePlanId": string,
  "regionalPriceMigrations": [
    {
      object (RegionalPriceMigrationConfig)
    }
  ],
  "regionsVersion": {
    object (RegionsVersion)
  },
  "latencyTolerance": enum (ProductUpdateLatencyTolerance)
}
字段
packageName

string

必需。父级应用的软件包名称。必须等于订阅资源上的 packageName 字段。

productId

string

必需。要更新的订阅的 ID。必须等于订阅资源上的 productId 字段。

basePlanId

string

必需。要更新价格的基础方案的唯一基础方案 ID。

regionalPriceMigrations[]

object (RegionalPriceMigrationConfig)

必需。要更新的地区性价格。

regionsVersion

object (RegionsVersion)

必需。用于 regionPriceMigrations 的可用区域的版本。

latencyTolerance

enum (ProductUpdateLatencyTolerance)

可选。此产品更新的传播的延迟容忍度。默认为对延迟敏感。