GetAdSelectionDataRequest


@ExperimentalFeatures.Ext10OptIn
public final class GetAdSelectionDataRequest


Represent input parameters to the AdSelectionManager#getAdSelectionData API.

Summary

Public constructors

GetAdSelectionDataRequest(
    @NonNull AdTechIdentifier seller,
    Uri coordinatorOriginUri
)

Public methods

boolean
equals(Object other)

Checks whether two GetAdSelectionDataRequest objects contain the same information.

final Uri

The coordinator origin Uri from which GetAdSelectionData API should fetch the decryption key.

final @NonNull AdTechIdentifier

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

int

Returns the hash of the GetAdSelectionDataRequest object's data.

@NonNull String

Overrides the toString method.

Public constructors

GetAdSelectionDataRequest

Added in 1.1.0-beta08
public GetAdSelectionDataRequest(
    @NonNull AdTechIdentifier seller,
    Uri coordinatorOriginUri
)
Parameters
@NonNull AdTechIdentifier seller

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

Uri coordinatorOriginUri

The coordinator origin Uri from which GetAdSelectionData API should fetch the decryption key. The origin must use HTTPS URI. The origin will only contain the scheme, hostname and port of the URL. If the origin is not provided or is null, PPAPI will use the default coordinator URI. The origin must belong to a list of pre-approved coordinator origins. Otherwise, AdSelectionManager#getAdSelectionData will throw an IllegalArgumentException. See Developer Guide for more details.

Public methods

equals

public boolean equals(Object other)

Checks whether two GetAdSelectionDataRequest objects contain the same information.

getCoordinatorOriginUri

Added in 1.1.0-beta08
public final Uri getCoordinatorOriginUri()

The coordinator origin Uri from which GetAdSelectionData API should fetch the decryption key. The origin must use HTTPS URI. The origin will only contain the scheme, hostname and port of the URL. If the origin is not provided or is null, PPAPI will use the default coordinator URI. The origin must belong to a list of pre-approved coordinator origins. Otherwise, AdSelectionManager#getAdSelectionData will throw an IllegalArgumentException. See Developer Guide for more details.

getSeller

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

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

hashCode

public int hashCode()

Returns the hash of the GetAdSelectionDataRequest object's data.

toString

public @NonNull String toString()

Overrides the toString method.