AdResponse

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

Base Ad response from API

Constructors

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

Create empty Ad response

Properties

Link copied to clipboard
@SerialName(value = "ad_name")
val adName: String
Link copied to clipboard
@SerialName(value = "ad_type")
val adType: String

Type of Ad

Link copied to clipboard
@SerialName(value = "banner_id")
val bannerId: String

The banner_id the ad has been served for

Link copied to clipboard
val body: Body? = null

Body of the Ad

Link copied to clipboard
@SerialName(value = "campaign_id")
val campaignId: String

The networkID the ad has been served for

Link copied to clipboard
@SerialName(value = "click_url")
val clickUrl: String
Link copied to clipboard
@SerialName(value = "contentunit_id")
val contentUnitId: String

The content unit the ad has been served for

Link copied to clipboard

Files that Ad contains

Link copied to clipboard
val height: Int

Height of the Ad

Link copied to clipboard
@SerialName(value = "log_id")
val logId: String

Log ID of the Ad

Link copied to clipboard
@SerialName(value = "network_id")
val networkId: Int

The networkID the ad has been served for

Link copied to clipboard

Options of the Ad

Link copied to clipboard
@SerialName(value = "placement_type")
val placementType: String

Type of Ad. Inline or interstitial

Link copied to clipboard
@SerialName(value = "webviewConfig")
val webViewConfig: WebviewConfig

WebView config

Link copied to clipboard
val width: Int

Width of the Ad

Functions

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