BMPAdvertisingConfig

Objective-C


@interface BMPAdvertisingConfig : BMPConfig

Swift

class AdvertisingConfig : Config

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

  • Contains one or more AdItem(s). Each AdItem defines when the specified ad shall be played.

    See

    BMPAdItem

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSArray<BMPAdItem *> *_Nonnull schedule;

    Swift

    var schedule: [AdItem] { get }
  • Provides access to the current IMAAdsManager once it becomes available.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) void (^) (IMAAdsManager *_Nonnull) onAdsManagerAvailable;

    Swift

    var onAdsManagerAvailable: ((IMAAdsManager) -> Void)? { get set }
  • Callback that provides access to the IMASettings before any initialization happens.

    @discussion Changes to enableDebugMode, playerType and autoPlayAdBreaks will be ignored.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) void (^)(IMASettings *_Nonnull) beforeInitialization;

    Swift

    var beforeInitialization: ((IMASettings) -> Void)? { get set }
  • ima

    Configuration to customize Google IMA SDK integration behavior.

    Declaration

    Objective-C

    @property (nonatomic) BMPImaAdvertisingConfig *_Nonnull ima;

    Swift

    var ima: BMPImaAdvertisingConfig { get set }
  • Creates a new AdvertisingConfig with the given ad schedule.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithSchedule:
        (nonnull NSArray<BMPAdItem *> *)schedule;

    Swift

    init(schedule: [AdItem])

    Parameters

    schedule

    The ad schedule which will be used within this AdvertisingConfig.

    Return Value

    The newly created AdvertisingConfig.