Method: monetization.convertRegionPrices
Bir bölge grubu için istekteki fiyata göre, bugünkü döviz kurunu ve ülkeye özgü fiyatlandırma şablonlarını kullanarak bölge fiyatlarını hesaplar.
HTTP isteği
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/pricing:convertRegionPrices
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
packageName |
string
Zorunlu. Uygulama paketi adı.
|
İstek içeriği
İstek metni aşağıdaki yapıyla birlikte verileri içerir:
JSON gösterimi |
{
"price": {
object (Money )
}
} |
Alanlar |
price |
object (Money )
Diğer bölgelerin dönüştürüleceği başlangıç fiyatı. Vergi hariçtir.
|
Yanıt gövdesi
monetization.convertRegionPrices için yanıt mesajı.
Başarılı olursa yanıt metni aşağıdaki yapıyla birlikte verileri içerir:
Alanlar |
convertedRegionPrices |
map (key: string, value: object (ConvertedRegionPrice ))
Bölge kodunu dönüştürülmüş bölge fiyatıyla eşleyin. "key": value çiftlerinin listesini içeren bir nesne. Örnek: { "name": "wrench", "mass": "1.3kg", "count": "3" } .
|
convertedOtherRegionsPrice |
object (ConvertedOtherRegionsPrice )
Play'in yerel para birimini desteklemediği ülkelerde kullanılmak üzere diğer bölgelerin fiyatlarını ABD doları ve avro cinsinden dönüştürür.
|
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/androidpublisher
ConvertedRegionPrice
Dönüştürülmüş bölge fiyatı.
JSON gösterimi |
{
"regionCode": string,
"price": {
object (Money )
},
"taxAmount": {
object (Money )
}
} |
Alanlar |
regionCode |
string
Bölgenin bölge kodu.
|
price |
object (Money )
Dönüştürülmüş fiyata vergi dahildir.
|
taxAmount |
object (Money )
Dönüştürülmüş fiyatın vergi tutarı.
|
ConvertedOtherRegionsPrice
Diğer bölgelerin fiyatları dönüştürülmüştür.
JSON gösterimi |
{
"usdPrice": {
object (Money )
},
"eurPrice": {
object (Money )
}
} |
Alanlar |
usdPrice |
object (Money )
"Diğer bölgeler" konumu için kullanılacak, vergiler hariç ABD doları cinsinden fiyat.
|
eurPrice |
object (Money )
"Diğer bölgeler" konumu için kullanılacak, vergiler hariç avro cinsinden fiyat.
|
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-12-17 UTC.
[null,null,["Son güncelleme tarihi: 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"]]