Body

data class Body(val assets: List<AdResponse.Body.Asset>, val eventTrackers: List<AdResponse.Body.EventTracker>, val ext: AdResponse.Body.Ext? = null) : Parcelable

A portion of the data received from the ad server and decoded by the SDK that is associated with advertising content and tracking events.

Constructors

Link copied to clipboard
constructor(assets: List<AdResponse.Body.Asset>, eventTrackers: List<AdResponse.Body.EventTracker>, ext: AdResponse.Body.Ext? = null)

Creates an Body instance. You can use this constructor for testing. Normally you do not need to use it.

Types

Link copied to clipboard

A portion of the data received from the ad server and decoded by the SDK that is associated with advertising assets.

Link copied to clipboard
data class EventTracker(val event: Int, val url: String) : Parcelable

A portion of the data received from the ad server and decoded by the SDK that is associated with advertising tracking events.

Link copied to clipboard
data class Ext(val adData: MutableMap<String, String>?, val renderConfig: JSONObject? = null) : Parcelable

A portion of the data received from the ad server and decoded by the SDK that is associated with additional information related to the advertisement.

Properties

Link copied to clipboard

A list of Assets, which contain data on advertising assets.

Link copied to clipboard

A list of EventTrackers, which contain data on advertising tracking events.

Link copied to clipboard

Additional information related to the advertisement.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)