merbin2012 / cordova-plugin-codeplay-facebookads-free

Free facebook audience network ads for cordova user. This supports banner ads, Interstitial ads and video ads.
23 stars 9 forks source link

Unable to load Interstitial ads on Android 10 #21

Closed tscislo closed 3 years ago

tscislo commented 3 years ago
        cordova.plugins.codeplayfacebookads.loadInterstitialAds(
            {
                interstitialid: "xxxx,
                isTesting: true
            },
            (event: string) => {
                if (event === "AdLoaded") {
                    console.log("interstitial ad AdLoaded");
                    this.interstitialReady = true;
                } else if (event === "AdClosed") {
                    console.log("interstitial ad AdClosed");
                } else if (event === "AdDisplayed") {
                    console.log("interstitial ad AdDisplayed");
                } else if (event === "AdClicked") {
                    console.log("interstitial ad AdClicked");
                } else if (event === "AdLogged") {
                    console.log("interstitial ad AdLogged");
                }
            },
            (result) => {
                console.log("Unable to load interstitial ad", result); // THIS code gets invoked
            }
        )

I'm trying to load interstitial as in above example and it fails with the following error: "Ads failed to load: An unknown error has occurred."

I'm not even showing interstitial yet, I'm just trying to load it in 'deviceready' event handler. Banner ads display correctly.

What could be wrong?

tscislo commented 3 years ago

False alarm works both on Android 10 and 11