AdResponse

data class AdResponse(val adType: String, val bannerId: String, val adName: String = "", val body: AdResponse.Body? = null, val campaignId: String, val clickUrl: String, val contentUnitId: String, val files: List<AdResponse.FileItem>, val height: Int, val logId: String, val networkId: Int, val options: AdResponse.Options, val placementType: String, val width: Int) : Parcelable

The data received from the ad server and decoded by the SDK.

The successful result of executing an AdRequest is the receipt and decoding of an AdResponse. This class contains basic information about the ad received from the ad server and decoded by the SDK.

See also

Constructors

Link copied to clipboard
constructor(adType: String, bannerId: String, adName: String = "", body: AdResponse.Body? = null, campaignId: String, clickUrl: String, contentUnitId: String, files: List<AdResponse.FileItem>, height: Int, logId: String, networkId: Int, options: AdResponse.Options, placementType: String, width: Int)

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

Types

Link copied to clipboard
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.

Link copied to clipboard
data class FileItem(val url: String, val name: String, val options: AdResponse.FileItem.FileOptions? = null) : Parcelable

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

Link copied to clipboard
data class Options(val body: String? = null, val closeAfter: UInt? = null, val closeButtonAfter: UInt? = null, val countdownColor: String? = null) : Parcelable

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

Properties

Link copied to clipboard

The name of the advertisement.

Link copied to clipboard

The type of advertisement.

Link copied to clipboard

The banner identifier the advertisement has been served for.

Link copied to clipboard
val body: AdResponse.Body? = null

Body instance, that contain advertisement content information.

Link copied to clipboard

The campaign identifier the advertisement has been served for.

Link copied to clipboard

The URL is associated with clicking on an ad. If the Advertisement.performTapEvent method called without the url parameter, this URL will be processed.

Link copied to clipboard

Unique identifier of a content space in the ADITION ad-serving platform.

Link copied to clipboard

Additional FileItems related to the advertisement.

Link copied to clipboard
val height: Int

Height of the advertisement.

Link copied to clipboard

The log identifier of the advertisement.

Link copied to clipboard

The unique identifier of the advertisement network.

Link copied to clipboard

Additional Options related to the advertisement.

Link copied to clipboard

The type of ad placement received from the server.

Link copied to clipboard
val width: Int

Width of the advertisement.

Functions

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