OGAdError

class OGAdError(val code: Int, val phase: OGAdError.Phase, val message: String)

Structured ad failure. Content playback always continues after an ad error — this is reporting, never fatal.

code is the IAB VAST error code reported by the ads provider (e.g. 301 VAST load timeout, 303 empty ad response, 400 media file error, 900 undefined). VAST codes are an industry standard, so they can be quoted directly to ad-ops teams and ad servers. 0 when the provider did not supply one.

Constructors

Link copied to clipboard
constructor(code: Int, phase: OGAdError.Phase, message: String)

Types

Link copied to clipboard

Properties

Link copied to clipboard
val code: Int

IAB VAST error code, or 0 when unavailable.

Link copied to clipboard

Human-readable detail for logs.

Link copied to clipboard

Whether the failure happened while loading or while playing the ad.

Functions

Link copied to clipboard
open override fun toString(): String