AdParam

Class representing parameters for ad requests. Contains various parameters needed for ad targeting and customization.

Types

Link copied to clipboard

Builder class for creating AdParam instances

Link copied to clipboard
interface Callback

Callback interface for ad call query operations

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Set of ad duplication keys from WF AdCallResponse. Used in duplication control see {@link GfpDedupeManager}

Link copied to clipboard

The ad unit ID for the ad request

Link copied to clipboard

Set of advertiser domains from WF AdCallResponse. Used in duplication control see {@link GfpDedupeManager}

Link copied to clipboard

APS (Amazon Publisher Services) parameters

Link copied to clipboard
Link copied to clipboard

Custom parameters for ad targeting

Link copied to clipboard

Keywords for ad targeting

Link copied to clipboard

Prebid parameters for ad request

Link copied to clipboard
val vcl: Long?

Video content length

Link copied to clipboard
val vri: String?

Video request ID

Link copied to clipboard
val vrr: Int?

Video reminder request flag

Link copied to clipboard
val vsd: Long?

Video start delay

Link copied to clipboard
val vsi: String?

Video schedule ID

Functions

Link copied to clipboard

Creates a new Builder with current parameters

Link copied to clipboard
fun fetchAdCallQuery(context: Context, callback: AdParam.Callback)

Fetches the ad call query asynchronously

Link copied to clipboard

Returns a string of APS parameters if any exist. Format: "key:value,key:value,key:value|value,..." - if one single key has multiple values, use '|' as delimiter

Link copied to clipboard

Returns the content information

Link copied to clipboard

Returns the encoded current page URL

fun getCurrentPageUrl(isEncodingNeeded: Boolean): String

Returns the current page URL with optional encoding

Link copied to clipboard

Returns a string of prebid parameters which is serialized and formatted like "key:value,key:value,...". Default is empty string.

Link copied to clipboard

Returns the encoded referer page URL

fun getRefererPageUrl(isEncodingNeeded: Boolean): String

Returns the referer page URL with optional encoding

Link copied to clipboard
fun setApsParam(apsParam: GfpApsAdParam?)

Sets the APS parameter.