Method: monetization.subscriptions.patch
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Mevcut bir aboneliği günceller.
HTTP isteği
PATCH https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{subscription.packageName}/subscriptions/{subscription.productId}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
subscription.packageName |
string
Değişmez. Üst uygulamanın paket adı.
|
subscription.productId |
string
Değişmez. Ürünün benzersiz ürün kimliği. Ana uygulama içinde benzersiz olmalıdır. Ürün kimlikleri küçük harfler (a-z), rakamlar (0-9), alt çizgiler (_) ve noktalardan (.) oluşmalıdır. Küçük harf veya rakamla başlamalı ve 1 ile 40 karakter (dahil) arasında olmalıdır.
|
Sorgu parametreleri
Parametreler |
updateMask |
string (FieldMask format)
Zorunlu. Güncellenecek alanların listesi. Bu, alanların tam nitelikli adlarının virgülle ayrılmış bir listesidir. Örnek: "user.displayName,photo" .
|
regionsVersion |
object (RegionsVersion )
Zorunlu. Abonelik için kullanılan mevcut bölgelerin sürümü.
|
allowMissing |
boolean
İsteğe bağlı. True (doğru) değerine ayarlanırsa ve belirtilen packageName ve productId ile abonelik mevcut değilse abonelik oluşturulur. Yeni bir abonelik oluşturulursa updateMask yoksayılır.
|
latencyTolerance |
enum (ProductUpdateLatencyTolerance )
İsteğe bağlı. Bu ürün güncellemesinin yayılması için gecikme toleransı. Varsayılan olarak gecikmeye duyarlı olarak ayarlanır.
|
İstek içeriği
İstek metni, Subscription
öğesinin bir örneğini içerir.
Yanıt gövdesi
Başarılıysa yanıt metni, Subscription
öğesinin bir örneğini içerir.
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: 2024-12-17 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: 2024-12-17 UTC."],[[["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"]]