Method: monetization.convertRegionPrices
根據一組區域的價格要求,使用今日匯率和各國家/地區特有的定價模式計算區域價格。
HTTP 要求
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/pricing:convertRegionPrices
這個網址使用 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 )
將其他區域的價格換算成美元和歐元,以便在 Google 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 )
適用於「其他地區」位置的價格 (不含稅),單位為歐元。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-17 (世界標準時間)。
[null,null,["上次更新時間:2024-12-17 (世界標準時間)。"],[[["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"]]