VideoAdUnit

@available(*, deprecated, message: "This class is deprecated. Please, use BannerAdUnit with video adFormat.")
public class VideoAdUnit : AdUnit

A deprecated class for handling video ad units.

  • The parameters for video ads associated with this ad unit.

    Declaration

    Swift

    public var parameters: VideoParameters { get set }
  • Initializes a new instance of VideoAdUnit with the specified configuration ID and size.

    Declaration

    Swift

    public init(configId: String, size: CGSize)

    Parameters

    configId

    The configuration ID for the ad unit.

    size

    The size of the ad unit.

  • Adds additional sizes to the ad unit.

    Declaration

    Swift

    public func addAdditionalSize(sizes: [CGSize])

    Parameters

    sizes

    An array of CGSize objects representing the additional sizes for the ad unit.