AdItemAttemptOutcome

com.bitmovin.player.api.advertising

AdItemAttemptOutcome

@ExperimentalBitmovinApi

sealed interface AdItemAttemptOutcome

How an attempt to play an AdItem ended.

More outcomes may be added in the future. Return AdItemDiscardContext.discardPolicyDecision for outcomes that are not handled explicitly.

Inheritors

Finished
Error
RejectedByShouldLoadAdItem

Types

NameSummary
Errordata class Error : AdItemAttemptOutcome
The AdItem failed, for example because none of its AdSources or its creative could be loaded.
Finisheddata object Finished : AdItemAttemptOutcome
The AdItem was played and has ended, whether it was skipped or not.
RejectedByShouldLoadAdItemdata object RejectedByShouldLoadAdItem : AdItemAttemptOutcome
AdvertisingConfig.shouldLoadAdItem returned false for the AdItem.