Exemplo n.º 1
0
    private void OnClickInit()
    {
        ScaleMonkAds.InterstitialClickedEvent      += Feedback("Interstitial Clicked");
        ScaleMonkAds.RewardedClickedEvent          += Feedback("Video Clicked");
        ScaleMonkAds.InterstitialDisplayedEvent    += Feedback("Interstitial Displayed");
        ScaleMonkAds.RewardedDisplayedEvent        += Feedback("Video Displayed");
        ScaleMonkAds.RewardedStartedEvent          += Feedback("Video Started");
        ScaleMonkAds.RewardedNotDisplayedEvent     += Feedback("Video Not Displayed");
        ScaleMonkAds.InterstitialNotDisplayedEvent += Feedback("Interstitial Not Displayed");
        ScaleMonkAds.InterstitialReadyEvent        += Feedback("Interstitial Ready");
        ScaleMonkAds.InterstitialNotReadyEvent     += Feedback("Interstitial Not Ready");
        ScaleMonkAds.RewardedReadyEvent            += Feedback("Rewarded Ready");
        ScaleMonkAds.RewardedNotReadyEvent         += Feedback("Rewarded Not Ready");
        ScaleMonkAds.BannerCompletedDisplayedEvent += Feedback("Banner Displayed");
        ScaleMonkAds.BannerFailedDisplayedEvent    += Feedback("Banner Not Displayed");

        ScaleMonkAds.Initialize(() =>
        {
            // Here the SDK is initialized and you can interact with it
            AdsLogger.LogInfo("SDK is ready to show Ads");
            OnClickShowBanner();
        }
                                );
    }
 public void FailedRewardedDisplay(string location)
 {
     AdsLogger.LogWithFormat("{0} | Failed rewarded display at location \"{1}\"", _label, location);
     _adsInstance.FailedRewardedDisplay(location);
 }
 public void ClickedRewarded(string location)
 {
     AdsLogger.LogWithFormat("{0} | Clicked rewarded at location \"{1}\"", _label, location);
     _adsInstance.ClickedRewarded(location);
 }
 public void RewardedNotReady()
 {
     AdsLogger.LogWithFormat("{0} | Rewarded not ready to display", _label);
     _adsInstance.RewardedNotReady();
 }
 public void InterstitialNotReady()
 {
     AdsLogger.LogWithFormat("{0} | Interstitial not ready to display", _label);
     _adsInstance.InterstitialNotReady();
 }
 public void FailedInterstitialDisplay(string location)
 {
     AdsLogger.LogWithFormat("{0} | Failed interstitial display at location \"{1}\"", _label, location);
     _adsInstance.FailedInterstitialDisplay(location);
 }
 public void ClickedInterstitial(string location)
 {
     AdsLogger.LogWithFormat("{0} | Clicked interstitial at location \"{1}\"", _label, location);
     _adsInstance.ClickedInterstitial(location);
 }