Stay organized with collections Save and categorize content based on your preferences.

AdSelectionFromOutcomesConfig.Builder

public static final class AdSelectionFromOutcomesConfig.Builder
extends Object

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


Builder for AdSelectionFromOutcomesConfig objects.

Summary

Public constructors

Builder()

Public methods

AdSelectionFromOutcomesConfig build()

Builds a AdSelectionFromOutcomesConfig instance.

AdSelectionFromOutcomesConfig.Builder setAdSelectionIds(List<Long> adSelectionIds)

Sets the list of AdSelectionIds to participate in the selection process.

AdSelectionFromOutcomesConfig.Builder setSelectionLogicUri(Uri selectionLogicUri)

Sets the SelectionLogicUri to download the JS script that consumes the list of AdSelectionIds and SelectionSignals.

AdSelectionFromOutcomesConfig.Builder setSelectionSignals(AdSelectionSignals selectionSignals)

Sets the SelectionSignals to be consumed by the JS script downloaded from SelectionLogicUri

AdSelectionFromOutcomesConfig.Builder setSeller(AdTechIdentifier seller)

Sets the seller AdTechIdentifier.

Inherited methods

Public constructors

Builder

public Builder ()

Public methods

setAdSelectionIds

public AdSelectionFromOutcomesConfig.Builder setAdSelectionIds (List<Long> adSelectionIds)

Sets the list of AdSelectionIds to participate in the selection process.

Parameters
adSelectionIds List: This value cannot be null.

Returns
AdSelectionFromOutcomesConfig.Builder This value cannot be null.

setSelectionLogicUri

public AdSelectionFromOutcomesConfig.Builder setSelectionLogicUri (Uri selectionLogicUri)

Sets the SelectionLogicUri to download the JS script that consumes the list of AdSelectionIds and SelectionSignals.

Parameters
selectionLogicUri Uri: This value cannot be null.

Returns
AdSelectionFromOutcomesConfig.Builder This value cannot be null.

setSelectionSignals

public AdSelectionFromOutcomesConfig.Builder setSelectionSignals (AdSelectionSignals selectionSignals)

Sets the SelectionSignals to be consumed by the JS script downloaded from SelectionLogicUri

Parameters
selectionSignals AdSelectionSignals: This value cannot be null.

Returns
AdSelectionFromOutcomesConfig.Builder This value cannot be null.

setSeller

public AdSelectionFromOutcomesConfig.Builder setSeller (AdTechIdentifier seller)

Sets the seller AdTechIdentifier.

Parameters
seller AdTechIdentifier: This value cannot be null.

Returns
AdSelectionFromOutcomesConfig.Builder This value cannot be null.