iOS GADInterstitialAd Unable to close

26 views
Skip to first unread message

f b

unread,
Jun 19, 2024, 4:36:17 AM (9 days ago) Jun 19
to Google Mobile Ads SDK Developers

pod 'Google-Mobile-Ads-SDK', '11.5.0'

private func loadNavAd(){
Task{
    do {
        interstitial = try await GADInterstitialAd.load(
            withAdUnitID: "*******", request: GADRequest())
        interstitial?.fullScreenContentDelegate = self
        DispatchQueue.main.after(0.5) {[weak self] in
            guard let self = self else{
                return
            }
            self.interstitial?.present(fromRootViewController: self)
        }
    } catch {
        print("Failed to load interstitial ad with error: \(error.localizedDescription)")
    }
}
}

Ads with the close button in the upper right corner cannot be closed. Ads with the close button in other locations can be closed.

Reply all
Reply to author
Forward
0 new messages