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

    adSlot

    String - ad slot name for the requested ad.

    page

    MPS page object.

    rootViewController

    UIViewController - 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

    adSlot

    String - ad slot name for the requested ad.

    page

    MPS page object.

    additionalTargeting

    Additional key/value pairs to add to the targeting fields in Ad request to Google

    rootViewController

    UIViewController - root view controller, required for ad view object.

  • Refreshes the banner ad.

    Declaration

    Swift

    public func refresh()