AdRetryPolicy

data class AdRetryPolicy(val maxAttempts: Int = 2, val initialDelay: Duration = 2.seconds, val maxDelay: Duration = 30.seconds, val backoffMultiplier: Double = 2.0)(source)

Capped exponential-backoff retry policy for ad load failures. Only retryable failures (network, timeout, internal) are retried; non-retryable failures (no fill, consent) are not.

Constructors

Link copied to clipboard
constructor(maxAttempts: Int = 2, initialDelay: Duration = 2.seconds, maxDelay: Duration = 30.seconds, backoffMultiplier: Double = 2.0)

Properties

Link copied to clipboard

Backoff multiplier applied after each attempt. Default 2.0.

Link copied to clipboard

Initial delay before the first retry. Default 2s.

Link copied to clipboard

Total load attempts, including the initial attempt. Default 2 (one retry).

Link copied to clipboard

Maximum delay between retries. Default 30s.