AdRequestGlobalParameters

An object for storing global parameters that will be applied when creating an AdRequest.

Some parameters of AdRequest are designed to be passed in all requests, not just individual ones. To avoid duplicating code when creating AdRequest, SDK provide AdService.setAdRequestGlobalParameter method, which will modify these parameters:

// Set parameter
AdService.setAdRequestGlobalParameter(
AdRequestGlobalParameters::externalUID,
ExternalUID(uid = "example", isStable = true)
)

// Clear parameter:
AdService.removeAdRequestGlobalParameter(AdRequestGlobalParameters::externalUID)

This object serves to store these parameters within the SDK. This class inherit from BaseGlobalParameters.

See also

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard

Enum containing all possible configurations of the server's work with cookies.

Link copied to clipboard
data class DSA(val required: DSARequirement, val pubRender: DSAPubRender, val dataToPubs: DSADataToPubs) : Parcelable

Digital Service Act (“DSA”) is a EU regulation which aims among other things to increase transparency on online platforms for users in relation to recommended content – including advertising.

Properties

Link copied to clipboard

A parameter that indicates how the ad server will work with cookies.

Link copied to clipboard

Digital Service Act (“DSA”) is a EU regulation which aims among other things to increase transparency on online platforms for users in relation to recommended content – including advertising.

Link copied to clipboard

If your app has means to identify a user, for example through association with an user account or an advertising ID, you can share this with the ad server.

Link copied to clipboard
var gdpr: GDPR?

App can ask users about their consent for sharing information with third parties.

Link copied to clipboard

Determines whether the IP address is anonymised.

Link copied to clipboard

An app can ask users if they want to opt out from process data. Use isOptOutEnabled to make the users choice visible for the ad server.

Link copied to clipboard

Defines, if the request should also consider the server side header bidding.

Link copied to clipboard

List of identifiers for additional extended IDs on the Identity Service. The data type of userIds is a list of UserIdType.