Method: monetization.subscriptions.patch
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
בקשת HTTP
PATCH https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{subscription.packageName}/subscriptions/{subscription.productId}
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
subscription.packageName |
string
לא ניתן לשינוי. שם החבילה של האפליקציה הראשית.
|
subscription.productId |
string
לא ניתן לשינוי. מזהה המוצר הייחודי של המוצר. מזהה ייחודי באפליקציית ההורה. מזהי מוצרים חייבים להיות מורכבים מאותיות קטנות (a-z), ספרות (0-9), קווים תחתונים (_) ונקודות (.). המזהה חייב להתחיל באות קטנה או בספרה, ולהיות באורך של 1 עד 40 תווים (כולל).
|
פרמטרים של שאילתה
פרמטרים |
updateMask |
string (FieldMask format)
חובה. רשימת השדות שרוצים לעדכן. זוהי רשימה של שמות שדות מוגדרים במלואם, שמופרדים בפסיקים. דוגמה: "user.displayName,photo"
|
regionsVersion |
object (RegionsVersion )
חובה. הגרסה של האזורים הזמינים שבהם נעשה שימוש במינוי.
|
allowMissing |
boolean
זה שינוי אופציונלי. אם הערך מוגדר כ-true והמינוי עם שם החבילה ו-productId שצוינו לא קיים, המינוי ייוצר. אם נוצר מינוי חדש, המערכת מתעלמת מ-updateMask.
|
latencyTolerance |
enum (ProductUpdateLatencyTolerance )
זה שינוי אופציונלי. הזמן המרבי שאפשר להמתין עד להפצה של עדכון המוצר הזה. ברירת המחדל היא 'רגישות לזמן אחזור'.
|
גוף הבקשה
גוף הבקשה מכיל מופע של Subscription
.
גוף התשובה
אם הפעולה מצליחה, גוף התגובה מכיל מופע של Subscription
.
היקפי הרשאה
נדרש היקף הרשאות OAuth הבא:
https://www.googleapis.com/auth/androidpublisher
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-12-17 (שעון UTC).
[[["התוכן קל להבנה","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 (שעון 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"]]