Method: monetization.subscriptions.patch
    
    
      
    
    
      
      使用集合让一切井井有条
    
    
      
      根据您的偏好保存内容并对其进行分类。
    
  
    
  
      
    
  
  
  
  
  
  
    
    
    
    
    
    
      
      
      
      
        
          HTTP 请求
          PATCH https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{subscription.packageName}/subscriptions/{subscription.productId}
网址采用 gRPC 转码语法。
        
        
          路径参数
          
            
              
              
            
            
              
                | 参数 | 
            
            
              
                | subscription.packageName | string
 不可变。父级应用的软件包名称。 | 
              
                | subscription.productId | string
 不可变。商品的唯一商品 ID。在父级应用中是唯一的。产品 ID 必须由小写字母 (a-z)、数字 (0-9)、下划线 (_) 和点 (.) 组成。必须以小写字母或数字开头,长度介于 1 到 40(含)字符之间。 | 
            
          
        
        
          查询参数
          
            
              
              
            
            
              
                | 参数 | 
            
            
              
                | updateMask | string (FieldMaskformat)
 必需。要更新的字段列表。 这是以逗号分隔的完全限定字段名称列表。示例:"user.displayName,photo"。 | 
              
                | regionsVersion | object (RegionsVersion)
 必需。用于订阅的可用区域的版本。 | 
              
                | allowMissing | boolean
 可选。如果设为 true,并且不存在具有给定 packageName 和 productId 的订阅,系统将会创建该订阅。 如果创建了新订阅,系统会忽略 updateMask。 | 
              
                | latencyTolerance | enum (ProductUpdateLatencyTolerance)
 可选。此产品更新的传播的延迟容忍度。默认为对延迟敏感。 | 
            
          
        
        
          请求正文
          请求正文包含一个 Subscription 实例。
        
        
          响应正文
          如果成功,则响应正文包含一个 Subscription 实例。
        
        
          授权范围
          需要以下 OAuth 作用域:
          
            - https://www.googleapis.com/auth/androidpublisher
 
  
    
      
      
    
    
      
    
    
  
       
    
    
      
    
  
  
  如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
  最后更新时间 (UTC):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"]],["最后更新时间 (UTC):2025-07-26。"],[],["This document outlines the process for updating an existing subscription via a `PATCH` HTTP request to the Android Publisher API. Key actions include specifying the subscription to update using `packageName` and `productId` in the URL path. Required `updateMask` and `regionsVersion` query parameters detail the fields to modify and the region version. The request body uses the `Subscription` resource. Optional parameters `allowMissing` allows creating missing subscriptions, and `latencyTolerance` adjusts update propagation.  Successful requests return an updated `Subscription` resource. The process requires `androidpublisher` authorization scope.\n"]]