title: Displaying interstitial AdMob ad in SpriteKit
body: <p>I am trying to display ads in my application. The code below is the one I am using now in my <code>GameViewController.swift</code>:</p>
  
  <pre><code>import UIKit
  import SpriteKit
  import GoogleMobileAds // Network Ads
  import AdSupport
  
  class GameViewController: UIViewController, GADBannerViewDelegate, GADInterstitialDelegate {
  
      var adBannerView: GADBannerView!
      var myAd = GADInterstitial()
      let request = GADRequest()
  
      override func viewDidLoad() {
          super.viewDidLoad()
  
          let scene = GameScene()
          let skView = self.view as! SKView
          scene.scaleMode = .aspectFill
          scene.size = skView.frame.size
          skView.presentScene(scene)
  
          NotificationCenter.default.addObserver(self, selector: #selector(GameViewController.loadAndShow), name: NSNotification.Name(rawValue: "loadAndShow"), object: nil)
      }
  
      func loadAndShow() {
          myAd.setAdUnitID("ca-app-pub-3940256099942544/4411468910")
          myAd.delegate = self
          myAd.load(request)
      }
  
      func interstitialDidReceiveAd(_ ad: GADInterstitial) {
          if (self.myAd.isReady) {
              myAd.present(fromRootViewController: self)
          }
      }
  }
  </code></pre>
  
  <p>And that code displays this test ad:
  <a href="https://i.stack.imgur.com/5ODnP.png" rel="nofollow noreferrer">Image here</a></p>
  
  <p>I went into AdMob website and created a "<strong>NEW AD UNIT</strong>" with Ad format: <strong>Interstitial</strong>. Then I got a <strong>Ad unit ID</strong>, but when I put my <strong>Ad unit ID</strong> in the <code>myAd.setAdUnitID("...")</code> in my code, it does not shows any ad's in my app at all.</p>
  
  <p><a href="https://i.stack.imgur.com/eLbto.png" rel="nofollow noreferrer">Click here for image of my AD UNIT</a></p>
  
  <p>Any ideas what I've done wrong here?</p>