AddAdSelectionFromOutcomesOverrideRequest

public class AddAdSelectionFromOutcomesOverrideRequest
extends Object

java.lang.Object
   ↳ android.adservices.adselection.AddAdSelectionFromOutcomesOverrideRequest


這個 POJO 代表 TestAdSelectionManager.overrideAdSelectionFromOutcomesConfigRemoteInfo(AddAdSelectionFromOutcomesOverrideRequest, Executor, OutcomeReceiver) (AddAdSelectionOverrideRequest, Executor, OutcomeReceiver)} 要求

其中包含用於做為特定覆寫值的 AdSelectionFromOutcomesConfig,以及代表覆寫值的 String selectionLogicJs 和 String selectionSignals 欄位

摘要

公用建構函式

AddAdSelectionFromOutcomesOverrideRequest(AdSelectionFromOutcomesConfig adSelectionFromOutcomesConfig, String outcomeSelectionLogicJs, AdSelectionSignals outcomeSelectionTrustedSignals)

建構 AddAdSelectionFromOutcomesOverrideRequest 執行個體。

公用方法

AdSelectionFromOutcomesConfig getAdSelectionFromOutcomesConfig()
String getOutcomeSelectionLogicJs()
AdSelectionSignals getOutcomeSelectionTrustedSignals()

繼承方法

公用建構函式

AddAdSelectionFromOutcomesOverrideRequest

public AddAdSelectionFromOutcomesOverrideRequest (AdSelectionFromOutcomesConfig adSelectionFromOutcomesConfig, 
                String outcomeSelectionLogicJs, 
                AdSelectionSignals outcomeSelectionTrustedSignals)

建構一個 AddAdSelectionFromOutcomesOverrideRequest 執行個體。

參數
adSelectionFromOutcomesConfig AdSelectionFromOutcomesConfig:此值不能為 null

outcomeSelectionLogicJs String:此值不能為 null

outcomeSelectionTrustedSignals AdSelectionSignals:此值不能為 null

公用方法

getAdSelectionFromResultsConfig

public AdSelectionFromOutcomesConfig getAdSelectionFromOutcomesConfig ()

傳回
AdSelectionFromOutcomesConfig AdSelectionFromOutcomesConfig 執行個體,廣告選擇程序的設定。這項設定會提供執行廣告選擇流程所需的資料,以便產生出價和分數,找出勝出的廣告並放送。此值不能為 null

取得結果選取記錄

public String getOutcomeSelectionLogicJs ()

傳回
String 覆寫 JavaScript 結果,應為包含有效 JS 程式碼的字串。程式碼應包含要在選取廣告結果時執行的結果選擇邏輯。此值不能為 null

getOutcomeSelectionTrustedSignals

public AdSelectionSignals getOutcomeSelectionTrustedSignals ()

傳回
AdSelectionSignals 覆寫的信任評分信號必須是有效的 JSON 字串。選擇廣告結果時,系統會將受信任的信號填入結果選擇邏輯。此值不能為 null