激活订阅优惠。激活后,新订阅者即可享受订阅优惠。
HTTP 请求
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:activate
网址采用 gRPC 转码语法。
路径参数
| 参数 | |
|---|---|
| packageName | 
 必需。要激活优惠的父级应用(软件包名称)。 | 
| productId | 
 必需。要激活的优惠的父级订阅 (ID)。 | 
| basePlanId | 
 必需。要激活的优惠的父级基础方案 (ID)。 | 
| offerId | 
 必需。要激活的优惠的唯一优惠 ID。 | 
请求正文
请求正文中包含结构如下的数据:
| JSON 表示法 | 
|---|
| {
  "latencyTolerance": enum ( | 
| 字段 | |
|---|---|
| latencyTolerance | 
 可选。传播此产品更新的延迟容忍度。默认为对延迟时间敏感。 | 
响应正文
如果成功,则响应正文包含一个 SubscriptionOffer 实例。
授权范围
需要以下 OAuth 范围:
- https://www.googleapis.com/auth/androidpublisher