Interstitial
Integration
import UIKit
import WortiseSDK
class ViewController: UIViewController {
private var interstitialAd: WAInterstitialAd!
override func viewDidLoad() {
super.viewDidLoad()
...
interstitialAd = WAInterstitialAd(adUnitId: "test-interstitial")
interstitialAd.loadAd()
}
override func willMove(toParent controller: UIViewController?) {
super.willMove(toParent: controller)
...
interstitialAd.destroy()
}
func showInterstitial() {
if interstitialAd.isAvailable {
interstitialAd.showAd(from: self)
}
}
}Delegate configuration
Última actualización