예제 #1
0
        private static void BannerDidClickCallback(IntPtr bannerClient)
        {
            BannerClient client = IntPtrToBannerClient(bannerClient);

            if (client.OnAdClicked != null)
            {
                client.OnAdClicked(client, EventArgs.Empty);
            }
        }
예제 #2
0
        private static void BannerDidFailToReceiveAdWithErrorCallback(IntPtr bannerClient, string error)
        {
            BannerClient client = IntPtrToBannerClient(bannerClient);

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