Method: monetization.subscriptions.basePlans.offers.create
新しい定期購入特典を作成します。定期購入特典を作成できるのは自動更新の基本プランのみです。有効化されるまで特典の状態は「DRAFT」になります。
HTTP リクエスト
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
packageName |
string
必須。特典を作成する対象の親アプリ(パッケージ名)。定期購入リソースの packageName フィールドと同じである必要があります。
|
productId |
string
必須。特典を作成する対象の親定期購入(ID)。SubscriptionOffer リソースの productId フィールドと同じである必要があります。
|
basePlanId |
string
必須。特典を作成する対象の親基本プラン(ID)。SubscriptionOffer リソースの basePlanId フィールドと同じである必要があります。
|
クエリ パラメータ
パラメータ |
offerId |
string
必須。特典に使用する ID。この形式の要件については、SubscriptionOffer リソースの offerId フィールドに関するドキュメントをご覧ください。
|
regionsVersion |
object (RegionsVersion )
必須。subscriptionOffer で使用されている利用可能な地域のバージョン。
|
リクエスト本文
リクエストの本文には SubscriptionOffer
のインスタンスが含まれます。
レスポンスの本文
成功した場合、レスポンスの本文には、新しく作成された SubscriptionOffer
のインスタンスが含まれます。
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/androidpublisher
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-12-17 UTC。
[null,null,["最終更新日 2024-12-17 UTC。"],[[["Creates a new subscription offer for auto-renewing base plans, initially in DRAFT state until activated."],["Uses an HTTP POST request to `https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers` with specified path and query parameters."],["Requires providing a `SubscriptionOffer` object in the request body, detailing the offer's specifics."],["Upon success, the response body returns the newly created `SubscriptionOffer` object."],["Needs authorization with the `https://www.googleapis.com/auth/androidpublisher` OAuth scope."]]],["This document details how to create a new subscription offer for auto-renewing base plans. The `POST` request is sent to a specific URL with `packageName`, `productId`, and `basePlanId` as required path parameters. The `offerId` and `regionsVersion` are required query parameters. The request body must contain `SubscriptionOffer` data, and a successful response returns the newly created `SubscriptionOffer`. Authorization requires the `https://www.googleapis.com/auth/androidpublisher` OAuth scope.\n"]]