Method: monetization.convertRegionPrices
חישוב המחירים באזורים, על סמך המחיר בבקשה עבור קבוצה של אזורים, לפי שער החליפין של היום ודפוסי תמחור ספציפיים למדינה.
בקשת HTTP
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/pricing:convertRegionPrices
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
packageName |
string
חובה. שם חבילת האפליקציה.
|
גוף הבקשה
גוף הבקשה מכיל נתונים במבנה הבא:
ייצוג ב-JSON |
{
"price": {
object (Money )
}
} |
שדות |
price |
object (Money )
המחיר הראשוני שממנו מתבצעת המרה של אזורים אחרים. לא כולל מס.
|
גוף התשובה
הודעת התגובה של monetization.convertRegionPrices.
אם הפעולה מצליחה, גוף התגובה מכיל נתונים במבנה הבא:
שדות |
convertedRegionPrices |
map (key: string, value: object (ConvertedRegionPrice ))
מיפוי של קוד האזור למחיר המומר של האזור. אובייקט שמכיל רשימה של זוגות "key": value . דוגמה: { "name": "wrench", "mass": "1.3kg", "count": "3" } .
|
convertedOtherRegionsPrice |
object (ConvertedOtherRegionsPrice )
מחירים מומרים של אזורים אחרים בדולר ארה"ב ובאירו, לשימוש במדינות שבהן אין תמיכה במטבע המקומי של המדינה ב-Play.
|
היקפי הרשאה
נדרש היקף הרשאות OAuth הבא:
https://www.googleapis.com/auth/androidpublisher
ConvertedRegionPrice
מחיר אזורי המומר למטבע הרצוי.
ייצוג ב-JSON |
{
"regionCode": string,
"price": {
object (Money )
},
"taxAmount": {
object (Money )
}
} |
שדות |
regionCode |
string
קוד האזור של האזור.
|
price |
object (Money )
המחיר המומר כולל מס.
|
taxAmount |
object (Money )
סכום המס של המחיר המומר.
|
ConvertedOtherRegionsPrice
מחירים המומרים של אזורים אחרים.
ייצוג ב-JSON |
{
"usdPrice": {
object (Money )
},
"eurPrice": {
object (Money )
}
} |
שדות |
usdPrice |
object (Money )
המחיר בדולר ארה"ב שישמש את המיקום 'אזורים אחרים', לא כולל מיסים.
|
eurPrice |
object (Money )
המחיר באירו שישמש את המיקום 'אזורים אחרים', לא כולל מיסים.
|
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-12-17 (שעון UTC).
[null,null,["עדכון אחרון: 2024-12-17 (שעון UTC)."],[[["This endpoint calculates region prices using current exchange rates and country-specific pricing patterns."],["The request requires an initial price and the application's package name."],["The response provides converted prices for specified regions, including tax information and prices in USD/EUR for unsupported regions."],["It utilizes gRPC Transcoding for the URL structure and needs `https://www.googleapis.com/auth/androidpublisher` authorization scope."]]],["This API endpoint calculates regional prices for an app based on a provided initial price. It uses a `POST` request to `convertRegionPrices`, including the app's package name as a path parameter. The request body specifies an initial, tax-exclusive `price`. The response includes `convertedRegionPrices`, a map of region codes to converted prices, and `convertedOtherRegionsPrice`, containing USD and EUR prices for regions without local currency support. The process also involves handling tax and authorization via an OAuth scope.\n"]]