Stay organized with collections
Save and categorize content based on your preferences.
GetAdSelectionDataRequest
class GetAdSelectionDataRequest
Represents a request containing the information to get ad selection data.
Instances of this class are created by SDKs to be provided as arguments to the android.adservices.adselection.AdSelectionManager#getAdSelectionData
methods in AdSelectionManager
.
Summary
Public methods
getCoordinatorOriginUri
fun getCoordinatorOriginUri(): Uri?
Return |
Uri? |
the coordinator origin Uri where the public keys for encryption are fetched from
See Builder.setCoordinatorOriginUri(Uri) for more details on the coordinator origin This value may be null .
|
getSeller
fun getSeller(): AdTechIdentifier?
Return |
AdTechIdentifier? |
a AdTechIdentifier of the seller, for example "www.example-ssp.com" This value may be null . |
getSellerConfiguration
fun getSellerConfiguration(): SellerConfiguration?
Returns the seller ad tech's requested payload configuration, set by the calling SDK, to optimize the payload.
If this is null
, the service will send all data available.
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-03-13 UTC.
[null,null,["Last updated 2025-03-13 UTC."],[],[],null,["# GetAdSelectionDataRequest\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\nGetAdSelectionDataRequest\n=========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/adservices/adselection/GetAdSelectionDataRequest \"View this page in Java\") \n\n```\nclass GetAdSelectionDataRequest\n```\n\n|---|---------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.adservices.adselection.GetAdSelectionDataRequest](#) |\n\nRepresents a request containing the information to get ad selection data.\n\nInstances of this class are created by SDKs to be provided as arguments to the [android.adservices.adselection.AdSelectionManager#getAdSelectionData](/reference/kotlin/android/adservices/adselection/AdSelectionManager#getAdSelectionData(android.adservices.adselection.GetAdSelectionDataRequest,%20java.util.concurrent.Executor,%20android.os.OutcomeReceiver)) methods in [AdSelectionManager](/reference/kotlin/android/adservices/adselection/AdSelectionManager).\n\nSummary\n-------\n\n| Nested classes ||\n|---|---------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [Builder](/reference/kotlin/android/adservices/adselection/GetAdSelectionDataRequest.Builder) Builder for [GetAdSelectionDataRequest](#) objects. |\n\n| Public methods ||\n|----------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Uri](../../net/Uri.html#)? | [getCoordinatorOriginUri](#getCoordinatorOriginUri())`()` \u003cbr /\u003e |\n| [AdTechIdentifier](../common/AdTechIdentifier.html#)? | [getSeller](#getSeller())`()` \u003cbr /\u003e |\n| [SellerConfiguration](/reference/kotlin/android/adservices/adselection/SellerConfiguration)? | [getSellerConfiguration](#getSellerConfiguration())`()` Returns the seller ad tech's requested payload configuration, set by the calling SDK, to optimize the payload. |\n\nPublic methods\n--------------\n\n### getCoordinatorOriginUri\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 12](https://developer.android.com/sdkExtensions) \n\n```\nfun getCoordinatorOriginUri(): Uri?\n```\n\n| Return ||\n|-----------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Uri](../../net/Uri.html#)? | the coordinator origin Uri where the public keys for encryption are fetched from See [Builder.setCoordinatorOriginUri(Uri)](/reference/kotlin/android/adservices/adselection/GetAdSelectionDataRequest.Builder#setCoordinatorOriginUri(android.net.Uri)) for more details on the coordinator origin This value may be `null`. |\n\n### getSeller\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```\nfun getSeller(): AdTechIdentifier?\n```\n\n| Return ||\n|-------------------------------------------------------|-----------------------------------------------------------------------------------------------|\n| [AdTechIdentifier](../common/AdTechIdentifier.html#)? | a AdTechIdentifier of the seller, for example \"www.example-ssp.com\" This value may be `null`. |\n\n### getSellerConfiguration\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 14](https://developer.android.com/sdkExtensions) \n\n```\nfun getSellerConfiguration(): SellerConfiguration?\n```\n\nReturns the seller ad tech's requested payload configuration, set by the calling SDK, to optimize the payload.\n\nIf this is `null`, the service will send all data available."]]