Stay organized with collections
Save and categorize content based on your preferences.
AddAdSelectionFromOutcomesOverrideRequest
open class AddAdSelectionFromOutcomesOverrideRequest
This POJO represents the android.adservices.adselection.TestAdSelectionManager#overrideAdSelectionFromOutcomesConfigRemoteInfo
( AddAdSelectionOverrideRequest, Executor, OutcomeReceiver)} request
It contains, a AdSelectionFromOutcomesConfig
which will serve as the identifier for the specific override, a String
selectionLogicJs and String
selectionSignals field representing the override value
Summary
Public constructors
Public methods
getOutcomeSelectionLogicJs
open fun getOutcomeSelectionLogicJs(): String
Return |
String |
The override javascript result, should be a string that contains valid JS code. The code should contain the outcome selection logic that will be executed during ad outcome selection. This value cannot be null . |
getOutcomeSelectionTrustedSignals
open fun getOutcomeSelectionTrustedSignals(): AdSelectionSignals
Return |
AdSelectionSignals |
The override trusted scoring signals, should be a valid json string. The trusted signals would be fed into the outcome selection logic during ad outcome selection. This value cannot be null . |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# AddAdSelectionFromOutcomesOverrideRequest\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 10](https://developer.android.com/sdkExtensions)\n\nAddAdSelectionFromOutcomesOverrideRequest\n=========================================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/adservices/adselection/AddAdSelectionFromOutcomesOverrideRequest \"View this page in Java\") \n\n```\nopen class AddAdSelectionFromOutcomesOverrideRequest\n```\n\n|---|-------------------------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.adservices.adselection.AddAdSelectionFromOutcomesOverrideRequest](#) |\n\nThis POJO represents the [android.adservices.adselection.TestAdSelectionManager#overrideAdSelectionFromOutcomesConfigRemoteInfo](/reference/kotlin/android/adservices/adselection/TestAdSelectionManager#overrideAdSelectionFromOutcomesConfigRemoteInfo(android.adservices.adselection.AddAdSelectionFromOutcomesOverrideRequest,%20java.util.concurrent.Executor,%20android.os.OutcomeReceiver)) ( AddAdSelectionOverrideRequest, Executor, OutcomeReceiver)} request\n\nIt contains, a [AdSelectionFromOutcomesConfig](/reference/kotlin/android/adservices/adselection/AdSelectionFromOutcomesConfig) which will serve as the identifier for the specific override, a `String` selectionLogicJs and `String` selectionSignals field representing the override value\n\nSummary\n-------\n\n| Public constructors ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [AddAdSelectionFromOutcomesOverrideRequest](#AddAdSelectionFromOutcomesOverrideRequest(android.adservices.adselection.AdSelectionFromOutcomesConfig,%20kotlin.String,%20android.adservices.common.AdSelectionSignals))`(`adSelectionFromOutcomesConfig:` `[AdSelectionFromOutcomesConfig](/reference/kotlin/android/adservices/adselection/AdSelectionFromOutcomesConfig)`, `outcomeSelectionLogicJs:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, `outcomeSelectionTrustedSignals:` `[AdSelectionSignals](../common/AdSelectionSignals.html#)`)` Builds a [AddAdSelectionFromOutcomesOverrideRequest](#) instance. |\n\n| Public methods ||\n|----------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------|\n| open [AdSelectionFromOutcomesConfig](/reference/kotlin/android/adservices/adselection/AdSelectionFromOutcomesConfig) | [getAdSelectionFromOutcomesConfig](#getAdSelectionFromOutcomesConfig())`()` \u003cbr /\u003e |\n| open [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [getOutcomeSelectionLogicJs](#getOutcomeSelectionLogicJs())`()` \u003cbr /\u003e |\n| open [AdSelectionSignals](../common/AdSelectionSignals.html#) | [getOutcomeSelectionTrustedSignals](#getOutcomeSelectionTrustedSignals())`()` \u003cbr /\u003e |\n\nPublic constructors\n-------------------\n\n### AddAdSelectionFromOutcomesOverrideRequest\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 10](https://developer.android.com/sdkExtensions) \n\n```\nAddAdSelectionFromOutcomesOverrideRequest(\n adSelectionFromOutcomesConfig: AdSelectionFromOutcomesConfig, \n outcomeSelectionLogicJs: String, \n outcomeSelectionTrustedSignals: AdSelectionSignals)\n```\n\nBuilds a [AddAdSelectionFromOutcomesOverrideRequest](#) instance.\n\n| Parameters ||\n|----------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| `adSelectionFromOutcomesConfig` | [AdSelectionFromOutcomesConfig](/reference/kotlin/android/adservices/adselection/AdSelectionFromOutcomesConfig): This value cannot be `null`. |\n| `outcomeSelectionLogicJs` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html): This value cannot be `null`. |\n| `outcomeSelectionTrustedSignals` | [AdSelectionSignals](../common/AdSelectionSignals.html#): This value cannot be `null`. |\n\nPublic methods\n--------------\n\n### getAdSelectionFromOutcomesConfig\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 10](https://developer.android.com/sdkExtensions) \n\n```\nopen fun getAdSelectionFromOutcomesConfig(): AdSelectionFromOutcomesConfig\n```\n\n| Return ||\n|-----------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AdSelectionFromOutcomesConfig](/reference/kotlin/android/adservices/adselection/AdSelectionFromOutcomesConfig) | an instance of [AdSelectionFromOutcomesConfig](/reference/kotlin/android/adservices/adselection/AdSelectionFromOutcomesConfig), the configuration of the ad selection process. This configuration provides the data necessary to run Ad Selection flow that generates bids and scores to find a wining ad for rendering. This value cannot be `null`. |\n\n### getOutcomeSelectionLogicJs\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 10](https://developer.android.com/sdkExtensions) \n\n```\nopen fun getOutcomeSelectionLogicJs(): String\n```\n\n| Return ||\n|----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | The override javascript result, should be a string that contains valid JS code. The code should contain the outcome selection logic that will be executed during ad outcome selection. This value cannot be `null`. |\n\n### getOutcomeSelectionTrustedSignals\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 10](https://developer.android.com/sdkExtensions) \n\n```\nopen fun getOutcomeSelectionTrustedSignals(): AdSelectionSignals\n```\n\n| Return ||\n|----------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AdSelectionSignals](../common/AdSelectionSignals.html#) | The override trusted scoring signals, should be a valid json string. The trusted signals would be fed into the outcome selection logic during ad outcome selection. This value cannot be `null`. |"]]