Method: monetization.subscriptions.delete
サブスクリプションを削除します。定期購入は、基本プランを公開したことがない場合にのみ削除できます。
HTTP リクエスト
DELETE https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
packageName |
string
必須。削除する定期購入のアプリの親アプリ(パッケージ名)。
|
productId |
string
必須。削除するサブスクリプションの一意のプロダクト ID。
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功すると、レスポンスの本文は空になります。
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/androidpublisher
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-08-22 UTC。
[null,null,["最終更新日 2024-08-22 UTC。"],[[["Deletes a specific subscription within a given app, provided it hasn't had a base plan published."],["Requires the package name and product ID to identify the subscription to be deleted."],["Uses a DELETE request with no request body and returns an empty response body upon success."],["Needs authorization with the `https://www.googleapis.com/auth/androidpublisher` scope."]]],["This document outlines how to delete a subscription via an HTTP DELETE request to a specific URL. The URL requires two path parameters: `packageName` and `productId`. The request body must be empty. Upon successful deletion, indicated by a response, an empty JSON object is returned. Subscriptions can only be deleted if they have never had a base plan published. Authorization requires the `https://www.googleapis.com/auth/androidpublisher` OAuth scope. The provided `try-it` feature allows testing this directly.\n"]]