Method: apprecovery.addTargeting
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
อัปเดตการกำหนดเป้าหมายสำหรับการดำเนินการกู้คืนทีละส่วน โปรดทราบว่าคุณสามารถขยายได้เฉพาะเกณฑ์ที่เลือกระหว่างการสร้างการดำเนินการกู้คืนเท่านั้น
คำขอ HTTP
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:addTargeting
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
packageName |
string
ต้องระบุ ชื่อแพ็กเกจของแอปที่จะอัปเดตการดำเนินการกู้คืน
|
appRecoveryId |
string (int64 format)
ต้องระบุ รหัสที่สอดคล้องกับการดำเนินการกู้คืนแอป
|
เนื้อหาของคำขอ
เนื้อหาของคำขอมีข้อมูลที่มีโครงสร้างต่อไปนี้
ช่อง |
targetingUpdate |
object (TargetingUpdate )
ระบุการอัปเดตการกำหนดเป้าหมาย เช่น ภูมิภาค, เวอร์ชัน SDK ของ Android เป็นต้น
|
เนื้อหาการตอบกลับ
หากสำเร็จ เนื้อหาการตอบกลับจะว่างเปล่า
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/androidpublisher
TargetingUpdate
อัปเดตประเภทสำหรับการกำหนดเป้าหมาย โปรดทราบว่านี่เป็นการกำหนดเป้าหมายชุดย่อยเสมอ
การแสดง JSON |
{
// Union field criteria can be only one of the following:
"regions": {
object (Regions )
},
"androidSdks": {
object (AndroidSdks )
},
"allUsers": {
object (AllUsers )
}
// End of list of possible types for union field criteria .
} |
ช่อง |
ช่องการรวม criteria เกณฑ์สำหรับการกำหนดเป้าหมายในการดำเนินการกู้คืน โปรดทราบว่าเว้นแต่ว่าเกณฑ์จะไม่ใช่ all_users เกณฑ์ควรเป็นเกณฑ์เดียวกับที่ใช้ระหว่างการสร้างการดำเนินการกู้คืนแอปเสมอ มิฉะนั้นการอัปเดตจะถูกปฏิเสธ ในกรณีที่ก่อนหน้านี้กำหนดเกณฑ์ให้กำหนดเป้าหมายเป็น all_users ก็จะไม่สามารถอัปเดตการกำหนดเป้าหมายได้ ในกรณีที่ขยายกลุ่มเป้าหมายตามคำขอไม่ได้ ระบบจะแสดงข้อผิดพลาด criteria ต้องเป็นค่าใดค่าหนึ่งต่อไปนี้ |
regions |
object (Regions )
การดำเนินการกู้คืนจะกำหนดเป้าหมายภูมิภาคอื่นๆ เพิ่มเติม
|
androidSdks |
object (AndroidSdks )
การดำเนินการกู้คืนระดับ SDK เพิ่มเติมของ Android จะตกเป็นเป้าหมายของการดำเนินการดังกล่าว
|
allUsers |
object (AllUsers )
กำหนดเป้าหมายผู้ใช้ทั้งหมดแล้ว
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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\u003eIncrementally update targeting for a recovery action, expanding only criteria selected during its creation.\u003c/p\u003e\n"],["\u003cp\u003eUtilize an HTTP POST request to \u003ccode\u003ehttps://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:addTargeting\u003c/code\u003e to initiate the update.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain a \u003ccode\u003etargetingUpdate\u003c/code\u003e object specifying updates for regions, Android SDK versions, or user targeting.\u003c/p\u003e\n"],["\u003cp\u003eTargeting updates must align with the criteria initially set for the recovery action; attempting to expand beyond those parameters will result in an error.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful updates result in an empty response body.\u003c/p\u003e\n"]]],["This outlines how to update the targeting of an app recovery action using a `POST` request to a specific URL. The request requires the app's package name and recovery action ID as path parameters. The request body should contain a `targetingUpdate` object, specifying criteria like `regions` or `androidSdks` to expand the targeted group, the criteria used must be the same that was used in creation of the action. If successful, the response is empty; requires an `androidpublisher` authorization scope.\n"],null,[]]