Guest User

Untitled

a guest
Feb 23rd, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. import UIKit
  2. import GoogleMobileAds
  3.  
  4. class ViewController: UIViewController {
  5.  
  6. @IBOutlet weak var bannerView: GADBannerView!
  7.  
  8. @IBAction func showBanner(_ sender: Any) {
  9. let request = GADRequest()
  10. bannerView.adUnitID = "ca-app-pub-5095539141044986/5269739217"
  11. bannerView.rootViewController = self
  12. bannerView.load(request)
  13.  
  14. }
  15.  
  16. @IBAction func showInterstial(_ sender: UIButton) {
  17. }
Add Comment
Please, Sign In to add comment