BannerAdUnit

public class BannerAdUnit : AdUnit, BannerBasedAdUnitProtocol, VideoBasedAdUnitProtocol

A class representing a banner ad unit for original type of integration.

  • A deprecated property for banner ad parameters.

    Declaration

    Swift

    @available(*, deprecated, message: "This property is deprecated. Please, use bannerParameters instead.")
    public var parameters: BannerParameters { get set }
  • The banner ad parameters used to configure the ad unit.

    Declaration

    Swift

    public var bannerParameters: BannerParameters { get set }
  • The video ad parameters used to configure the ad unit.

    Declaration

    Swift

    public var videoParameters: VideoParameters { get set }
  • The set of ad formats for the ad unit.

    Declaration

    Swift

    public var adFormats: Set<AdFormat> { get set }
  • Initializes a new BannerAdUnit with the specified configuration ID and size.

    Declaration

    Swift

    public init(configId: String, size: CGSize)

    Parameters

    configId

    The unique identifier for the ad unit configuration.

    size

    The size of the banner ad unit.

  • Adds additional sizes to the banner ad unit’s configuration.

    Declaration

    Swift

    public func addAdditionalSize(sizes: [CGSize])

    Parameters

    sizes

    An array of CGSize objects representing additional sizes.