AddAdSelectionFromOutcomesOverrideRequest

public class AddAdSelectionFromOutcomesOverrideRequest
extends Object

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


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

其中包含 AdSelectionFromOutcomesConfig,可做為特定覆寫值的 ID;以及 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

公用方法

getAdSelectionFromOutcomesConfig

public AdSelectionFromOutcomesConfig getAdSelectionFromOutcomesConfig ()

傳回
AdSelectionFromOutcomesConfig AdSelectionFromOutcomesConfig 的例項,即廣告選擇程序的設定。這項設定會提供必要資料,以便執行廣告選擇流程,產生出價和分數,找出要算繪的勝出廣告。此值不能為 null

getOutcomeSelectionLogicJs

public String getOutcomeSelectionLogicJs ()

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

getOutcomeSelectionTrustedSignals

public AdSelectionSignals getOutcomeSelectionTrustedSignals ()

傳回
AdSelectionSignals 覆寫信任評分信號,應為有效的 JSON 字串。在廣告結果選擇期間,系統會將受信任的信號提供給結果選擇邏輯。此值不能為 null