Пример #1
0
        private static void RewardedAdDidFailToShowAdWithErrorCallback(
            IntPtr rewardedAdClient, string error)
        {
            RewardedAdClient client = IntPtrToRewardedAdClient(rewardedAdClient);

            if (client.OnAdFailedToShow != null)
            {
                AdErrorEventArgs args = new AdErrorEventArgs()
                {
                    Message = error
                };
                client.OnAdFailedToShow(client, args);
            }
        }
Пример #2
0
        private static void RewardedAdDidFailToShowAdWithErrorCallback(
            IntPtr rewardedAdClient, IntPtr error)
        {
            RewardedAdClient client = IntPtrToRewardedAdClient(rewardedAdClient);

            if (client.OnAdFailedToShow != null)
            {
                AdErrorClientEventArgs args = new AdErrorClientEventArgs()
                {
                    AdErrorClient = new AdErrorClient(error),
                    Message       = Externs.GADUGetAdErrorMessage(error)
                };
                client.OnAdFailedToShow(client, args);
            }
        }