Method: monetization.subscriptions.delete
Usuwa subskrypcję. Subskrypcję można usunąć tylko wtedy, gdy nigdy nie został opublikowany abonament podstawowy.
Żądanie HTTP
DELETE https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
packageName |
string
To pole jest wymagane. Nadrzędna aplikacja (nazwa pakietu) aplikacji objętej subskrypcją do usunięcia.
|
productId |
string
To pole jest wymagane. Unikalny identyfikator produktu związanego z subskrypcją do usunięcia.
|
Treść żądania
Treść żądania musi być pusta.
Treść odpowiedzi
Jeśli operacja się uda, treść odpowiedzi będzie pusta.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/androidpublisher
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-08-22 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]