示例#1
0
        private static void rewardedVideoFailCallback(IntPtr rewardedVideoHandlePtr, string error)
        {
            GCHandle rewardedVideoHandle = (GCHandle)rewardedVideoHandlePtr;
            AMRRewardedVideoViewDelegate delegateObject = rewardedVideoHandle.Target as AMRRewardedVideoViewDelegate;

            delegateObject.didFailtoReceiveRewardedVideo(error);
        }
示例#2
0
 void onAdFailedToLoad(int errorCode)
 {
     if (errorCode == 302)
     {
         delegateObj.didFailtoShowRewardedVideo();
     }
     else
     {
         delegateObj.didFailtoReceiveRewardedVideo("" + errorCode);
     }
 }
示例#3
0
        private static void rewardedVideoFailToShowCallback(IntPtr rewardedVideoHandlePtr, string errorCode)
        {
            GCHandle rewardedVideoHandle = (GCHandle)rewardedVideoHandlePtr;
            AMRRewardedVideoViewDelegate delegateObject = rewardedVideoHandle.Target as AMRRewardedVideoViewDelegate;

            if (errorCode.Equals("1081"))
            {
                delegateObject.didFailtoShowRewardedVideo();
            }
            else
            {
                delegateObject.didFailtoReceiveRewardedVideo(errorCode);
            }
        }