Class IronSource
-
- All Implemented Interfaces:
public abstract class IronSource******************************** REWARDED VIDEO DEMAND ONLY API
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumIronSource.AD_UNIT
-
Constructor Summary
Constructors Constructor Description IronSource()
-
Method Summary
Modifier and Type Method Description static voidsetMediationType(String mediationType)************************* GENERAL API static StringgetISDemandOnlyBiddingData(Context context)used for demand only API static voidloadISDemandOnlyRewardedVideo(@NotNull() Activity activity, String instanceId)DEMAND ONLY MODE Loads Rewarded Video ad unit static voidshowISDemandOnlyRewardedVideo(String instanceId)DEMAND ONLY MODE Shows Rewarded Video ad unit static booleanisISDemandOnlyRewardedVideoAvailable(String instanceId)DEMAND ONLY MODE Asks for ad availability directly static voidsetISDemandOnlyRewardedVideoListener(ISDemandOnlyRewardedVideoListener listener)DEMAND ONLY MODE The ironSource SDK fires several events to inform you of ad availability. static voidloadISDemandOnlyInterstitial(@NotNull() Activity activity, String instanceId)DEMAND ONLY MODE Requests an interstitial ad with Activity static voidshowISDemandOnlyInterstitial(String instanceId)DEMAND ONLY MODE Serves an Interstitial ad to your users static booleanisISDemandOnlyInterstitialReady(String instanceId)DEMAND ONLY MODE Asks for ad availability directly static voidsetISDemandOnlyInterstitialListener(ISDemandOnlyInterstitialListener listener)DEMAND ONLY MODE The ironSource SDK fires several events to inform you of ad availability. static voidloadISDemandOnlyBanner(@NotNull() Activity activity, ISDemandOnlyBannerLayout banner, String instanceId)DEMAND ONLY MODE Requests a banner ad with Activity static ISDemandOnlyBannerLayoutcreateBannerForDemandOnly(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. static voiddestroyISDemandOnlyBanner(String instanceId)DEMAND ONLY MODE Destroys banner and its corresponding ad static voidsetAdRevenueData(@NotNull() String dataSource, @NotNull() JSONObject impressionData)sets Ad revenue data -
-
Method Detail
-
setMediationType
static void setMediationType(String mediationType)
************************* GENERAL API
-
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 presentedinstanceId- ironSource's instanceId which should be load
-
showISDemandOnlyRewardedVideo
static void showISDemandOnlyRewardedVideo(String instanceId)
DEMAND ONLY MODE Shows Rewarded Video ad unit
-
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 presentedinstanceId- ironSource's instanceId which should be load
-
showISDemandOnlyInterstitial
static void showISDemandOnlyInterstitial(String instanceId)
DEMAND ONLY MODE Serves an Interstitial ad to your users
-
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 presentedbanner- to loadinstanceId- 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 presentedsize- 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 sentimpressionData- the impression data
-
-
-
-