Method: monetization.convertRegionPrices
قیمتهای منطقه را با استفاده از نرخ ارز امروز و الگوهای قیمتگذاری خاص کشور، بر اساس قیمت در درخواست مجموعهای از مناطق محاسبه میکند.
درخواست HTTP
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/pricing:convertRegionPrices
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
پارامترها |
---|
package Name | string مورد نیاز. نام بسته برنامه |
درخواست بدن
بدنه درخواست حاوی داده هایی با ساختار زیر است:
نمایندگی JSON |
---|
{
"price": {
object (Money )
}
} |
فیلدها |
---|
price | object ( Money ) قیمت اولیه برای تبدیل مناطق دیگر. بدون مالیات |
بدن پاسخگو
پیام پاسخ برای monetization.convertRegionPrices.
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی داده هایی با ساختار زیر است:
فیلدها |
---|
converted Region Prices | map (key: string, value: object ( ConvertedRegionPrice )) نقشه از کد منطقه به قیمت منطقه تبدیل شده است. یک شی حاوی لیستی از "key": value . مثال: { "name": "wrench", "mass": "1.3kg", "count": "3" } . |
converted Other Regions Price | object ( ConvertedOtherRegionsPrice ) قیمتهای مناطق دیگر را به دلار و یورو تبدیل کرد تا برای کشورهایی استفاده شود که Play از ارز محلی یک کشور پشتیبانی نمیکند. |
محدوده مجوز
به محدوده OAuth زیر نیاز دارد:
-
https://www.googleapis.com/auth/androidpublisher
ConvertedRegionPrice
نمایندگی JSON |
---|
{
"regionCode": string,
"price": {
object (Money )
},
"taxAmount": {
object (Money )
}
} |
فیلدها |
---|
region Code | string کد منطقه ای منطقه |
price | object ( Money ) قیمت تبدیل شده با احتساب مالیات. |
tax Amount | object ( Money ) مبلغ مالیات قیمت تبدیل شده. |
ConvertedOther RegionionsPrice
قیمت مناطق دیگر تبدیل شده است.
نمایندگی JSON |
---|
{
"usdPrice": {
object (Money )
},
"eurPrice": {
object (Money )
}
} |
فیلدها |
---|
usd Price | object ( Money ) قیمت به دلار برای استفاده در مکان "مناطق دیگر" بدون مالیات. |
eur Price | object ( Money ) قیمت به یورو برای استفاده در مکان "مناطق دیگر" بدون مالیات. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-12-18 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-12-18 بهوقت ساعت هماهنگ جهانی."],[[["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"]]