Class IronSource

  • All Implemented Interfaces:

    
    public abstract class IronSource
    
                        

    ******************************** REWARDED VIDEO DEMAND ONLY API

    • Constructor Detail

      • IronSource

        IronSource()
    • Method Detail

      • getISDemandOnlyBiddingData

         static String getISDemandOnlyBiddingData(Context context)

        used for demand only API

        Parameters:
        context - application context which should be passed
        Returns:

        the bidding data token

      • loadISDemandOnlyRewardedVideo

         static void loadISDemandOnlyRewardedVideo(@NotNull() Activity activity, String instanceId)

        DEMAND ONLY MODE Loads Rewarded Video ad unit

        Parameters:
        activity - activity in which the Rewarded Video should be presented
        instanceId - ironSource's instanceId which should be load
      • isISDemandOnlyRewardedVideoAvailable

         static boolean isISDemandOnlyRewardedVideoAvailable(String instanceId)

        DEMAND ONLY MODE Asks for ad availability directly

        Returns:

        true if ad unit is available, false otherwise

      • setISDemandOnlyRewardedVideoListener

         static void setISDemandOnlyRewardedVideoListener(ISDemandOnlyRewardedVideoListener listener)

        DEMAND ONLY MODE The ironSource SDK fires several events to inform you of ad availability. By implementing the ISDemandOnlyRewardedVideoListener you will receive the RewardedVideo events. Pass this object within the setISDemandOnlyRewardedVideoListener(…) method. The SDK will notify your Listener of all possible events

        Parameters:
        listener - your implementation of the ISDemandOnlyRewardedVideoListener interface
      • loadISDemandOnlyInterstitial

         static void loadISDemandOnlyInterstitial(@NotNull() Activity activity, String instanceId)

        DEMAND ONLY MODE Requests an interstitial ad with Activity

        Parameters:
        activity - activity in which the Interstitial should be presented
        instanceId - ironSource's instanceId which should be load
      • isISDemandOnlyInterstitialReady

         static boolean isISDemandOnlyInterstitialReady(String instanceId)

        DEMAND ONLY MODE Asks for ad availability directly

        Returns:

        true if ad unit is ready, false otherwise

      • setISDemandOnlyInterstitialListener

         static void setISDemandOnlyInterstitialListener(ISDemandOnlyInterstitialListener listener)

        DEMAND ONLY MODE The ironSource SDK fires several events to inform you of ad availability. By implementing the ISDemandOnlyInterstitialListener you will receive the Interstitial events. Pass this object within the setISDemandOnlyInterstitialListener(…) method. The SDK will notify your Listener of all possible events

        Parameters:
        listener - your implementation of the ISDemandOnlyInterstitialListener interface
      • loadISDemandOnlyBanner

         static void loadISDemandOnlyBanner(@NotNull() Activity activity, ISDemandOnlyBannerLayout banner, String instanceId)

        DEMAND ONLY MODE Requests a banner ad with Activity

        Parameters:
        activity - activity in which the Interstitial should be presented
        banner - to load
        instanceId - ironSource's instanceId which should be load
      • createBannerForDemandOnly

         static ISDemandOnlyBannerLayout createBannerForDemandOnly(Activity activity, ISBannerSize size)

        DEMAND ONLY MODE Creates an IronSourceDemandOnlyBannerLayout view that is used to configure the banner right away, and later used to load and attach the banner to a view in your app.

        Parameters:
        activity - activity in which the Banner should be presented
        size - sets the banner size
        Returns:

        ISDemandOnlyBannerLayout view object which can be attached to your view hierarchy and used to load banner ad

      • destroyISDemandOnlyBanner

         static void destroyISDemandOnlyBanner(String instanceId)

        DEMAND ONLY MODE Destroys banner and its corresponding ad

        Parameters:
        instanceId - the instanceId which is assigned to the banner
      • setAdRevenueData

         static void setAdRevenueData(@NotNull() String dataSource, @NotNull() JSONObject impressionData)

        sets Ad revenue data

        Parameters:
        dataSource - the external source id from which the impression data is sent
        impressionData - the impression data