I´ve displayed Facebook ads before but today the Interstitial ads stopped working, we I try the debug mode I get an error with code -1 and name Unknown error.
I'm using the following code:
fbInterstitialAd =new com.facebook.ads.InterstitialAd(mContext,id_facebook);
fbInterstitialAd.setAdListener(new InterstitialAdListener() {
@Override
public void onInterstitialDisplayed(Ad ad) {
}
@Override
public void onInterstitialDismissed(Ad ad) {
adDismissed.run();
}
@Override
public void onError(Ad ad, AdError adError) {
Log.d("FBads",adError.getErrorMessage());
}
@Override
public void onAdLoaded(Ad ad) {
adLoaded.run();
}
@Override
public void onAdClicked(Ad ad) {
adClickedCallback.run();
}
});
fbInterstitialAd.loadAd();