AdRequestConnection

class AdRequestConnection(val adRequest: AdRequest)

The AdRequestConnection represents a single connection to the ad server.

The ad request settings are encapsulated in a reusable object. The AdRequestConnection object encapsulates the states of a single communication, e.g. starting/canceling a connection.

adRequest A request that holds all the necessary data to build the ad request.

Constructors

Link copied to clipboard
constructor(adRequest: AdRequest)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val maxAds: Int
Link copied to clipboard

The timeout in seconds for an ads request The request timeout is max(timeout, 3).

Functions

Link copied to clipboard
fun cancelAll()

Cancel all ongoing requests.

Link copied to clipboard

Request ads from the ad server.