ReportImpressionRequest
  public
  
  
  
  class
  ReportImpressionRequest
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | android.adservices.adselection.ReportImpressionRequest | 
表示报告展示次数 API 的输入参数。
摘要
| 公共构造函数 | |
|---|---|
| 
      ReportImpressionRequest(long adSelectionId, AdSelectionConfig adSelectionConfig)
      设备端广告选择报告请求的构造函数。 | |
| 
      ReportImpressionRequest(long adSelectionId)
      竞价服务器广告选择报告请求的更正。 | |
| 公共方法 | |
|---|---|
| 
        
        
        
        
        
        AdSelectionConfig | 
      getAdSelectionConfig()
      返回 adSelectionConfig( | 
| 
        
        
        
        
        
        long | 
      getAdSelectionId()
      返回 adSelectionId( | 
| 继承的方法 | |
|---|---|
公共构造函数
ReportImpressionRequest
public ReportImpressionRequest (long adSelectionId, 
                AdSelectionConfig adSelectionConfig)设备端广告选择报告请求的构造函数。
如果您的adSelectionId是使用AdSelectionManager.selectAds(android.adservices.adselection.AdSelectionConfig, java.util.concurrent.Executor, android.os.OutcomeReceiver)在设备端竞价运行,那么您的
 展示次数报告请求必须包含您的AdSelectionConfig。
| 参数 | |
|---|---|
| adSelectionId | long:已从AdSelectionManager#selectAds(AdSelectionConfig,
     Executor, OutcomeReceiver)收到 | 
| adSelectionConfig | AdSelectionConfig:用于触发AdSelectionManager.selectAds(android.adservices.adselection.AdSelectionConfig, java.util.concurrent.Executor, android.os.OutcomeReceiver)的AdSelectionConfig此值不能为null。 | 
ReportImpressionRequest
public ReportImpressionRequest (long adSelectionId)
竞价服务器广告选择报告请求的更正。
如果您的adSelectionId用于服务器竞价运行,其中设备信息
 AdSelectionManager#getAdSelectionData,那么您的展示次数报告请求应
 仅包含广告选择 ID。
 
AdSelectionManager#persistAdSelectionResult 必须使用经过加密的
 结果 blob,然后再发出展示报告请求。
| 参数 | |
|---|---|
| adSelectionId | long:已从AdSelectionManager#getAdSelectionData收到 | 
公共方法
getAdSelectionConfig
public AdSelectionConfig getAdSelectionConfig ()
返回 adSelectionConfig(ReportImpressionRequest 的一项输入)
| 返回 | |
|---|---|
| AdSelectionConfig | 此值不能为 null。 | 
getAdSelectionId
public long getAdSelectionId ()
返回 adSelectionId(ReportImpressionRequest 的一项输入)
| 返回 | |
|---|---|
| long | |
