Method: apprecovery.create
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สร้างการดำเนินการกู้คืนแอปโดยมีสถานะเป็น "ฉบับร่าง" โปรดทราบว่าการดำเนินการนี้จะไม่เป็นการดำเนินการกู้คืน
คำขอ HTTP
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/appRecoveries
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
packageName |
string
ต้องระบุ ชื่อแพ็กเกจของแอปที่มีการดำเนินการกู้คืน
|
เนื้อหาของคำขอ
เนื้อหาของคำขอมีข้อมูลที่มีโครงสร้างต่อไปนี้
การแสดง JSON |
{
"targeting": {
object (Targeting )
},
// Union field recovery_action can be only one of the following:
"remoteInAppUpdate": {
object (RemoteInAppUpdate )
}
// End of list of possible types for union field recovery_action .
} |
ช่อง |
targeting |
object (Targeting )
ระบุเกณฑ์การกำหนดเป้าหมายสำหรับการดำเนินการกู้คืน เช่น ภูมิภาค, เวอร์ชัน SDK ของ Android, เวอร์ชันแอป เป็นต้น
|
ช่องการรวม recovery_action ประเภทของการกู้คืนแอปที่จะดำเนินการ ต้องระบุ recovery_action ต้องเป็นค่าใดค่าหนึ่งต่อไปนี้ |
remoteInAppUpdate |
object (RemoteInAppUpdate )
ประเภทการดำเนินการคือการอัปเดตในแอปจากระยะไกล นอกจากนี้ ยังได้สร้างโมดูลการกู้คืนที่ดาวน์โหลดได้เพื่อวัตถุประสงค์ในการทดสอบด้วย ซึ่งเป็นผลมาจากการดำเนินการนี้
|
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ที่สร้างขึ้นใหม่ AppRecoveryAction
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/androidpublisher
RemoteInAppUpdate
การนำเสนอออบเจ็กต์สำหรับประเภทการดำเนินการอัปเดตในแอประยะไกล
การแสดง JSON |
{
"isRemoteInAppUpdateRequested": boolean
} |
ช่อง |
isRemoteInAppUpdateRequested |
boolean
ต้องระบุ ตั้งค่าเป็น "จริง" หากจำเป็นต้องใช้ประเภทการดำเนินการอัปเดตในแอประยะไกล
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eCreate a draft app recovery action to address issues within your app, without immediate execution.\u003c/p\u003e\n"],["\u003cp\u003eDefine targeting criteria such as regions, Android versions, and app versions to control which users receive the recovery action.\u003c/p\u003e\n"],["\u003cp\u003eSpecify the recovery action type, in this case, a remote in-app update, enabling you to deliver a downloadable recovery module to affected users.\u003c/p\u003e\n"],["\u003cp\u003eUtilize the provided HTTP request structure with the necessary path parameters and request body to initiate the draft creation.\u003c/p\u003e\n"],["\u003cp\u003eThis action requires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/androidpublisher\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["This document details creating an app recovery action using a POST request to `https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/appRecoveries`. The request requires the app's package name as a path parameter. The request body must include `targeting` criteria and specify the `recovery_action`, with the only supported type being `remoteInAppUpdate`. This sets the `isRemoteInAppUpdateRequest` field to `true`. Successful requests return an `AppRecoveryAction` instance, and the operation requires the `androidpublisher` OAuth scope.\n"],null,[]]