添加 AdSelectionFromOutcomesOverrideRequest

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

getOutcomeSelectionLogicJs

public String getOutcomeSelectionLogicJs ()

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

getOutcomeSelectionTrustedSignals

public AdSelectionSignals getOutcomeSelectionTrustedSignals ()

返回
AdSelectionSignals 替换可信评分信号应为有效的 JSON 字符串。在广告结果选择期间,可信信号将被馈送到结果选择逻辑中。 此值不能为 null