Targeting
    
    
      
    
    
      
      透過集合功能整理內容
    
    
      
      你可以依據偏好儲存及分類內容。
    
  
    
  
      
    
  
  
  
  
  
  
    
    
    
    
    
    
      
      
        復原動作的指定目標詳細資料,例如區域、Android SDK 等級、應用程式版本等。
      
      
        
          
            
              | JSON 表示法 | 
          
          
            
              | {
  // Union field criteriacan be only one of the following:
  "regions": {
    object (Regions)
  },
  "androidSdks": {
    object (AndroidSdks)
  },
  "allUsers": {
    object (AllUsers)
  }
  // End of list of possible types for union fieldcriteria.
  // Union fieldtarget_versionscan be only one of the following:
  "versionList": {
    object (AppVersionList)
  },
  "versionRange": {
    object (AppVersionRange)
  }
  // End of list of possible types for union fieldtarget_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)
 範圍內最高應用程式版本 (含頭尾)。 | 
            
          
        
      
    
  
  
  
  
 
  
    
      
      
    
    
      
    
    
  
       
    
    
      
    
  
  
  除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
  上次更新時間:2025-07-26 (世界標準時間)。
  
  
  
    
      [[["容易理解","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 (世界標準時間)。"],[],["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"]]