public void didDismissInterstitial()
 {
     interstitialView.state = InterstitialState.New;
     AMRSDK.resolveBannerConflict();
     if (interstitialView.onDismissDelegate != null)
     {
         interstitialView.onDismissDelegate();
     }
 }
예제 #2
0
 public void didDismissOfferWall()
 {
     offerWallView.state = OfferWallState.New;
     AMRSDK.resolveBannerConflict();
     if (offerWallView.onDismissDelegate != null)
     {
         offerWallView.onDismissDelegate();
     }
 }
        // It indicates that the interstitial ad is closed by clicking cross button/back button
        public void OnInterstitialDismiss()
        {
            //timer i sifirliyoruz
            Timer.Reset();

            AdManager.instance.onComplete(PlayerDataController.data.whichVideoFor, AdManager.AD_STATES.NOT_COMPLETE);
            PlayerDataController.SaveData("whichVideoFor", "");
            AMRSDK.loadInterstitial();
            Debug.Log("Intersititial Ad dismiss!");
        }
예제 #4
0
            public void didDismissRewardedVideo()
            {
                videoView.state = VideoState.New;

                AMRSDK.resolveBannerConflict();
                if (videoView.onDismissDelegate != null)
                {
                    videoView.onDismissDelegate();
                }
            }
 // It indicates that the rewarded video ad is closed by clicking cross button/back button.
 // It does not mean that the user deserves to receive a reward. You need to check whether OnVideoComplete callback is called or not.
 public void OnVideoDismiss()
 {
     if (PlayerDataController.data.isRewardedVideoWatched)
     {
         AdManager.instance.onComplete(PlayerDataController.data.whichVideoFor, AdManager.AD_STATES.COMPLETE);
     }
     else
     {
         AdManager.instance.onComplete(PlayerDataController.data.whichVideoFor, AdManager.AD_STATES.NOT_COMPLETE);
     }
     PlayerDataController.SaveData("whichVideoFor", "");
     AMRSDK.loadRewardedVideo();
     Debug.Log("Video Ad dismiss!");
 }
        void Start()
        {
            AMRSdkConfig config = new AMRSdkConfig();

            config.ApplicationIdAndroid = "";
            config.ApplicationIdIOS     = "72bd5c31-3ddb-411a-b355-fdd88bd223dc";

            config.BannerIdAndroid = "";
            config.BannerIdIOS     = "c4b90936-20e5-4919-b83c-f4d7fd3d4e25";

            config.InterstitialIdAndroid = "";
            config.InterstitialIdIOS     = "d3523276-87eb-42f3-a5f1-c38ea3f0a702";

            config.RewardedVideoIdAndroid = "";
            config.RewardedVideoIdIOS     = "a5690814-40ba-4afc-a028-26b1857ab816";

            //config.OfferWallIdAndroid = "<Your Android Offerwall Zone Id>";
            //config.OfferWallIdIOS = "<Your IOS Offerwall Zone Id>";

            AMRSDK.startWithConfig(config);

            //AMRSDK.loadBanner(Enums.AMRSDKBannerPosition.BannerPositionBottom, true);

            AMRSDK.loadInterstitial();
            AMRSDK.loadRewardedVideo();

            AMRSDK.setOnBannerReady(onBannerReady);
            AMRSDK.setOnBannerFail(onBannerFail);
            AMRSDK.setOnBannerClick(onBannerClick);

            AMRSDK.setOnInterstitialReady(OnInterstitialReady);
            AMRSDK.setOnInterstitialFail(OnInterstitialFail);
            AMRSDK.setOnInterstitialShow(OnInterstitialShow);
            AMRSDK.setOnInterstitialClick(OnInterstitialClick);
            AMRSDK.setOnInterstitialDismiss(OnInterstitialDismiss);

            AMRSDK.setOnRewardedVideoReady(OnVideoReady);

            AMRSDK.setOnRewardedVideoFail(OnVideoFail);
            AMRSDK.setOnRewardedVideoShow(OnVideoShow);
            AMRSDK.setOnRewardedVideoClick(OnVideoClick);
            AMRSDK.setOnRewardedVideoDismiss(OnVideoDismiss);
            AMRSDK.setOnRewardedVideoComplete(OnVideoComplete);
        }
 public void showBanner()
 {
     if (AMRSDK.isFullScreenAdShowing())
     {
         hideBanner();
         isConflicted = true;
     }
     else
     {
         if (state == BannerState.Loaded)
         {
             Banner.showBanner();
         }
         else if (state == BannerState.New)
         {
             loadBannerForZoneId(zoneIdiOS, zoneIdAndroid, position, offset, autoShow);
         }
     }
 }
예제 #8
0
 public GDPRDelegate(AMRSDK asdk)
 {
     amrSdk = asdk;
 }
예제 #9
0
 public TrackPurchaseDelegate(AMRSDK asdk)
 {
     amrSdk = asdk;
 }
예제 #10
0
 public VirtualCurrencyDelegate(AMRSDK asdk)
 {
     amrSdk = asdk;
 }