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