I’ve managed to get AdMob interstitial adverts working in my game using the Xamarin Google Play Services component. The advert takes over the screen correctly but when I close it and return to the game, all of my sprites appear as black rectangles.
I’m using MonoGame 3.2 (the .dll assembly version says 3.1.2.0). Any help would be appreciated.
Thanks for the quick response. I downloaded and compiled the latest source but my game initialization code is failing to compile, ie.
Game1.Activity = this;
var g = new Game1();
SetContentView(g.Window);
g.Run();
Results in 3 compilation errors:
Error CS0200: Property or indexer ‘Microsoft.Xna.Framework.Game.Activity’ cannot be assigned to – it is read only
Error CS1502: The best overloaded method match for ‘Android.App.Activity.SetContentView(Android.Views.View)’ has some invalid arguments
Error CS1503: Argument 1: cannot convert from ‘Microsoft.Xna.Framework.GameWindow’ to ‘Android.Views.View’
If this is an easy fix from my end then I’ll give it a go. Otherwise, no problem, I can wait till the next MonoGame release.