private static void AdDidRecordImpressionCallback(IntPtr rewardedInterstitialAdClient) { RewardedInterstitialAdClient client = IntPtrToRewardedInterstitialAdClient(rewardedInterstitialAdClient); if (client.OnAdDidRecordImpression != null) { client.OnAdDidRecordImpression(client, EventArgs.Empty); } }
private static void RewardedInterstitialAdLoadedCallback(IntPtr rewardedInterstitialAdClient) { RewardedInterstitialAdClient client = IntPtrToRewardedInterstitialAdClient(rewardedInterstitialAdClient); if (client.OnAdLoaded != null) { client.OnAdLoaded(client, EventArgs.Empty); } }
private static void AdDidDismissFullScreenContentCallback(IntPtr rewardedInterstitialAdClient) { RewardedInterstitialAdClient client = IntPtrToRewardedInterstitialAdClient(rewardedInterstitialAdClient); if (client.OnAdDidDismissFullScreenContent != null) { client.OnAdDidDismissFullScreenContent(client, EventArgs.Empty); } }
private static void AdFailedToPresentFullScreenContentCallback(IntPtr rewardedInterstitialAdClient, IntPtr error) { RewardedInterstitialAdClient client = IntPtrToRewardedInterstitialAdClient(rewardedInterstitialAdClient); if (client.OnAdFailedToPresentFullScreenContent != null) { AdErrorClientEventArgs args = new AdErrorClientEventArgs() { AdErrorClient = new AdErrorClient(error) }; client.OnAdFailedToPresentFullScreenContent(client, args); } }
private static void RewardedInterstitialAdFailedToLoadCallback( IntPtr rewardedInterstitialAdClient, IntPtr error) { RewardedInterstitialAdClient client = IntPtrToRewardedInterstitialAdClient(rewardedInterstitialAdClient); if (client.OnAdFailedToLoad != null) { LoadAdErrorClientEventArgs args = new LoadAdErrorClientEventArgs() { LoadAdErrorClient = new LoadAdErrorClient(error) }; client.OnAdFailedToLoad(client, args); } }
private static void RewardedInterstitialAdFailedToLoadCallback( IntPtr rewardedInterstitialAdClient, string error) { RewardedInterstitialAdClient client = IntPtrToRewardedInterstitialAdClient(rewardedInterstitialAdClient); if (client.OnAdFailedToLoad != null) { AdFailedToLoadEventArgs args = new AdFailedToLoadEventArgs() { Message = error }; client.OnAdFailedToLoad(client, args); } }
private static void RewardedInterstitialAdUserDidEarnRewardCallback( IntPtr rewardedInterstitialAdClient, string rewardType, double rewardAmount) { RewardedInterstitialAdClient client = IntPtrToRewardedInterstitialAdClient( rewardedInterstitialAdClient); if (client.OnUserEarnedReward != null) { Reward args = new Reward() { Type = rewardType, Amount = rewardAmount }; client.OnUserEarnedReward(client, args); } }
private static void RewardedInterstitialAdPaidEventCallback( IntPtr rewardedInterstitialAdClient, int precision, long value, string currencyCode) { RewardedInterstitialAdClient client = IntPtrToRewardedInterstitialAdClient(rewardedInterstitialAdClient); if (client.OnPaidEvent != null) { AdValue adValue = new AdValue() { Precision = (AdValue.PrecisionType)precision, Value = value, CurrencyCode = currencyCode }; AdValueEventArgs args = new AdValueEventArgs() { AdValue = adValue }; client.OnPaidEvent(client, args); } }