4. Initialization and usage
Falcon Mediation will start and initialize automatically after UMP is displayed
Usage
Ads formats have been loaded automatically after Init. Functions :
Banner :
Show banner :
public void FalconMediation.Instance.ShowBanner()
Hide banner :
public void FalconMediation.Instance.HideBanner()
Interstitial :
Check ad availability :
public bool FalconMediation.Instance.IsInterstitialReady()
Show Interstitial :
public void FalconMediation.Instance.ShowInterstitial(Action onInterstitialClosed = null,
Action onFail = null, string where = "", int level = 0)
Explanation of parameters :
- onInterstitialClosed : action will be performed after closing the ad (e.g. receiving a reward)
- onFail : action will be performed when the ad cannot be loaded, or the ad cannot be shown
- where : where to display the ad
- level : current level of the player
RewardedVideo :
Check ad availability :
public bool FalconMediation.Instance.IsRewardedVideoReady()
Show rewarded video :
public void FalconMediation.Instance.ShowRewardedVideo(Action onRewardedComplete,
Action onFail = null, string where = "", int level = 0, bool showRewardInstead = true)
Explanation of parameters :
- onRewardedComplete : action will be performed after closing the ad (e.g. receiving a reward)
- onFail : action will be performed when the ad cannot be loaded, or the ad cannot be shown
- where : where to display the ad
- level : current level of the player
- showRewardInstead : allows if the video ad cannot be loaded, an interstital ad will be shown instead
App Open :
App open will be automatically called when switching from background to fogeground
Function to turn off App Open (for example, user buys Remove ads package):
FalconMediation.Instance.DisableAppOpenAds()
Last updated