ReportImpressionInput.Builder

public static final class ReportImpressionInput.Builder
extends Object

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


Builder for ReportImpressionInput objects.

Summary

Public constructors

Builder()

Public methods

ReportImpressionInput build()

Builds a ReportImpressionInput instance.

ReportImpressionInput.Builder setAdSelectionConfig(AdSelectionConfig adSelectionConfig)

Set the AdSelectionConfig.

ReportImpressionInput.Builder setAdSelectionId(long adSelectionId)

Set the mAdSelectionId.

Inherited methods

Public constructors

Builder

public Builder ()

Public methods

build

public ReportImpressionInput build ()

Builds a ReportImpressionInput instance.

Returns
ReportImpressionInput This value cannot be null.

setAdSelectionConfig

public ReportImpressionInput.Builder setAdSelectionConfig (AdSelectionConfig adSelectionConfig)

Set the AdSelectionConfig.

Parameters
adSelectionConfig AdSelectionConfig: This value cannot be null.

Returns
ReportImpressionInput.Builder This value cannot be null.

setAdSelectionId

public ReportImpressionInput.Builder setAdSelectionId (long adSelectionId)

Set the mAdSelectionId.

Parameters
adSelectionId long

Returns
ReportImpressionInput.Builder This value cannot be null.