ReportEventRequest.Builder
  public
  static
  final
  
  class
  ReportEventRequest.Builder
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | android.adservices.adselection.ReportEventRequest.Builder | 
ReportEventRequest 物件的建構工具。
摘要
| 公用建構函式 | |
|---|---|
| 
      Builder(long adSelectionId, String eventKey, String eventData, int reportingDestinations)
       | |
| 公用方法 | |
|---|---|
| 
        
        
        
        
        
        ReportEventRequest | 
      build()
      建構  | 
| 
        
        
        
        
        
        ReportEventRequest.Builder | 
      setAdSelectionId(long adSelectionId)
      設定與所顯示廣告的事件相關聯的廣告選擇 ID。 | 
| 
        
        
        
        
        
        ReportEventRequest.Builder | 
      setData(String eventData)
      設定廣告事件資料。 | 
| 
        
        
        
        
        
        ReportEventRequest.Builder | 
      setInputEvent(InputEvent inputEvent)
      設定與使用者互動行為相關聯的輸入事件。 | 
| 
        
        
        
        
        
        ReportEventRequest.Builder | 
      setKey(String eventKey)
      設定事件鍵,也就是要回報的廣告事件類型。 | 
| 
        
        
        
        
        
        ReportEventRequest.Builder | 
      setReportingDestinations(int reportingDestinations)
      設定要回報到哪個報表目的地的位元欄位 (買方、賣方或兩者)。 | 
| 繼承方法 | |
|---|---|
公用建構函式
Builder
public Builder (long adSelectionId, 
                String eventKey, 
                String eventData, 
                int reportingDestinations)| 參數 | |
|---|---|
| adSelectionId | long | 
| eventKey | String:此值不能為null。 | 
| eventData | String:此值不能為null。 | 
| reportingDestinations | int:值可以是0或ReportEventRequest.FLAG_REPORTING_DESTINATION_SELLER的組合,以及ReportEventRequest.FLAG_REPORTING_DESTINATION_BUYER | 
公用方法
build
public ReportEventRequest build ()
建構 ReportEventRequest 物件。
| 傳回 | |
|---|---|
| ReportEventRequest | 此值不能為 null。 | 
setAdSelectionId
public ReportEventRequest.Builder setAdSelectionId (long adSelectionId)
設定與所顯示廣告的事件相關聯的廣告選擇 ID。
詳情請參閱 ReportEventRequest.getAdSelectionId()。
| 參數 | |
|---|---|
| adSelectionId | long | 
| 傳回 | |
|---|---|
| ReportEventRequest.Builder | 此值不能為 null。 | 
setData
public ReportEventRequest.Builder setData (String eventData)
設定廣告事件資料。
詳情請參閱 ReportEventRequest.getData()。
| 參數 | |
|---|---|
| eventData | String:此值不能為null。 | 
| 傳回 | |
|---|---|
| ReportEventRequest.Builder | 此值不能為 null。 | 
setInputEvent
public ReportEventRequest.Builder setInputEvent (InputEvent inputEvent)
設定與使用者互動行為相關聯的輸入事件。
詳情請參閱 ReportEventRequest.getInputEvent()。
| 參數 | |
|---|---|
| inputEvent | InputEvent:這個值可以是null。 | 
| 傳回 | |
|---|---|
| ReportEventRequest.Builder | 此值不能為 null。 | 
setKey
public ReportEventRequest.Builder setKey (String eventKey)
設定事件鍵,也就是要回報的廣告事件類型。
詳情請參閱 ReportEventRequest.getKey()。
| 參數 | |
|---|---|
| eventKey | String:此值不能為null。 | 
| 傳回 | |
|---|---|
| ReportEventRequest.Builder | 此值不能為 null。 | 
setReportingDestinations
public ReportEventRequest.Builder setReportingDestinations (int reportingDestinations)
設定要回報到哪個報表目的地的位元欄位 (買方、賣方或兩者)。
詳情請參閱 ReportEventRequest.getReportingDestinations()。
| 參數 | |
|---|---|
| reportingDestinations | int:值可以是0或ReportEventRequest.FLAG_REPORTING_DESTINATION_SELLER的組合,以及ReportEventRequest.FLAG_REPORTING_DESTINATION_BUYER | 
| 傳回 | |
|---|---|
| ReportEventRequest.Builder | 此值不能為 null。 | 
