title: How to implement interstitial Ads using AdMob in iOS with Swift?
body: <p>I'm implementing the interstitial Ads using the AdMob stuff but it is not displaying.</p>
  
  <p>This is my class where I want to implement interstitial ads.</p>
  
  <pre><code>import UIKit
  import GoogleMobileAds
  
  class SearchNew: UIViewController{
  
      var interstitial: GADInterstitial!
  
      override func viewDidLoad() {
          super.viewDidLoad()
  
          self.interstitial = GADInterstitial(adUnitID: "ca-app-pub-3940256099942544/4411468910")
  
          let request = GADRequest()
          request.testDevices = ["2077ef9a63d2b398840261c8221a0c9b"]
          self.interstitial.loadRequest(request)
  
          self.showAd()
      }
  
      func showAd() {
          if self.interstitial.isReady {
              self.interstitial.presentFromRootViewController(self)
          }
      }
  </code></pre>