iOS GADInterstitialAd Unable to close
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.