Method: monetization.subscriptions.delete
Löscht ein Abo. Ein Abo kann nur gelöscht werden, wenn noch nie ein Basis-Abo veröffentlicht wurde.
HTTP-Anfrage
DELETE https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
packageName |
string
Erforderlich. Die übergeordnete App (Paketname) der App des zu löschenden Abos.
|
productId |
string
Erforderlich. Die eindeutige Produkt-ID des Abos, das gelöscht werden soll.
|
Anfragetext
Der Anfragetext muss leer sein.
Antworttext
Wenn der Vorgang erfolgreich ist, ist der Antworttext leer.
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/androidpublisher
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-08-22 (UTC).
[null,null,["Zuletzt aktualisiert: 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"]]