Display popup ad on Apple

Display an popup ad

let popupAd = AdropPopupAd(unitId: "PUBLIC_TEST_UNIT_ID_POPUP_BOTTOM")
popupAd.delegate = self
popupAd.backgroundColor = your_color          // optional UIColor
popupAd.hideForTodayTextColor = your_color    // optional UIColor
popupAd.closeTextColor = your_color           // optional UIColor
popupAd.delegate = self
popupAd.load()

...

// call show function when the ad needs to be displayed.
popupAd.show(fromRootViewController: viewController)

Last updated