ReportImpressionRequest.Builder

public static final class ReportImpressionRequest.Builder
extends Object

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


Builder for ReportImpressionRequest objects.

Summary

Public constructors

Builder()

Public methods

ReportImpressionRequest build()

Builds a ReportImpressionRequest instance.

ReportImpressionRequest.Builder setAdSelectionConfig(AdSelectionConfig adSelectionConfig)

Set the AdSelectionConfig.

ReportImpressionRequest.Builder setAdSelectionId(long adSelectionId)

Set the mAdSelectionId.

Inherited methods

Public constructors

Builder

public Builder ()

Public methods

build

public ReportImpressionRequest build ()

Builds a ReportImpressionRequest instance.

Returns
ReportImpressionRequest This value cannot be null.

setAdSelectionConfig

public ReportImpressionRequest.Builder setAdSelectionConfig (AdSelectionConfig adSelectionConfig)

Set the AdSelectionConfig.

Parameters
adSelectionConfig AdSelectionConfig: This value cannot be null.

Returns
ReportImpressionRequest.Builder This value cannot be null.

setAdSelectionId

public ReportImpressionRequest.Builder setAdSelectionId (long adSelectionId)

Set the mAdSelectionId.

Parameters
adSelectionId long

Returns
ReportImpressionRequest.Builder This value cannot be null.