Method: monetization.subscriptions.basePlans.activate

启用基础方案。启用后,基础方案将可供新订阅者使用。

HTTP 请求

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

网址采用 gRPC 转码语法。

路径参数

参数
packageName

string

必需。要启用的基础方案的父级应用(软件包名称)。

productId

string

必需。要启用的基础方案的父级订阅 (ID)。

basePlanId

string

必需。要启用的基础方案的唯一基础方案 ID。

请求正文

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

JSON 表示法
{
  "latencyTolerance": enum (ProductUpdateLatencyTolerance)
}
字段
latencyTolerance

enum (ProductUpdateLatencyTolerance)

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

响应正文

如果成功,则响应正文包含一个 Subscription 实例。

授权范围

需要以下 OAuth 作用域:

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