Method: monetization.subscriptions.patch
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
HTTP 要求
PATCH https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{subscription.packageName}/subscriptions/{subscription.productId}
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
subscription.packageName |
string
不可變動。父項應用程式的套件名稱。
|
subscription.productId |
string
不可變動。產品的專屬產品 ID。在父項應用程式中不重複。產品 ID 必須由小寫英文字母 (a-z)、數字 (0-9)、底線 (_) 和半形句點 (.) 組成,且開頭必須是小寫英文字母或數字,長度介於 1 到 40 個半形字元之間 (含)。
|
查詢參數
參數 |
updateMask |
string (FieldMask format)
必要欄位。要更新的欄位清單。 這是以半形逗號分隔的完整欄位名稱清單。範例:"user.displayName,photo" 。
|
regionsVersion |
object (RegionsVersion )
必要欄位。用於訂閱的適用區域版本。
|
allowMissing |
boolean
選用設定。如果設為 true,且沒有使用指定 packageName 和 productId 的訂閱項目,系統就會建立訂閱項目。 如果建立新的訂閱項目,系統會忽略 updateMask。
|
latencyTolerance |
enum (ProductUpdateLatencyTolerance )
選用設定。這項產品更新的傳播延遲容許值。預設為「延遲敏感」。
|
要求主體
要求主體包含 Subscription
的例項。
回應主體
如果成功,回應主體會包含 Subscription
的執行例項。
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/androidpublisher
除非另有註明,否則本頁面中的內容是採用創用 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 (世界標準時間)。"],[[["Updates an existing subscription, or creates a new one if it doesn't exist and `allowMissing` is set to true."],["Uses `PATCH` HTTP request with specified path and query parameters to update the subscription details."],["Requires providing the `packageName`, `productId`, `updateMask`, and `regionsVersion` for updates."],["Request and response bodies contain a `Subscription` object, allowing access to subscription data."],["Needs `https://www.googleapis.com/auth/androidpublisher` authorization scope for access."]]],["This document outlines the process for updating an existing subscription via a `PATCH` HTTP request to the Android Publisher API. Key actions include specifying the subscription to update using `packageName` and `productId` in the URL path. Required `updateMask` and `regionsVersion` query parameters detail the fields to modify and the region version. The request body uses the `Subscription` resource. Optional parameters `allowMissing` allows creating missing subscriptions, and `latencyTolerance` adjusts update propagation. Successful requests return an updated `Subscription` resource. The process requires `androidpublisher` authorization scope.\n"]]