Skip to content

Latest commit

 

History

History
33 lines (28 loc) · 676 Bytes

intertitials.md

File metadata and controls

33 lines (28 loc) · 676 Bytes
    import{ IntertitialSmaato } from 'react-native-smaato-ad';
    IntertitialSmaato.showAd('130626426');
    interface IntertitialType {
        showAd(adid:string): void;
    }
    enum EventIntertitialType {
        onAdLoaded,
        onAdFailedToLoad,
        onAdError,
        onAdOpened,
        onAdClosed,
        onAdClicked,
        onAdImpression,
        onAdTTLExpired
    }
   //events
   import{ IntertitialSmaatoEvent,EventIntertitial } from 'react-native-smaato-ad';

   IntertitialSmaatoEvent.addListener(EventIntertitial.onAdLoaded,(event:any) => {
     console.log(event)
   })