     }
 }
 
-// MARK: - Callbacks
-
-private extension SwiftyAd {
-
-    @objc func deviceRotated() {
-        bannerAdView?.adSize = UIDevice.current.orientation.isLandscape ? kGADAdSizeSmartBannerLandscape : kGADAdSizeSmartBannerPortrait
-    }
-}
-
 // MARK: - Load Ads
 
 private extension SwiftyAd {

    private override init() {
        super.init()
        print("AdMob SDK version \(GADRequest.sdkVersion())")
        NotificationCenter.default.addObserver(self, selector: #selector(deviceRotated), name: UIDevice.orientationDidChangeNotification, object: nil)
    }
    
    // MARK: - Setup

               bannerAnimationDuration: TimeInterval? = nil,
               handler: @escaping (_ hasConsent: Bool) -> Void) {
        self.delegate = delegate
        self.mediationManager = mediationManager
        self.consentManager = consentManager ?? SwiftyAdConsentManager(ids: configuration.ids,
                                                                       configuration: configuration.gdpr)
        
        // Update banner animation duration
        if let bannerAnimationDuration = bannerAnimationDuration {
            self.bannerAnimationDuration = bannerAnimationDuration
        }
        
        // Make consent request
        self.consentManager.ask(from: viewController, skipIfAlreadyAuthorized: true) { status in
