Admob on Windowsphone doesn't show Ads, when not debugging with Visual Studio

169 views
Skip to first unread message

ilk.jo...@gmail.com

unread,
Mar 1, 2014, 12:58:31 PM3/1/14
to google-adm...@googlegroups.com
I have made an App for Windowsphone and chose Admob as Advertising Service.


   //Constructor

        bottomAdcontrol = new AdView
            {
                Format = AdFormats.Banner,
                AdUnitID = "ca-app-pub-???????/??????"
            };
            bottomAdcontrol.ReceivedAd += OnAdReceived;
            bottomAdcontrol.FailedToReceiveAd += OnFailedToReceiveAd;
            bottomAdcontrol.VerticalAlignment = VerticalAlignment.Bottom;
            bottomAdcontrol.HorizontalAlignment = HorizontalAlignment.Center;
            grid.Children.Add(bottomAdcontrol);
            AdRequest adRequest = new AdRequest();
            bottomAdcontrol.LoadAd(adRequest);

.
.
.

        private void OnAdReceived(object sender, AdEventArgs e)
        {
            Debug.WriteLine("Received ad successfully");
            debugText.Text = "Win";
        }

        private void OnFailedToReceiveAd(object sender, AdErrorEventArgs errorCode)
        {
            Debug.WriteLine("Failed to receive ad with error " + errorCode.ErrorCode);
            debugText.Text = "Fail" + errorCode.ErrorCode;
        }




.
.
.


        private void _showBottomAd()
        {
            
            // Unity button has been clicked.
            // Update TextBlock control from UI thread.
            Dispatcher.BeginInvoke(() =>
            {
                debugText2.Text = "show";
                bottomAdcontrol.IsEnabled = true;
                bottomAdcontrol.Visibility = Visibility.Visible;

            });
        }

        private void _hideBottomAd()
        {
            
            // Unity button has been clicked.
            // Update TextBlock control from UI thread.
            Dispatcher.BeginInvoke(() =>
            {
                debugText2.Text = "hide";
                bottomAdcontrol.IsEnabled = false;
                bottomAdcontrol.Visibility = Visibility.Collapsed;
            });
        }

Now when I'm building and testing my App in Visual Studio, there is absolutely no Problem it has a fillrate like 100% and the ads get shown properly. Whether I build Debug or Master there is no difference it works perfectly fine.

Debugtext: "Win"; Debugtext2: "show";



But when I open my app and I'm not connected to the Visual Studio debugging the Ads don't get shown (I started like 50times and no ad appeared yet). But there is also no OnFailedToReceiveAd. Nothing happens at all....

Debugtext: "standardText"; Debugtext2: "show";

Please fix the WP8 SDK! 

Best Regards

Amy Quispe (AdMob SDK Team)

unread,
Mar 3, 2014, 7:53:01 PM3/3/14
to google-adm...@googlegroups.com
Hi there,

We're having an engineer look at this issue.

Thanks

Amy Quispe
Reply all
Reply to author
Forward
0 new messages