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 )
换算后的其他地区价格(以美元和欧元为单位),用于在 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 )
用于“其他地区”的以欧元为单位的不含税价格。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-12-17。
[null,null,["最后更新时间 (UTC):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"]]