Method: inappproducts.batchDelete
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
刪除應用程式內商品 (受管理的產品或訂閱項目)。
將巢狀要求的 latencyTolerance 欄位設為 PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT,以便達到最高更新傳輸量。
請勿使用此方法刪除訂閱項目。詳情請參閱這篇文章。
HTTP 要求
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts:batchDelete
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
packageName |
string
應用程式的套件名稱。
|
要求主體
要求主體的資料會採用以下結構:
欄位 |
requests[] |
object (InappproductsDeleteRequest )
個別刪除要求。至少須提供一項要求。最多可包含 100 個要求。所有要求都必須對應至不同的應用程式內產品。
|
回應主體
如果成功,回應主體會是空的 JSON 物件。
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/androidpublisher
InappproductsDeleteRequest
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-17 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2024-12-17 (世界標準時間)。"],[[["Deletes in-app products (managed products or subscriptions) in batches using the `batchDelete` method."],["Requires providing a list of delete requests, each specifying the package name and SKU of the in-app product to be deleted."],["Supports setting latency tolerance for product update propagation, potentially improving update throughput."],["Uses the `androidpublisher` OAuth scope for authorization."],["It's crucial to note that this method should not be used to delete subscriptions, as per the linked article."]]],["This document details how to batch delete in-app products (excluding subscriptions) via the Android Publisher API. Key actions involve sending a `POST` request to `https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts:batchDelete`. The request body must include an array of `InappproductsDeleteRequest` objects, each specifying the `packageName`, `sku`, and optional `latencyTolerance`. The API uses `gRPC Transcoding`. Successful deletion returns an empty JSON object. Authorization requires the `androidpublisher` OAuth scope.\n"]]