添加 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)

构建 AddAdSelectionFromOutcomesOverrideRequest 实例。

继承的方法

Object clone()

创建并返回此对象的副本。

boolean equals(Object obj)

指示某个其他对象是否“等于”这个。

void finalize()

垃圾回收时,由垃圾回收器针对对象调用 确定没有对对象的更多引用。

final Class<?> getClass()

返回此 Object 的运行时类。

int hashCode()

返回对象的哈希代码值。

final void notify()

唤醒正在等待此对象的 监控。

final void notifyAll()

唤醒正在等待此对象的监控器的所有线程。

String toString()

返回对象的字符串表示。

final void wait(long timeoutMillis, int nanos)

导致当前线程处于等待状态,直到其被唤醒,这通常是 通知中断,或者直到 经过了一定量的实时。

final void wait(long timeoutMillis)

导致当前线程处于等待状态,直到其被唤醒,这通常是 通知中断,或者直到 经过了一定量的实时。

final void wait()

导致当前线程处于等待状态,直到其被唤醒,这通常是 通知中断

公共构造函数

添加 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