Method: monetization.subscriptions.delete
Koleksiyonlar ile düzeninizi koruyun İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Aboneliği siler. Abonelikler yalnızca temel plan yayınlanmamışsa silinebilir.
HTTP isteği
DELETE https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
packageName | string Zorunlu. Silecek aboneliğin uygulamasının üst uygulaması (paket adı). |
productId | string Zorunlu. Silinecek aboneliğin benzersiz ürün kimliği. |
İstek içeriği
İstek metni boş olmalıdır.
Yanıt gövdesi
Başarılı olursa yanıt metni boş bir JSON nesnesi olur.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/androidpublisher
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-26 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-26 UTC."],[[["\u003cp\u003eDeletes a specific subscription within a given app, provided it hasn't had a base plan published.\u003c/p\u003e\n"],["\u003cp\u003eRequires the package name and product ID to identify the subscription to be deleted.\u003c/p\u003e\n"],["\u003cp\u003eUses a DELETE request with no request body and returns an empty response body upon success.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/androidpublisher\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["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"],null,["- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nDeletes a subscription. A subscription can only be deleted if it has never had a base plan published.\n\nHTTP request\n\n`DELETE https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nPath parameters\n\n| Parameters ||\n|---------------|--------------------------------------------------------------------------------------------|\n| `packageName` | `string` Required. The parent app (package name) of the app of the subscription to delete. |\n| `productId` | `string` Required. The unique product ID of the subscription to delete. |\n\nRequest body\n\nThe request body must be empty.\n\nResponse body\n\nIf successful, the response body is an empty JSON object.\n\nAuthorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidpublisher`"]]