     private override init() {
         super.init()
         print("AdMob SDK version \(GADRequest.sdkVersion())")
-        NotificationCenter.default.addObserver(self, selector: #selector(deviceRotated), name: UIDevice.orientationDidChangeNotification, object: nil)
+       
+        // Update configuration
+        configuration = .propertyList
+        #if DEBUG
+        configuration = .debug
+        #endif
+        
+        // Add notification center observers
+        NotificationCenter.default.addObserver(self,
+                                               selector: #selector(deviceRotated),
+                                               name: UIDevice.orientationDidChangeNotification,
+                                               object: nil)
+    }
+    
+    // MARK: - Callbacks
+    
+    @objc private func deviceRotated() {
+        bannerAdView?.adSize = UIDevice.current.orientation.isLandscape ? kGADAdSizeSmartBannerLandscape : kGADAdSizeSmartBannerPortrait
     }
     
     // MARK: - Setup

               bannerAnimationDuration: TimeInterval? = nil,
               handler: @escaping (_ hasConsent: Bool) -> Void) {
        self.delegate = delegate
        if let bannerAnimationDuration = bannerAnimationDuration {
            self.bannerAnimationDuration = bannerAnimationDuration
        }
        
        // Configure
        configuration = Configuration.propertyList
        #if DEBUG
        configuration = Configuration.debug
        #endif
        
        // Update mediation manager
        self.mediationManager = mediationManager
        
        // Create consent manager
        self.consentManager = consentManager ?? SwiftyAdConsentManager(ids: configuration.ids,
                                                                       configuration: configuration.gdpr)
        
        // Make consent request
        self.consentManager.ask(from: viewController, skipIfAlreadyAuthorized: true) { status in

    }
}

// MARK: - Load Ads

private extension SwiftyAd {
