Method: monetization.convertRegionPrices
คํานวณราคาระดับภูมิภาคโดยใช้อัตราแลกเปลี่ยนของวันนี้และรูปแบบการกําหนดราคาของแต่ละประเทศ โดยอิงตามราคาในคําขอสําหรับกลุ่มภูมิภาค
คำขอ HTTP
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/pricing:convertRegionPrices
URL ใช้ไวยากรณ์การแปลง 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 )
ราคาที่แปลงแล้วสำหรับภูมิภาคอื่นๆ เป็น USD และ EUR เพื่อใช้ในประเทศที่ 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 )
ราคาในสกุลเงินยูโรที่จะใช้สำหรับสถานที่ตั้ง "ภูมิภาคอื่นๆ" โดยไม่รวมภาษี
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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"]]