AdSelectionOutcome.Builder
public
static
final
class
AdSelectionOutcome.Builder
extends Object
| java.lang.Object | |
| ↳ | android.adservices.adselection.AdSelectionOutcome.Builder |
This class was deprecated
in API level 37.
The Rubidium (Rb) Relevance APIs, including those in
android.adservices.adselection, have been removed.
Builder for AdSelectionOutcome objects.
Summary
Public constructors | |
|---|---|
Builder()
|
|
Public methods | |
|---|---|
AdSelectionOutcome
|
build()
Builds a |
AdSelectionOutcome.Builder
|
setAdSelectionId(long adSelectionId)
Sets the mAdSelectionId. |
AdSelectionOutcome.Builder
|
setComponentAdUris(List<Uri> componentAdUris)
Sets the list of ad component renderUris. |
AdSelectionOutcome.Builder
|
setRenderUri(Uri renderUri)
Sets the RenderUri. |
Inherited methods | |
|---|---|
Public constructors
Public methods
build
public AdSelectionOutcome build ()
Builds a AdSelectionOutcome instance.
| Returns | |
|---|---|
AdSelectionOutcome |
This value cannot be null. |
| Throws | |
|---|---|
IllegalArgumentException |
if the adSelectionIid is not set |
NullPointerException |
if the RenderUri is null |
setAdSelectionId
public AdSelectionOutcome.Builder setAdSelectionId (long adSelectionId)
Sets the mAdSelectionId.
| Parameters | |
|---|---|
adSelectionId |
long |
| Returns | |
|---|---|
AdSelectionOutcome.Builder |
This value cannot be null. |
setComponentAdUris
public AdSelectionOutcome.Builder setComponentAdUris (List<Uri> componentAdUris)
Sets the list of ad component renderUris.
| Parameters | |
|---|---|
componentAdUris |
List: This value cannot be null. |
| Returns | |
|---|---|
AdSelectionOutcome.Builder |
This value cannot be null. |
setRenderUri
public AdSelectionOutcome.Builder setRenderUri (Uri renderUri)
Sets the RenderUri.
| Parameters | |
|---|---|
renderUri |
Uri: This value cannot be null. |
| Returns | |
|---|---|
AdSelectionOutcome.Builder |
This value cannot be null. |