iOS插屏广告无法关闭,点击右上角的❎号没有反应,这是什么原因?

40 views
Skip to first unread message

f b

unread,
Jun 18, 2024, 3:35:24 PMJun 18
to Google Mobile Ads SDK Developers
我的iOS应用集成了admob的插屏广告,版本是11.5.0,但是我发现插屏广告无法关闭,点击右上角的❎号没有反应,这是什么原因?

f b

unread,
Jun 19, 2024, 7:38:03 AMJun 19
to Google Mobile Ads SDK Developers
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.
Reply all
Reply to author
Forward
0 new messages