Method: monetization.subscriptions.basePlans.migratePrices
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
העברה של מנויים מקבוצת מחירים קודמת אחת או יותר למחיר הנוכחי. הבקשות האלה יגרמו לכך שמערכת Google Play תודיע למנויים הרלוונטיים. יש תמיכה בעד 250 קבוצות של מחירים קודמים בו-זמנית.
בקשת HTTP
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:migratePrices
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של נתיב
פרמטרים |
packageName |
string
חובה. שם החבילה של אפליקציית ההורה. השם חייב להיות זהה לשדה packageName במשאב Subscription.
|
productId |
string
חובה. המזהה של המינוי שרוצים לעדכן. חייב להיות שווה לשדה productId במשאב 'מינוי'.
|
basePlanId |
string
חובה. המזהה הייחודי של המינוי הבסיסי שבו צריך לעדכן את המחירים.
|
גוף הבקשה
גוף הבקשה מכיל נתונים במבנה הבא:
שדות |
regionalPriceMigrations[] |
object (RegionalPriceMigrationConfig )
חובה. עדכון המחירים האזוריים.
|
regionsVersion |
object (RegionsVersion )
חובה. הגרסה של האזורים הזמינים שבהם נעשה שימוש ב-regionsPriceMigrations.
|
latencyTolerance |
enum (ProductUpdateLatencyTolerance )
זה שינוי אופציונלי. הזמן המרבי שאפשר להמתין עד להפצה של עדכון המוצר הזה. ברירת המחדל היא רגישה לזמן אחזור.
|
גוף התשובה
אם הביצוע יהיה תקין, גוף התגובה יהיה ריק.
היקפי ההרשאות
נדרש היקף ההרשאות הבא של OAuth:
https://www.googleapis.com/auth/androidpublisher
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-05-21 (שעון 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"]],["עדכון אחרון: 2025-05-21 (שעון UTC)."],[[["Migrates subscribers of one or more legacy price cohorts to the current subscription price, notifying affected subscribers via Google Play."],["Supports a maximum of 250 simultaneous legacy price cohorts for migration."],["Requires providing the package name, subscription ID, and base plan ID for the price migration."],["The request body specifies regional price updates, the regions version, and an optional latency tolerance for the update."],["Utilizes the `https://www.googleapis.com/auth/androidpublisher` authorization scope for access."]]],["This content describes the process of migrating subscribers from legacy price cohorts to the current price using the Google Play API. This involves sending a `POST` request to a specific endpoint with parameters like `packageName`, `productId`, and `basePlanId`. The request body requires `regionalPriceMigrations` and `regionsVersion`, with an optional `latencyTolerance` parameter. Successful requests result in an empty response, and require `androidpublisher` authorization scope. Google Play notifies the affected subscribers of changes, with a limit of 250 simultaneous legacy cohorts.\n"]]