Ok, I managed to get it (somewhat) working. This is my findings, but since I'm no specialist, I may be missing something:
The bad news: As PubCenter, this sdk is all c#. The monkey winrt solution is divided into two projects: MonkeyGame in c#, which is basic a xaml view and MonkeyGame.PhoneComponent, where the actual game is.
The SDK and the adview goes into the c# project... which your game, in the c project has no access. So you can display ads, but you can't control them - once on screen, they'll stay there - you can't hide it, or reload it.
Also, I found a bug: in Landscape view, I don't remember now if it was LandscapeLeft or LandscapeRight, the ad appears "mirrored" and upside down. Don't know if this is some problem with admob SDK, or if it is on Monkey side.
If you want to try yourself, just import the admob dll into the "MonkeyGame" project, and on MainPage.xaml.cs, after InitializeComponent() add this:
It's important to have the try/catch otherwise if you're not connected your game will crash.
|