Method: monetization.convertRegionPrices

Calculates 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.

HTTP request

POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/pricing:convertRegionPrices

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
packageName

string

Required. The app package name.

Request body

The request body contains data with the following structure:

JSON representation
{
  "price": {
    object (Money)
  }
}
Fields
price

object (Money)

The intital price to convert other regions from. Tax exclusive.

Response body

If successful, the response body contains data with the following structure:

Response message for monetization.convertRegionPrices.

JSON representation
{
  "convertedRegionPrices": {
    string: {
      object (ConvertedRegionPrice)
    },
    ...
  },
  "convertedOtherRegionsPrice": {
    object (ConvertedOtherRegionsPrice)
  }
}
Fields
convertedRegionPrices

map (key: string, value: object (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" }.

convertedOtherRegionsPrice

object (ConvertedOtherRegionsPrice)

Converted other regions prices in USD and EUR, to use for countries where Play doesn't support a country's local currency.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/androidpublisher

Money

Represents an amount of money with its currency type.

JSON representation
{
  "currencyCode": string,
  "units": string,
  "nanos": integer
}
Fields
currencyCode

string

The three-letter currency code defined in ISO 4217.

units

string (int64 format)

The whole units of the amount. For example if currencyCode is "USD", then 1 unit is one US dollar.

nanos

integer

Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If units is positive, nanos must be positive or zero. If units is zero, nanos can be positive, zero, or negative. If units is negative, nanos must be negative or zero. For example $-1.75 is represented as units=-1 and nanos=-750,000,000.

ConvertedRegionPrice

A converted region price.

JSON representation
{
  "regionCode": string,
  "price": {
    object (Money)
  },
  "taxAmount": {
    object (Money)
  }
}
Fields
regionCode

string

The region code of the region.

price

object (Money)

The converted price tax inclusive.

taxAmount

object (Money)

The tax amount of the converted price.

ConvertedOtherRegionsPrice

Converted other regions prices.

JSON representation
{
  "usdPrice": {
    object (Money)
  },
  "eurPrice": {
    object (Money)
  }
}
Fields
usdPrice

object (Money)

Price in USD to use for the "Other regions" location exclusive of taxes.

eurPrice

object (Money)

Price in EUR to use for the "Other regions" location exclusive of taxes.