Method: monetization.subscriptions.basePlans.offers.create
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
יצירת מבצע חדש למינויים. רק מינויים בסיסיים שמתחדשים אוטומטית יכולים לכלול מבצעים למינויים. סטטוס המבצע יהיה 'טיוטה' עד שהוא יופעל.
בקשת HTTP
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
packageName |
string
חובה. האפליקציה ההורה (שם החבילה) שאליה צריך ליצור את המבצע. השדה חייב להיות שווה לשדה packageName במשאב Subscription.
|
productId |
string
חובה. המינוי (המזהה) ברמת ההורה שעבורו צריך ליצור את המבצע. צריך להיות שווה לשדה productId במשאב SubscriptionOffer.
|
basePlanId |
string
חובה. המינוי הבסיסי (המזהה) של ההורה שעבורו צריך ליצור את ההצעה. השדה הזה חייב להיות שווה לשדה basePlanId במשאב SubscriptionOffer.
|
פרמטרים של שאילתה
פרמטרים |
offerId |
string
חובה. המזהה שישמש את המבצע. הדרישות לגבי הפורמט הזה מפורטות במסמכי העזרה של השדה offerId במשאב SubscriptionOffer.
|
regionsVersion |
object (RegionsVersion )
חובה. הגרסה של האזורים הזמינים שנעשה בה שימוש ב-subscriptionOffer.
|
גוף הבקשה
גוף הבקשה מכיל מופע של SubscriptionOffer
.
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכיל מופע חדש של SubscriptionOffer
.
היקפי הרשאה
נדרש היקף הרשאות 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)."],[[["Creates a new subscription offer for auto-renewing base plans, initially in DRAFT state until activated."],["Uses an HTTP POST request to `https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers` with specified path and query parameters."],["Requires providing a `SubscriptionOffer` object in the request body, detailing the offer's specifics."],["Upon success, the response body returns the newly created `SubscriptionOffer` object."],["Needs authorization with the `https://www.googleapis.com/auth/androidpublisher` OAuth scope."]]],["This document details how to create a new subscription offer for auto-renewing base plans. The `POST` request is sent to a specific URL with `packageName`, `productId`, and `basePlanId` as required path parameters. The `offerId` and `regionsVersion` are required query parameters. The request body must contain `SubscriptionOffer` data, and a successful response returns the newly created `SubscriptionOffer`. Authorization requires the `https://www.googleapis.com/auth/androidpublisher` OAuth scope.\n"]]