Пример #1
0
        private static void AdViewWillLeaveApplicationCallback(IntPtr bannerClient)
        {
            BannerClient client = IntPtrToBannerClient(bannerClient);

            if (client.OnAdLeftApplication != null)
            {
                client.OnAdLeftApplication(client, EventArgs.Empty);
            }
        }
Пример #2
0
        private static void AdViewDidDismissScreenCallback(IntPtr bannerClient)
        {
            BannerClient client = IntPtrToBannerClient(bannerClient);

            if (client.OnAdClosed != null)
            {
                client.OnAdClosed(client, EventArgs.Empty);
            }
        }
Пример #3
0
        private static void AdViewWillPresentScreenCallback(IntPtr bannerClient)
        {
            BannerClient client = IntPtrToBannerClient(bannerClient);

            if (client.OnAdOpened != null)
            {
                client.OnAdOpened(client, EventArgs.Empty);
            }
        }
Пример #4
0
        private static void AdViewDidReceiveAdCallback(IntPtr bannerClient)
        {
            BannerClient client = IntPtrToBannerClient(bannerClient);

            if (client.OnAdLoaded != null)
            {
                client.OnAdLoaded(client, EventArgs.Empty);
            }
        }
Пример #5
0
        private static void AdViewDidFailToReceiveAdWithErrorCallback(
            IntPtr bannerClient, string error)
        {
            BannerClient client = IntPtrToBannerClient(bannerClient);

            if (client.OnAdFailedToLoad != null)
            {
                AdFailureEventArgs args = new AdFailureEventArgs()
                {
                    Message = error
                };
                client.OnAdFailedToLoad(client, args);
            }
        }