ReportImpressionRequest
  public
  
  
  
  class
  ReportImpressionRequest
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | android.adservices.adselection.ReportImpressionRequest | 
代表 reportImpression API 的輸入內容參數。
摘要
| 公用建構函式 | |
|---|---|
| 
      ReportImpressionRequest(long adSelectionId, AdSelectionConfig adSelectionConfig)
      裝置端廣告選擇報表要求的 Ctor。 | |
| 
      ReportImpressionRequest(long adSelectionId)
      競價伺服器廣告選擇報表要求的對應工具。 | |
| 公用方法 | |
|---|---|
| 
        
        
        
        
        
        AdSelectionConfig | 
      getAdSelectionConfig()
      回傳 adSelectionConfig ( | 
| 
        
        
        
        
        
        long | 
      getAdSelectionId()
      回傳 adSelectionId ( | 
| 繼承方法 | |
|---|---|
公用建構函式
ReportImpressionRequest
public ReportImpressionRequest (long adSelectionId, 
                AdSelectionConfig adSelectionConfig)裝置端廣告選擇報表要求的 Ctor。
如果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 | |
