Method: inappproducts.update
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
עדכון מוצר מתוך האפליקציה (מוצר מנוהל או מינוי).
אין יותר להשתמש בשיטה הזו כדי לעדכן מינויים. מידע נוסף זמין במאמר הזה.
בקשת HTTP
PUT https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}
בכתובת ה-URL נעשה שימוש בתחביר המרת gRPC.
פרמטרים של נתיב
פרמטרים |
packageName |
string
שם החבילה של האפליקציה.
|
sku |
string
המזהה הייחודי של המוצר מתוך האפליקציה.
|
פרמטרים של שאילתה
פרמטרים |
autoConvertMissingPrices |
boolean
אם הערך הוא true, המחירים בכל האזורים שאפליקציית ההורה מטורגטת אליהם, שלא צוין עבורם מחיר למוצר הזה מתוך האפליקציה, יומרו באופן אוטומטי למטבע היעד על סמך מחיר ברירת המחדל. ברירת המחדל היא False.
|
allowMissing |
boolean
אם המדיניות מוגדרת כ-True, והמוצר מתוך האפליקציה עם ה-packageName והמק"ט שצוינו לא קיים, המערכת תיצור את המוצר מתוך האפליקציה.
|
latencyTolerance |
enum (ProductUpdateLatencyTolerance )
אפשרות. זמן האחזור של הפצת עדכון המוצר הזה ברירת המחדל היא תלוית זמן אחזור.
|
גוף הבקשה
גוף הבקשה מכיל מופע של InAppProduct
.
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכלול מופע של InAppProduct
.
היקפי הרשאות
נדרש היקף OAuth הבא:
https://www.googleapis.com/auth/androidpublisher
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון 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-07-26 (שעון UTC)."],[[["Updates an existing in-app product or subscription using a PUT request."],["Requires `packageName` and `sku` as path parameters for identification."],["Provides optional query parameters for price conversion, product creation, and update latency."],["Request and response bodies utilize the `InAppProduct` object schema."],["Needs `https://www.googleapis.com/auth/androidpublisher` authorization scope for access."]]],["This outlines how to update an in-app product via a PUT request to `https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}`. It specifies the `packageName` and `sku` as path parameters. Query parameters allow for auto-converting prices (`autoConvertMissingPrices`), creating missing products (`allowMissing`), and setting latency tolerance (`latencyTolerance`). The request and response bodies both utilize the `InAppProduct` resource. This method now should not be used to update subscription. An authorization scope of `https://www.googleapis.com/auth/androidpublisher` is needed.\n"]]