AdControl invisible in MonoGame

Hey Guys, when im using the newest version of monogame
my AdControl is invisible. Im Using the MS Advertisement sdk.
And it’s totally invisible. In other projects it works but not in MonoGame 3.2! :frowning: :frowning:
I tried everything, like adding some grids or sth but it wont change.

PS: using a DrawingSurface in a LayoutRoot there’s just a black screen and the Draw-Function in Game1 wasnt even called! :open_mouth:

Guys, please! I dont know why the AdControl isnt shown :frowning:
Im using MonoGame 3.2! :confused:

Also tried it with MonoGame 3.0.1.
its qgual if i ad the Adcontrol to the DrawingSurfaceBackgroundGrid or the ContentPanel or sth else. It just wont be shown :frowning:

Hi,

I’m using Pubcenter ads in WP8 and I had some problems too at the start.

What I did ws starting with a simple Grid of a (in example) blue color and try to show it while playing.

Once it was shown, I inserted the AdControl inside the “advertGrid” (all adverts… smaato, pubcenter, admob) are inserted inside that grid: it’s easier to control the container than controlling all the ad controls for, in example, move them.

JFTR, my XAML with ads is something like this





Without adding an advert, you should see a blue banner while playing. If not, something weird is happening.

I hope it helps.

i created a grid after the LayoutRoot.
The Grid will be shown (i coloured it) but if i add the AdControl to it it wont be shown! :frowning:

 AdControl adControl = new AdControl("test_client",   // ApplicationID
                                          "Image480_80",   // AdUnitID
                                           true);           // isAutoRefreshEnabled
        adControl.Width = 480;
        adControl.Height = 80;
        adControl.VerticalAlignment = VerticalAlignment.Top;

        this.testgrid.Children.Add(adControl);

one question, are you talking of Windows 8 or Windows Phone 8?

Windows Phone 8 :smile:

Hi!

I wrote an small sample which has the adverts working based on Monogame WP8 new project template. The interesting stuff is in Game1.loadAdControl (I’m running it from a separate UI thread because… uhh… wp8 thread locks are killing me. It’s probably not needed depending on where you run it from)

I’m sure it’ll be easier to work from it.

http://www.ru-zero.com/files2/advertSample.zip

p.s. my c# coding style is very questionable, so don’t judge me :wink:

Thanks! The Problem is kinda funny :confused: Sorry, but i fogot to click on “ID_CAP_IDENTITY_USER”.
But luckily you wrote a function that writes the error in debug console! I think i would never had found it out if it wasnt shown in debug console… thx :slight_smile: