Package 

Class InAppAdLibrary

    • Method Detail

      • loadRewardedVideo

         static void loadRewardedVideo(Context context, String placementID, DaemonRequest.Callback callback)

        Sets a callback to be triggered after the rewarded video is loaded. This MUST be called beforeshowRewardedVideo().

        Parameters:
        context - the application context
        placementID - the placement ID of the ad
        callback - callback for success and error
      • loadInterstitialAd

         static void loadInterstitialAd(Context context, String placementID, DaemonRequest.Callback callback)

        Sets a callback to be triggered after the interstitial ad is loaded. This MUST be called beforeshowInterstitialAd().

        Parameters:
        context - the application context
        placementID - the placement ID of the ad
        callback - callback for success and error
      • showRewardedVideo

         static void showRewardedVideo(Context context, String placementID, DaemonRequest.Callback callback)

        Sets a callback to be triggered after the rewarded video is shown. This can only be calledafter the loadRewardVideo() returns successfully.

        Parameters:
        context - the application context
        placementID - the placement ID of the ad
        callback - callback for success and error
      • showInterstitialAd

         static void showInterstitialAd(Context context, String placementID, DaemonRequest.Callback callback)

        Sets a callback to be triggered after the interstitial ad is shown. This can only be calledafter the loadInterstitialAd() returns successfully.

        Parameters:
        context - the application context
        placementID - the placement ID of the ad
        callback - callback for success and error