private static void rewardedVideoFailCallback(IntPtr rewardedVideoHandlePtr, string error) { GCHandle rewardedVideoHandle = (GCHandle)rewardedVideoHandlePtr; AMRRewardedVideoViewDelegate delegateObject = rewardedVideoHandle.Target as AMRRewardedVideoViewDelegate; delegateObject.didFailtoReceiveRewardedVideo(error); }
void onAdFailedToLoad(int errorCode) { if (errorCode == 302) { delegateObj.didFailtoShowRewardedVideo(); } else { delegateObj.didFailtoReceiveRewardedVideo("" + errorCode); } }
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); } }