AdParam

Parameters for an ad request, including targeting, deduplication, and video ad settings. Use Builder to create an instance.

Types

Link copied to clipboard

Builder for creating AdParam instances.

Link copied to clipboard
interface Callback

Callback for fetchAdCallQuery results.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Ad deduplication keys collected from WF AdCallResponse. Used by GfpDedupeManager to filter duplicate ads.

Link copied to clipboard
Link copied to clipboard

Advertiser domains collected from WF AdCallResponse. Used by GfpDedupeManager to prevent duplicate exposure from the same advertiser.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val vcl: Long?

Video content length in milliseconds (the main content length, not the ad length).

Link copied to clipboard
val vri: String?

Video request identifier for tracking individual video ad requests.

Link copied to clipboard
val vrr: Int?

Flag indicating whether a reminder ad is requested for this video.

Link copied to clipboard
val vsd: Long?

Video start delay in milliseconds before the ad begins playback.

Link copied to clipboard
val vsi: String?

Video schedule identifier used to group related video ad requests.

Functions

Link copied to clipboard

Creates a new Builder pre-populated with this instance's parameters.

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

Fetches the ad call query asynchronously in a background thread. The result includes all parameters such as Advertising ID, App Set ID, and mediation provider signals.

Link copied to clipboard

Returns the ad call query without asynchronously collected parameters. This method returns immediately without waiting for:

Link copied to clipboard

Returns APS parameters as a string in "key:value,key:value,..." format. Multiple values for a single key are delimited by '|' (e.g., "key:value1|value2").

Link copied to clipboard

Returns the content information associated with this ad request.

Link copied to clipboard

Returns the current page URL encoded via Uri.encode.

fun getCurrentPageUrl(isEncodingNeeded: Boolean): String

Returns the current page URL, optionally encoded via Uri.encode.

Link copied to clipboard

Returns prebid parameters as a URI-encoded string in "key:value,key:value,..." format. Both keys and values are encoded via Uri.encode.

Link copied to clipboard

Returns the referer page URL encoded via Uri.encode.

fun getRefererPageUrl(isEncodingNeeded: Boolean): String

Returns the referer page URL, optionally encoded via Uri.encode.

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