Targeting
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
รายละเอียดการกำหนดเป้าหมายสำหรับการดำเนินการกู้คืน เช่น ภูมิภาค, ระดับ SDK ของ Android, เวอร์ชันของแอป เป็นต้น
การแสดง 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 .
// Union field target_versions can be only one of the following:
"versionList": {
object (AppVersionList )
},
"versionRange": {
object (AppVersionRange )
}
// End of list of possible types for union field target_versions .
} |
ช่อง |
ช่องการรวม criteria เกณฑ์สำหรับการดำเนินการกู้คืนการกำหนดเป้าหมาย criteria ต้องเป็นค่าใดค่าหนึ่งต่อไปนี้ |
regions |
object (Regions )
การกำหนดเป้าหมายจะขึ้นอยู่กับภูมิภาคของบัญชีผู้ใช้
|
androidSdks |
object (AndroidSdks )
การกำหนดเป้าหมายจะอิงตามระดับ Android API ของอุปกรณ์
|
allUsers |
object (AllUsers )
กำหนดเป้าหมายผู้ใช้ทั้งหมดแล้ว
|
ช่องการรวม target_versions เวอร์ชันแอปที่การดำเนินการกู้คืนกำหนดเป้าหมายไว้ ต้องระบุ target_versions ต้องเป็นค่าใดค่าหนึ่งต่อไปนี้ |
versionList |
object (AppVersionList )
กำหนดรหัสเวอร์ชันเป้าหมายเป็นรายการ
|
versionRange |
object (AppVersionRange )
กำหนดรหัสเวอร์ชันเป้าหมายเป็นช่วง
|
AppVersionList
รูปแบบข้อมูลสำหรับรายการเวอร์ชันแอป
การแสดง JSON |
{
"versionCodes": [
string
]
} |
ช่อง |
versionCodes[] |
string (int64 format)
รายการรหัสเวอร์ชันของแอป
|
AppVersionRange
รูปแบบข้อมูลสำหรับแอปเวอร์ชันต่างๆ ที่ต่อเนื่อง
การแสดง JSON |
{
"versionCodeStart": string,
"versionCodeEnd": string
} |
ช่อง |
versionCodeStart |
string (int64 format)
เวอร์ชันแอปต่ำสุดในช่วง โดยรวม
|
versionCodeEnd |
string (int64 format)
เวอร์ชันแอปสูงสุดในช่วง รวม
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eTargeting details for a recovery action include regions, Android SDK levels, and app versions.\u003c/p\u003e\n"],["\u003cp\u003eRecovery actions can target specific app versions using either a list of version codes or a range of version codes.\u003c/p\u003e\n"],["\u003cp\u003eYou can target all users or filter by region or Android SDK level for recovery actions.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAppVersionList\u003c/code\u003e defines target app versions using a list of version codes, while \u003ccode\u003eAppVersionRange\u003c/code\u003e uses a start and end version code for a continuous range.\u003c/p\u003e\n"]]],["This describes targeting options for recovery actions, utilizing JSON structures. Actions can target users based on `regions`, `androidSdks`, or `allUsers`. App versions can be targeted either as a `versionList` with specific `versionCodes` or as a `versionRange` defined by `versionCodeStart` and `versionCodeEnd`. `AppVersionList` and `AppVersionRange` provide formats to define version-specific targeting. A recovery action needs to target app versions, using one of the formats.\n"],null,["# Targeting\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [AppVersionList](#AppVersionList)\n - [JSON representation](#AppVersionList.SCHEMA_REPRESENTATION)\n- [AppVersionRange](#AppVersionRange)\n - [JSON representation](#AppVersionRange.SCHEMA_REPRESENTATION)\n\nTargeting details for a recovery action such as regions, android sdk levels, app versions etc.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { // Union field `criteria` can be only one of the following: \"regions\": { object (/android-publisher/api-ref/rest/v3/Regions) }, \"androidSdks\": { object (/android-publisher/api-ref/rest/v3/AndroidSdks) }, \"allUsers\": { object (/android-publisher/api-ref/rest/v3/AllUsers) } // End of list of possible types for union field `criteria`. // Union field `target_versions` can be only one of the following: \"versionList\": { object (/android-publisher/api-ref/rest/v3/Targeting#AppVersionList) }, \"versionRange\": { object (/android-publisher/api-ref/rest/v3/Targeting#AppVersionRange) } // End of list of possible types for union field `target_versions`. } ``` |\n\n| Fields ||\n|----------------|---------------------------------------------------------------------------------------------------------------------------------|\n| Union field `criteria`. Criteria for targeting recovery action. `criteria` can be only one of the following: ||\n| `regions` | `object (`[Regions](/android-publisher/api-ref/rest/v3/Regions)`)` Targeting is based on the user account region. |\n| `androidSdks` | `object (`[AndroidSdks](/android-publisher/api-ref/rest/v3/AndroidSdks)`)` Targeting is based on android api levels of devices. |\n| `allUsers` | `object (`[AllUsers](/android-publisher/api-ref/rest/v3/AllUsers)`)` All users are targeted. |\n| Union field `target_versions`. App versions targeted by the recovery action. Required. `target_versions` can be only one of the following: ||\n| `versionList` | `object (`[AppVersionList](/android-publisher/api-ref/rest/v3/Targeting#AppVersionList)`)` Target version codes as a list. |\n| `versionRange` | `object (`[AppVersionRange](/android-publisher/api-ref/rest/v3/Targeting#AppVersionRange)`)` Target version codes as a range. |\n\nAppVersionList\n--------------\n\nData format for a list of app versions.\n\n| JSON representation |\n|----------------------------------------|\n| ``` { \"versionCodes\": [ string ] } ``` |\n\n| Fields ||\n|------------------|----------------------------------------------------------------------------------------------------------------|\n| `versionCodes[]` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` List of app version codes. |\n\nAppVersionRange\n---------------\n\nData format for a continuous range of app versions.\n\n| JSON representation |\n|------------------------------------------------------------------|\n| ``` { \"versionCodeStart\": string, \"versionCodeEnd\": string } ``` |\n\n| Fields ||\n|--------------------|----------------------------------------------------------------------------------------------------------------------------------|\n| `versionCodeStart` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Lowest app version in the range, inclusive. |\n| `versionCodeEnd` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Highest app version in the range, inclusive. |"]]