Method: monetization.subscriptions.create
新しい定期購入を作成します。新たに追加された基本プランは、有効化されるまで未公開の状態になります。
HTTP リクエスト
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
packageName |
string
必須。定期購入を作成する対象の親アプリ(パッケージ名)。定期購入リソースの packageName フィールドと同じである必要があります。
|
クエリ パラメータ
パラメータ |
productId |
string
必須。定期購入に使用する ID。この形式の要件については、定期購入リソースの productId フィールドに関するドキュメントをご覧ください。
|
regionsVersion |
object (RegionsVersion )
必須。定期購入で使用されている利用可能な地域のバージョン。
|
リクエスト本文
リクエストの本文には Subscription
のインスタンスが含まれます。
レスポンスの本文
成功した場合、レスポンスの本文には、新しく作成された Subscription
のインスタンスが含まれます。
認可スコープ
次の 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 for a specified Android app package."],["Requires providing the package name, subscription ID, and regions version in the request."],["The newly created subscription will initially be in draft state and needs to be activated."],["The request body should contain a `Subscription` resource, and a successful response will return the newly created `Subscription` instance."],["Utilizes the `https://www.googleapis.com/auth/androidpublisher` OAuth scope for authorization."]]],["This document details how to create a new subscription using the Android Publisher API. A `POST` request is sent to a specified URL, including the `packageName` in the path. The request requires `productId` and `regionsVersion` as query parameters. The request body contains the `Subscription` to be created. A successful response returns a newly created `Subscription`. The process uses gRPC Transcoding and requires the `androidpublisher` OAuth scope. Newly added base plans are in draft until activated.\n"]]