AdSelectionFromOutcomesConfig


@ExperimentalFeatures.Ext10OptIn
public final class AdSelectionFromOutcomesConfig


Contains the configuration of the ad selection process that select a winner from a given list of ad selection ids.

Instances of this class are created by SDKs to be provided as arguments to the AdSelectionManager#selectAds methods in AdSelectionManager.

Summary

Public constructors

AdSelectionFromOutcomesConfig(
    @NonNull AdTechIdentifier seller,
    @NonNull List<@NonNull Long> adSelectionIds,
    @NonNull AdSelectionSignals adSelectionSignals,
    @NonNull Uri selectionLogicUri
)

Public methods

boolean
equals(Object other)

Checks whether two AdSelectionFromOutcomesConfig objects contain the same information.

final @NonNull List<@NonNull Long>

a list of ad selection ids passed by the SSP to participate in the ad selection from outcomes process.

final @NonNull AdSelectionSignals

signals given to the participating buyers in the ad selection and reporting processes.

final @NonNull Uri

the URI used to retrieve the JS code containing the seller/SSP function used during the ad selection.

final @NonNull AdTechIdentifier

AdTechIdentifier of the seller, for example "www.example-ssp.com".

int

Returns the hash of the AdSelectionFromOutcomesConfig object's data.

final void
setSelectionLogicUri(@NonNull Uri selectionLogicUri)
@NonNull String

Overrides the toString method.

Public constructors

AdSelectionFromOutcomesConfig

Added in 1.1.0-beta06
public AdSelectionFromOutcomesConfig(
    @NonNull AdTechIdentifier seller,
    @NonNull List<@NonNull Long> adSelectionIds,
    @NonNull AdSelectionSignals adSelectionSignals,
    @NonNull Uri selectionLogicUri
)
Parameters
@NonNull AdTechIdentifier seller

AdTechIdentifier of the seller, for example "www.example-ssp.com".

@NonNull List<@NonNull Long> adSelectionIds

a list of ad selection ids passed by the SSP to participate in the ad selection from outcomes process.

@NonNull AdSelectionSignals adSelectionSignals

signals given to the participating buyers in the ad selection and reporting processes.

@NonNull Uri selectionLogicUri

the URI used to retrieve the JS code containing the seller/SSP function used during the ad selection.

Public methods

equals

public boolean equals(Object other)

Checks whether two AdSelectionFromOutcomesConfig objects contain the same information.

getAdSelectionIds

Added in 1.1.0-beta06
public final @NonNull List<@NonNull LonggetAdSelectionIds()

a list of ad selection ids passed by the SSP to participate in the ad selection from outcomes process.

getAdSelectionSignals

Added in 1.1.0-beta06
public final @NonNull AdSelectionSignals getAdSelectionSignals()

signals given to the participating buyers in the ad selection and reporting processes.

getSelectionLogicUri

Added in 1.1.0-beta06
public final @NonNull Uri getSelectionLogicUri()

the URI used to retrieve the JS code containing the seller/SSP function used during the ad selection.

getSeller

Added in 1.1.0-beta06
public final @NonNull AdTechIdentifier getSeller()

AdTechIdentifier of the seller, for example "www.example-ssp.com".

hashCode

public int hashCode()

Returns the hash of the AdSelectionFromOutcomesConfig object's data.

setSelectionLogicUri

Added in 1.1.0-beta06
public final void setSelectionLogicUri(@NonNull Uri selectionLogicUri)
Parameters
@NonNull Uri selectionLogicUri

the URI used to retrieve the JS code containing the seller/SSP function used during the ad selection.

toString

public @NonNull String toString()

Overrides the toString method.