コード例 #1
0
        private static void InterstitialDidFailToReceiveAdWithErrorCallback(
            IntPtr interstitialClient, string error)
        {
            InterstitialClient      client = IntPtrToInterstitialClient(interstitialClient);
            AdFailedToLoadEventArgs args   = new AdFailedToLoadEventArgs()
            {
                Message = error
            };

            client.OnAdFailedToLoad(client, args);
        }
コード例 #2
0
        private static void InterstitialFailedToLoadCallback(
            IntPtr interstitialClient, IntPtr error)
        {
            InterstitialClient client = IntPtrToInterstitialClient(interstitialClient);

            if (client.OnAdFailedToLoad != null)
            {
                LoadAdErrorClientEventArgs args = new LoadAdErrorClientEventArgs()
                {
                    LoadAdErrorClient = new LoadAdErrorClient(error)
                };
                client.OnAdFailedToLoad(client, args);
            }
        }
コード例 #3
0
        private static void InterstitialDidFailToReceiveAdWithErrorCallback(
            IntPtr interstitialClient, IntPtr error)
        {
            InterstitialClient client = IntPtrToInterstitialClient(interstitialClient);

            if (client.OnAdFailedToLoad != null)
            {
                LoadAdErrorClientEventArgs args = new LoadAdErrorClientEventArgs()
                {
                    LoadAdErrorClient = new LoadAdErrorClient(error),
                    Message           = Externs.GADUGetAdErrorMessage(error)
                };
                client.OnAdFailedToLoad(client, args);
            }
        }