添加 AdSelectionFromOutcomesOverrideRequest
public
class
AddAdSelectionFromOutcomesOverrideRequest
extends Object
java.lang.Object | |
↳ | android.adservices.adselection.AddAdSelectionFromOutcomesOverrideRequest |
此 POJO 代表 TestAdSelectionManager.overrideAdSelectionFromOutcomesConfigRemoteInfo(AddAdSelectionFromOutcomesOverrideRequest, Executor, OutcomeReceiver)
(
AddAdSelectionOverrideRequest, Executor, OutcomeReceiver)} 请求
它包含一个 AdSelectionFromOutcomesConfig
,用作以下对象的标识符:
特定替换项,String
chooseLogicJs 和 String
selectionSignals
表示替换值的字段
摘要
公共构造函数 | |
---|---|
AddAdSelectionFromOutcomesOverrideRequest(AdSelectionFromOutcomesConfig adSelectionFromOutcomesConfig, String outcomeSelectionLogicJs, AdSelectionSignals outcomeSelectionTrustedSignals)
|
公共方法 | |
---|---|
AdSelectionFromOutcomesConfig
|
getAdSelectionFromOutcomesConfig()
|
String
|
getOutcomeSelectionLogicJs()
|
AdSelectionSignals
|
getOutcomeSelectionTrustedSignals()
|
继承的方法 | |
---|---|
公共构造函数
添加 AdSelectionFromOutcomesOverrideRequest
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 。 |
get ResultsSelectionTrustedSignals
public AdSelectionSignals getOutcomeSelectionTrustedSignals ()
返回 | |
---|---|
AdSelectionSignals |
替换可信评分信号应为有效的 JSON 字符串。受信任的
信号会被馈送到广告结果选择过程中的结果选择逻辑中。
此值不能为 null 。 |