Method: monetization.convertRegionPrices
一連の地域の価格リクエストに指定された価格を基に、当日の為替レートと対象国固有の価格設定パターンを使用して、それぞれの地域の価格を計算します。
HTTP リクエスト
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/pricing:convertRegionPrices
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
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 )
USD や EUR に換算した他の地域での価格。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 )
「他の地域」で使用する税抜き価格(USD)。
|
eurPrice |
object (Money )
「他の地域」で使用する税抜き価格(EUR)。
|
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 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"]]