Advertisement

interface Advertisement

A key object interface describing the advertisement.

An instance of this interface can be created using AdService.makeAdvertisement method. Responsible for loading and reloading ad, creating, storing and updating the AdRenderer.

Properties

Link copied to clipboard
abstract val adMetadata: AdMetadata?

AdMetadata which contains the basic data about the ad and current renderer.

Link copied to clipboard
abstract val adRenderer: AdRenderer?

The AdRenderer which is used to render the advertisement.

Link copied to clipboard
abstract val adRequest: AdRequest

The AdRequest which was used to load this ad and is used to manage it.

Link copied to clipboard
abstract val adResponse: AdResponse?

AdResponse that was received from the ad server using adRequest.

Link copied to clipboard
abstract val isLoaded: StateFlow<Boolean>

State flow for the presentation control.

Functions

Link copied to clipboard
abstract fun checkAndNotifyEvents(eventType: TrackingEventType)

A method for performing tracking events.

Link copied to clipboard
abstract fun performDSATap()

A method for processing tap on DSA button.

Link copied to clipboard
abstract fun performTapEvent(tapEvent: AdTapEvent)

This method is responsible for firing the tap event manually.

Link copied to clipboard
abstract suspend fun reload(): AdResult<Advertisement>

Reloads advertisement.