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

公共方法

getAdSelectionFromOutcomesConfig

public AdSelectionFromOutcomesConfig getAdSelectionFromOutcomesConfig ()

开球回攻次数
AdSelectionFromOutcomesConfig AdSelectionFromOutcomesConfig 的实例,广告选择流程的配置。此配置提供运行广告选择流程所需的数据,该流程会生成出价和得分,以找出胜出的广告进行呈现。 此值不能为 null

getResultsSelectionLogicJs

public String getOutcomeSelectionLogicJs ()

开球回攻次数
String 替换 JavaScript 结果,应为包含有效 JS 代码的字符串。代码应包含将在广告结果选择期间执行的结果选择逻辑。 此值不能为 null

getOutcomeSelectionTrustedSignals

public AdSelectionSignals getOutcomeSelectionTrustedSignals ()

开球回攻次数
AdSelectionSignals 覆盖可信评分信号,应为有效的 json 字符串。可信信号会在广告结果选择期间馈送到结果选择逻辑中。 此值不能为 null