Method: monetization.subscriptions.basePlans.offers.activate

激活订阅优惠。激活后,新订阅者便可享受订阅优惠。

HTTP 请求

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

网址采用 gRPC 转码语法。

路径参数

参数
packageName

string

必需。要激活的优惠的父级应用(软件包名称)。

productId

string

必需。要激活的优惠的父级订阅 (ID)。

basePlanId

string

必需。要激活的优惠的父级基础方案 (ID)。

offerId

string

必需。要激活的优惠的唯一优惠 ID。

请求正文

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

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

enum (ProductUpdateLatencyTolerance)

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

响应正文

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

授权范围

需要以下 OAuth 作用域:

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