Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import UIKit
- import GoogleMobileAds
- class ViewController: UIViewController {
- @IBOutlet weak var bannerView: GADBannerView!
- @IBAction func showBanner(_ sender: Any) {
- let request = GADRequest()
- bannerView.adUnitID = "ca-app-pub-5095539141044986/5269739217"
- bannerView.rootViewController = self
- bannerView.load(request)
- }
- @IBAction func showInterstial(_ sender: UIButton) {
- }
Add Comment
Please, Sign In to add comment