MPSBannerAdView
public final class MPSBannerAdView: UIView
Ad Banner view for MPS.
-
MPSADViewDelegate delegate.
Declaration
Swift
public weak var delegate: MPSBannerAdViewDelegate? -
Gets banner ad for the specified ad slot and MPS page object.
Declaration
Swift
public func displayBannerAd(adSlot: String, page: MPSPage, rootViewController: UIViewController)Parameters
adSlotString - ad slot name for the requested ad.
pageMPS page object.
rootViewControllerUIViewController - root view controller, required for ad view object.
-
Gets banner ad for the specified ad slot and MPS page object.
Declaration
Swift
public func displayBannerAd(adSlot: String, page: MPSPage, additionalTargeting: [AnyHashable: Any], rootViewController: UIViewController)Parameters
adSlotString - ad slot name for the requested ad.
pageMPS page object.
additionalTargetingAdditional key/value pairs to add to the targeting fields in Ad request to Google
rootViewControllerUIViewController - root view controller, required for ad view object.
-
Refreshes the banner ad.
Declaration
Swift
public func refresh()
MPSBannerAdView Class Reference