ImaAdvertisingConfig

@objcMembers
@objc(BMPImaAdvertisingConfig)
public class ImaAdvertisingConfig : NSObject, @unchecked Sendable

Contains configuration options to customize behavior for Google IMA SDK.

  • Defines ad attribution UI element (e.g. “Ad”) display mode. This property may be ignored for AdSense/AdX ads. For valid values, see ImaAdAttributionUiMode. Default value is ImaAdAttributionUiMode.imaDefault

    Important

    This field is ignored on tvOS, where UI elements are unavailable.

    Declaration

    Swift

    @available(tvOS, unavailable)
    public var adAttributionUiMode: ImaAdAttributionUiMode { get set }
  • The preferred UI type for IMA ads. Depending on the ad, this preference might be ignored (see ImaUiType.disabled for more information). Default value is ImaUiType.ima.

    Declaration

    Swift

    @available(tvOS, unavailable)
    public var preferredUiType: ImaUiType { get set }
  • Whether the ad should pause when the user taps the screen. If false, user taps are ignored and the ad keeps playing.

    Default value is true.

    Declaration

    Swift

    @available(tvOS, unavailable)
    public var shouldPauseOnTap: Bool { get set }