Method: inappproducts.delete
Usuwa produkt w aplikacji (produkt zarządzany lub subskrypcję).
Tej metody nie należy już używać do usuwania subskrypcji. Więcej informacji znajdziesz w tym artykule.
Żądanie HTTP
DELETE https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
packageName |
string
Nazwa pakietu aplikacji.
|
sku |
string
Unikalny identyfikator produktu w aplikacji.
|
Parametry zapytania
Parametry |
latencyTolerance |
enum (ProductUpdateLatencyTolerance )
Opcjonalnie. Tolerancja czasu oczekiwania na rozpowszechnianie tej aktualizacji usługi. Wartość domyślna jest uwzględniana w czasie oczekiwania.
|
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 an in-app product, either a managed product or a subscription, but should no longer be used for subscriptions, instead referring to a specific article for updated methods."],["Uses an HTTP DELETE request with specified path parameters for package name and product identifier."],["Accepts an optional query parameter to define latency tolerance for product update propagation."],["Requires an empty request body and returns an empty response body upon successful deletion."],["Needs authorization with the `https://www.googleapis.com/auth/androidpublisher` scope."]]],["This document details the process of deleting an in-app product using the Android Publisher API. A `DELETE` request is sent to a specific URL using gRPC transcoding, including the app's package name and the product's unique identifier (SKU) as path parameters. An optional query parameter, `latencyTolerance`, controls update propagation. The request body must be empty, and a successful operation returns an empty JSON object. The process requires the `androidpublisher` authorization scope, and it is not meant to delete subscriptions.\n"]]