Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

# android.adservices.adselection

## Classes

|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |
| [AddAdSelectionFromOutcomesOverrideRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AddAdSelectionFromOutcomesOverrideRequest)       | This POJO represents the[TestAdSelectionManager.overrideAdSelectionFromOutcomesConfigRemoteInfo(AddAdSelectionFromOutcomesOverrideRequest, Executor, OutcomeReceiver)](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/TestAdSelectionManager#overrideAdSelectionFromOutcomesConfigRemoteInfo(android.adservices.adselection.AddAdSelectionFromOutcomesOverrideRequest,%20java.util.concurrent.Executor,%20android.os.OutcomeReceiver<java.lang.Object,java.lang.Exception>))( AddAdSelectionOverrideRequest, Executor, OutcomeReceiver)} request It contains, a[AdSelectionFromOutcomesConfig](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionFromOutcomesConfig)which will serve as the identifier for the specific override, a`String`selectionLogicJs and`String`selectionSignals field representing the override value |
| [AddAdSelectionOverrideRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AddAdSelectionOverrideRequest)                               | This POJO represents the[TestAdSelectionManager.overrideAdSelectionConfigRemoteInfo(android.adservices.adselection.AddAdSelectionOverrideRequest, java.util.concurrent.Executor, android.os.OutcomeReceiver)](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/TestAdSelectionManager#overrideAdSelectionConfigRemoteInfo(android.adservices.adselection.AddAdSelectionOverrideRequest,%20java.util.concurrent.Executor,%20android.os.OutcomeReceiver<java.lang.Object,java.lang.Exception>))request It contains, a[AdSelectionConfig](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionConfig)which will serve as the identifier for the specific override, a`String`decisionLogicJs and`String`trustedScoringSignals field representing the override value                                                                   |
| [AdSelectionConfig](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionConfig)                                                       | Contains the configuration of the ad selection process.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [AdSelectionConfig.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionConfig.Builder)                                       | Builder for[AdSelectionConfig](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionConfig)object.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [AdSelectionFromOutcomesConfig](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionFromOutcomesConfig)                               | Contains the configuration of the ad selection process that select a winner from a given list of ad selection ids.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [AdSelectionFromOutcomesConfig.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionFromOutcomesConfig.Builder)               | Builder for[AdSelectionFromOutcomesConfig](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionFromOutcomesConfig)objects.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [AdSelectionManager](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionManager)                                                     | AdSelection Manager provides APIs for app and ad-SDKs to run ad selection processes as well as report impressions.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [AdSelectionOutcome](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionOutcome)                                                     | This class represents a field in the`OutcomeReceiver`, which is an input to the[AdSelectionManager.selectAds(AdSelectionConfig, Executor, OutcomeReceiver)](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionManager#selectAds(android.adservices.adselection.AdSelectionConfig,%20java.util.concurrent.Executor,%20android.os.OutcomeReceiver<android.adservices.adselection.AdSelectionOutcome,java.lang.Exception>))in the[AdSelectionManager](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionManager).                                                                                                                                                                                                                                                                                                        |
| [AdSelectionOutcome.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionOutcome.Builder)                                     | Builder for[AdSelectionOutcome](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionOutcome)objects.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [GetAdSelectionDataOutcome](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/GetAdSelectionDataOutcome)                                       | Represents ad selection data collected from device for ad selection.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [GetAdSelectionDataRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/GetAdSelectionDataRequest)                                       | Represents a request containing the information to get ad selection data.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [GetAdSelectionDataRequest.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/GetAdSelectionDataRequest.Builder)                       | Builder for[GetAdSelectionDataRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/GetAdSelectionDataRequest)objects.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [PersistAdSelectionResultRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/PersistAdSelectionResultRequest)                           | Represents a request containing the seller, the ad selection id and data.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [PersistAdSelectionResultRequest.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/PersistAdSelectionResultRequest.Builder)           | Builder for[PersistAdSelectionResultRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/PersistAdSelectionResultRequest)objects.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [RemoveAdSelectionFromOutcomesOverrideRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/RemoveAdSelectionFromOutcomesOverrideRequest) | This POJO represents the[RemoveAdSelectionFromOutcomesOverrideRequest, Executor, OutcomeReceiver)](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/TestAdSelectionManager)request It contains one field, a[AdSelectionFromOutcomesConfig](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionFromOutcomesConfig)which serves as the identifier of the override to be removed                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [RemoveAdSelectionOverrideRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/RemoveAdSelectionOverrideRequest)                         | This POJO represents the[TestAdSelectionManager#removeAdSelectionConfigRemoteInfoOverride( RemoveAdSelectionOverrideRequest, Executor, OutcomeReceiver)](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/TestAdSelectionManager#removeAdSelectionConfigRemoteInfoOverride(android.adservices.adselection.RemoveAdSelectionOverrideRequest,%20java.util.concurrent.Executor,%20android.os.OutcomeReceiver<java.lang.Object,java.lang.Exception>))request It contains one field, a[AdSelectionConfig](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionConfig)which serves as the identifier of the override to be removed                                                                                                                                                                                                      |
| [ReportEventRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest)                                                     | Request object wrapping the required arguments needed to report an ad event.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [ReportEventRequest.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest.Builder)                                     | Builder for[ReportEventRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest)objects.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [ReportImpressionRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportImpressionRequest)                                           | Represent input parameters to the reportImpression API.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [TestAdSelectionManager](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/TestAdSelectionManager)                                             | [TestAdSelectionManager](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/TestAdSelectionManager)provides APIs for apps and ad SDKs to test ad selection processes.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [UpdateAdCounterHistogramRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/UpdateAdCounterHistogramRequest)                           | Request object wrapping the required arguments needed to update an ad counter histogram.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [UpdateAdCounterHistogramRequest.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/UpdateAdCounterHistogramRequest.Builder)           | Builder for[UpdateAdCounterHistogramRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/UpdateAdCounterHistogramRequest)objects.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |

-

  ## Classes

  - [AddAdSelectionFromOutcomesOverrideRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AddAdSelectionFromOutcomesOverrideRequest)
  - [AddAdSelectionOverrideRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AddAdSelectionOverrideRequest)
  - [AdSelectionConfig](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionConfig)
  - [AdSelectionConfig.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionConfig.Builder)
  - [AdSelectionFromOutcomesConfig](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionFromOutcomesConfig)
  - [AdSelectionFromOutcomesConfig.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionFromOutcomesConfig.Builder)
  - [AdSelectionManager](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionManager)
  - [AdSelectionOutcome](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionOutcome)
  - [AdSelectionOutcome.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionOutcome.Builder)
  - [GetAdSelectionDataOutcome](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/GetAdSelectionDataOutcome)
  - [GetAdSelectionDataRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/GetAdSelectionDataRequest)
  - [GetAdSelectionDataRequest.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/GetAdSelectionDataRequest.Builder)
  - [PersistAdSelectionResultRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/PersistAdSelectionResultRequest)
  - [PersistAdSelectionResultRequest.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/PersistAdSelectionResultRequest.Builder)
  - [RemoveAdSelectionFromOutcomesOverrideRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/RemoveAdSelectionFromOutcomesOverrideRequest)
  - [RemoveAdSelectionOverrideRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/RemoveAdSelectionOverrideRequest)
  - [ReportEventRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest)
  - [ReportEventRequest.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest.Builder)
  - [ReportImpressionRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportImpressionRequest)
  - [TestAdSelectionManager](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/TestAdSelectionManager)
  - [UpdateAdCounterHistogramRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/UpdateAdCounterHistogramRequest)
  - [UpdateAdCounterHistogramRequest.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/UpdateAdCounterHistogramRequest.Builder)