INNER CODE UNIT · Swift

interstitial

kmcgill88/admob_flutter · ios/Classes/AdmobInterstitialPlugin.swift:142

    func interstitial(_ ad: GADInterstitial, didFailToReceiveAdWithError error: GADRequestError) {
        channel.invokeMethod("failedToLoad", arguments:  [
            "errorCode": error.code,
            "error": error.localizedDescription
        ])
    }
    
    func interstitialDidFail(toPresentScreen ad: GADInterstitial) {
        channel.invokeMethod("failedToLoad", arguments: ["errorCode": ad.isReady && ad.hasBeenUsed])
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…