         bannerAd?.remove()
         bannerAd = nil
     }
+
+    func makeBanner() {
+        bannerAd = swiftyAds.makeBannerAd(
+            in: self,
+            adUnitIdType: .plist,
+            position: .bottom(isUsingSafeArea: true),
+            animation: .slide(duration: 1.5),
+            onOpen: {
+                print("SwiftyAds banner ad did open")
+            },
+            onClose: {
+                print("SwiftyAds banner ad did close")
+            },
+            onError: { error in
+                print("SwiftyAds banner ad error \(error)")
+            },
+            onWillPresentScreen: {
+                print("SwiftyAds banner ad was tapped and is about to present screen")
+            },
+            onWillDismissScreen: {
+                print("SwiftyAds banner ad screen is about to be dismissed")
+            },
+            onDidDismissScreen: {
+                print("SwiftyAds banner did dismiss screen")
+            }
+        )
+    }
 }

    // MARK: - Public Methods

    func adsConfigureCompletion() {
        bannerAd?.show(isLandscape: view.frame.width > view.frame.height)
    }


    override func viewDidLoad() {
        super.viewDidLoad()

        makeBanner()

        if let scene = GameScene(fileNamed: "GameScene") {
            // Configure the view.
