GetAdSelectionDataRequest


@ExperimentalFeatures.Ext10OptIn
class GetAdSelectionDataRequest


Represent input parameters to the AdSelectionManager#getAdSelectionData API.

Summary

Public constructors

GetAdSelectionDataRequest(
    seller: AdTechIdentifier,
    coordinatorOriginUri: Uri?
)

Public functions

open operator Boolean
equals(other: Any?)

Checks whether two GetAdSelectionDataRequest objects contain the same information.

open Int

Returns the hash of the GetAdSelectionDataRequest object's data.

open String

Overrides the toString method.

Public properties

Uri?

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

AdTechIdentifier

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

Public constructors

GetAdSelectionDataRequest

Added in 1.1.0-beta11
GetAdSelectionDataRequest(
    seller: AdTechIdentifier,
    coordinatorOriginUri: Uri? = null
)
Parameters
seller: AdTechIdentifier

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

coordinatorOriginUri: Uri? = null

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 functions

equals

open operator fun equals(other: Any?): Boolean

Checks whether two GetAdSelectionDataRequest objects contain the same information.

hashCode

open fun hashCode(): Int

Returns the hash of the GetAdSelectionDataRequest object's data.

toString

open fun toString(): String

Overrides the toString method.

Public properties

coordinatorOriginUri

Added in 1.1.0-beta11
@ExperimentalFeatures.Ext12OptIn
val coordinatorOriginUriUri?

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.

seller

Added in 1.1.0-beta11
val sellerAdTechIdentifier

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