Method: inappproducts.insert
    
    
      
    
    
      
      使用集合让一切井井有条
    
    
      
      根据您的偏好保存内容并对其进行分类。
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
    
    
    
      
      
      
        创建应用内商品(受管理的商品或订阅)。
请勿再使用此方法创建订阅。如需了解详情,请参阅此文。
      
      
        
          HTTP 请求
          POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts
网址采用 gRPC 转码语法。
        
        
          路径参数
          
            
              
              
            
            
              
                | 参数 | 
            
            
              
                | packageName | string
 应用的软件包名称。 | 
            
          
        
        
          查询参数
          
            
              
              
            
            
              
                | 参数 | 
            
            
              
                | autoConvertMissingPrices | boolean
 如果父级应用定位的所有地区没有为此应用内商品指定价格,则相应地区的价格将根据默认价格自动换算为目标货币。默认值为 false。 | 
            
          
        
        
          请求正文
          请求正文包含一个 InAppProduct 实例。
        
        
          响应正文
          如果成功,响应正文将包含一个新创建的 InAppProduct 实例。
        
        
          授权范围
          需要以下 OAuth 作用域:
          
            - https://www.googleapis.com/auth/androidpublisher
 
  
    
    
      
       
    
    
  
  
  如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
  最后更新时间 (UTC):2025-07-26。
  
  
  
    
      [null,null,["最后更新时间 (UTC):2025-07-26。"],[],["This document details the process of creating an in-app product using the Android Publisher API.  A `POST` request is sent to a specific URL containing the app's package name.  The request body includes `InAppProduct` data. The request can include a boolean query parameter, `autoConvertMissingPrices`, to manage regional pricing. The response, upon success, returns the newly created `InAppProduct`.  Authorization requires the `androidpublisher` OAuth scope.  This method is deprecated for subscriptions.\n"]]