BannerAdUnit

public class BannerAdUnit : AdUnit, BannerBasedAdUnitProtocol, VideoBasedAdUnitProtocol

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

  • 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.

Prebid Impression Tracking

  • Sets the view in which Prebid will start tracking an impression.

    Declaration

    Swift

    public func activatePrebidImpressionTracker(adView: UIView)

    Parameters

    adView

    The ad view that contains ad creative(f.e. GAMBannerView). This object will be used later for tracking burl.

SKAdNetwork

  • Activates Prebid’s SKAdNetwork StoreKit ads flow for the provided ad view.

    Ensure this method is called within the Google Mobile Ads ad received method (e.g., in the GADBannerViewDelegate’s bannerViewDidReceiveAd or similar callbacks).

    This feature is not available for video ads.

    Declaration

    Swift

    public func activatePrebidSKAdNetworkStoreKitAdsFlow(adView: UIView)

    Parameters

    adView

    The ad view that contains ad creative(f.e. GAMBannerView).