AdSelectionOutcome.Builder

public static final class AdSelectionOutcome.Builder
extends Object

java.lang.Object
   ↳ android.adservices.adselection.AdSelectionOutcome.Builder


Builder for AdSelectionOutcome objects.

Summary

Public constructors

Builder()

Public methods

AdSelectionOutcome build()

Builds a AdSelectionOutcome instance.

AdSelectionOutcome.Builder setAdSelectionId(long adSelectionId)

Sets the mAdSelectionId.

AdSelectionOutcome.Builder setRenderUri(Uri renderUri)

Sets the RenderUri.

Inherited methods

Public constructors

Builder

public Builder ()

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.

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.