Search in sources :

Example 6 with InterstitialAd

use of com.facebook.ads.InterstitialAd in project react-native-fbads by callstack.

the class InterstitialAdManager method loadAd.

@ReactMethod
public void loadAd(String placementId, Promise p) {
    ReactApplicationContext reactContext = this.getReactApplicationContext();
    mViewAtOnce = true;
    mPromise = p;
    mInterstitial = new InterstitialAd(reactContext, placementId);
    mInterstitial.loadAd();
}
Also used : InterstitialAd(com.facebook.ads.InterstitialAd) ReactApplicationContext(com.facebook.react.bridge.ReactApplicationContext) ReactMethod(com.facebook.react.bridge.ReactMethod)

Aggregations

InterstitialAd (com.facebook.ads.InterstitialAd)6 ReactApplicationContext (com.facebook.react.bridge.ReactApplicationContext)4 ReactMethod (com.facebook.react.bridge.ReactMethod)4