Bitmovin Player React Native SDK - v1.18.0
    Preparing search index...

    Interface AdvertisingConfig

    Contains configuration values regarding the ads which should be played back by the player.

    interface AdvertisingConfig {
        ima?: ImaAdvertisingConfig;
        schedule: AdItem[];
        shouldLoadAdItem?: (adItem: AdItem) => boolean;
    }
    Index

    Properties

    Configuration to customize Google IMA SDK integration.

    schedule: AdItem[]

    The ad items that are scheduled when a new playback session is started via Player.load().

    shouldLoadAdItem?: (adItem: AdItem) => boolean

    Called right before an ad item begins loading.

    Use this callback to conditionally allow or skip individual ad items based on runtime logic (e.g., user state, targeting rules, frequency caps).

    Type Declaration

      • (adItem: AdItem): boolean
      • Parameters

        • adItem: AdItem

          The ad item that is about to be loaded.

        Returns boolean

        • true → the ad item will proceed to load as scheduled.
        • false → the ad item will be skipped and removed from the playback schedule.