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 不支持某个国家/地区的本地货币时使用。
|
regionVersion |
object (RegionsVersion )
生成价格时所用的地区版本。
|
授权范围
需要以下 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):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThis endpoint calculates region prices using current exchange rates and country-specific pricing patterns.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires an initial price and the application's package name.\u003c/p\u003e\n"],["\u003cp\u003eThe response provides converted prices for specified regions, including tax information and prices in USD/EUR for unsupported regions.\u003c/p\u003e\n"],["\u003cp\u003eIt utilizes gRPC Transcoding for the URL structure and needs \u003ccode\u003ehttps://www.googleapis.com/auth/androidpublisher\u003c/code\u003e authorization scope.\u003c/p\u003e\n"]]],["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"],null,["# Method: monetization.convertRegionPrices\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ConvertRegionPricesResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [ConvertedRegionPrice](#ConvertedRegionPrice)\n - [JSON representation](#ConvertedRegionPrice.SCHEMA_REPRESENTATION)\n- [ConvertedOtherRegionsPrice](#ConvertedOtherRegionsPrice)\n - [JSON representation](#ConvertedOtherRegionsPrice.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nCalculates the region prices, using today's exchange rate and country-specific pricing patterns, based on the price in the request for a set of regions.\n\n### HTTP request\n\n`POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/pricing:convertRegionPrices`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|---------------|------------------------------------------|\n| `packageName` | `string` Required. The app package name. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------|\n| ``` { \"price\": { object (/android-publisher/api-ref/rest/v3/Money) } } ``` |\n\n| Fields ||\n|---------|--------------------------------------------------------------------------------------------------------------------------------|\n| `price` | `object (`[Money](/android-publisher/api-ref/rest/v3/Money)`)` The intital price to convert other regions from. Tax exclusive. |\n\n### Response body\n\nResponse message for monetization.convertRegionPrices.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"convertedRegionPrices\": { string: { object (/android-publisher/api-ref/rest/v3/monetization/convertRegionPrices#ConvertedRegionPrice) }, ... }, \"convertedOtherRegionsPrice\": { object (/android-publisher/api-ref/rest/v3/monetization/convertRegionPrices#ConvertedOtherRegionsPrice) }, \"regionVersion\": { object (/android-publisher/api-ref/rest/v3/RegionsVersion) } } ``` |\n\n| Fields ||\n|------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `convertedRegionPrices` | `map (key: string, value: object (`[ConvertedRegionPrice](/android-publisher/api-ref/rest/v3/monetization/convertRegionPrices#ConvertedRegionPrice)`))` Map from region code to converted region price. An object containing a list of `\"key\": value` pairs. Example: `{ \"name\": \"wrench\", \"mass\": \"1.3kg\", \"count\": \"3\" }`. |\n| `convertedOtherRegionsPrice` | `object (`[ConvertedOtherRegionsPrice](/android-publisher/api-ref/rest/v3/monetization/convertRegionPrices#ConvertedOtherRegionsPrice)`)` Converted other regions prices in USD and EUR, to use for countries where Play doesn't support a country's local currency. |\n| `regionVersion` | `object (`[RegionsVersion](/android-publisher/api-ref/rest/v3/RegionsVersion)`)` The region version at which the prices were generated. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidpublisher`\n\nConvertedRegionPrice\n--------------------\n\nA converted region price.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"regionCode\": string, \"price\": { object (/android-publisher/api-ref/rest/v3/Money) }, \"taxAmount\": { object (/android-publisher/api-ref/rest/v3/Money) } } ``` |\n\n| Fields ||\n|--------------|-------------------------------------------------------------------------------------------------------|\n| `regionCode` | `string` The region code of the region. |\n| `price` | `object (`[Money](/android-publisher/api-ref/rest/v3/Money)`)` The converted price tax inclusive. |\n| `taxAmount` | `object (`[Money](/android-publisher/api-ref/rest/v3/Money)`)` The tax amount of the converted price. |\n\nConvertedOtherRegionsPrice\n--------------------------\n\nConverted other regions prices.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"usdPrice\": { object (/android-publisher/api-ref/rest/v3/Money) }, \"eurPrice\": { object (/android-publisher/api-ref/rest/v3/Money) } } ``` |\n\n| Fields ||\n|------------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| `usdPrice` | `object (`[Money](/android-publisher/api-ref/rest/v3/Money)`)` Price in USD to use for the \"Other regions\" location exclusive of taxes. |\n| `eurPrice` | `object (`[Money](/android-publisher/api-ref/rest/v3/Money)`)` Price in EUR to use for the \"Other regions\" location exclusive of taxes. |"]]