AdItemDiscardPolicy

sealed interface AdItemDiscardPolicy : Parcelable

Determines the default AdItemDiscardDecision for an AdItem once an attempt to play it ended, for any AdItemAttemptOutcome. AdvertisingConfig.shouldDiscardAdItem receives it as AdItemDiscardContext.discardPolicyDecision and can override it.

See also

Inheritors

Types

Link copied to clipboard

Discards the AdItem after an attempt to play it, for any AdItemAttemptOutcome, so it is played at most once.

Link copied to clipboard

Keeps the AdItem after an attempt to play it, for any AdItemAttemptOutcome, so it stays eligible for later opportunities in the current playback session.