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
BannerAdUnitwith the specified configuration ID and size.Declaration
Swift
public init(configId: String, size: CGSize)Parameters
configIdThe unique identifier for the ad unit configuration.
sizeThe size of the banner ad unit.
 - 
                  
                  
Adds additional sizes to the banner ad unit’s configuration.
Declaration
Swift
public func addAdditionalSize(sizes: [CGSize])Parameters
sizesAn array of
CGSizeobjects representing additional sizes. 
- 
                  
                  
Sets the view in which Prebid will start tracking an impression.
Declaration
Swift
public func activatePrebidImpressionTracker(adView: UIView)Parameters
adViewThe ad view that contains ad creative(f.e. GAMBannerView). This object will be used later for tracking
burl. 
- 
                  
                  
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
bannerViewDidReceiveAdor similar callbacks).This feature is not available for video ads.
Declaration
Swift
public func activatePrebidSKAdNetworkStoreKitAdsFlow(adView: UIView)Parameters
adViewThe ad view that contains ad creative(f.e. GAMBannerView).