AddAdSelectionFromOutcomesOverrideRequest
public class AddAdSelectionFromOutcomesOverrideRequest
extends Object
java.lang.Object | |
↳ | android.adservices.adselection.AddAdSelectionFromOutcomesOverrideRequest |
此 POJO 表示 TestAdSelectionManager.overrideAdSelectionFromOutcomesConfigRemoteInfo(AddAdSelectionFromOutcomesOverrideRequest, Executor, OutcomeReceiver)
(AddAdSelectionOverrideRequest、Executor、OutcomeReceiver)} 请求
它包含一个 AdSelectionFromOutcomesConfig
,用作特定 override 的标识符,以及一个表示 override 值的 String
selectionLogicJs 字段和一个 String
selectionSignals 字段
摘要
公共构造函数 | |
---|---|
AddAdSelectionFromOutcomesOverrideRequest(AdSelectionFromOutcomesConfig adSelectionFromOutcomesConfig, String outcomeSelectionLogicJs, AdSelectionSignals outcomeSelectionTrustedSignals)
|
公共方法 | |
---|---|
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 |
override javascript 结果,应是包含有效 JS 代码的字符串。该代码应包含在广告结果选择期间执行的结果选择逻辑。此值不能为 null 。 |
getOutcomeSelectionTrustedSignals
public AdSelectionSignals getOutcomeSelectionTrustedSignals ()
返回 | |
---|---|
AdSelectionSignals |
override 受信任的评分信号,应是有效的 json 字符串。这些受信任的信号将在广告结果选择期间馈送到结果选择逻辑中。此值不能为 null 。 |