Hi guys,
Do you still need some help? I’ve thought about writing a little guide for setting up ads in wp8…
Hi guys,
Do you still need some help? I’ve thought about writing a little guide for setting up ads in wp8…
that would be great. if you want you can piggy back on my app and document. the PDF is in the zip file, but i can shoot you the Word docx file if you want.
tis would be very useful, It took me a few hours to get to grips with it.
Just need to sort out interstitials now.
If it could be done without a framework also it would be most helpful. I dont use composer or SB I prefer to take care of stuff myself, but whatever you can offer would be cool.
Are interstitial ads full page ads ? so then they are different than the normal windows 8.1 ads?
Are you going to do a tutorial on adding interstitial ads?
Larry
Yeah I will, just haven’t found the time yet. Hoping to put something together today
Okay, I’ve completed the tutorial! You can find it here: http://www.spacewolfsoftware.com/blog/tutorial-add-admob-interstitial-ads-to-your-corona-windows-phone-8-app/
wonderful thanks so much.
I updated the url now because I switched to wordpress. Also polished up the post so its formatted better and more detailed.
I have just successfully got admob interstitial working. Its a little buggy though.
BTW I have tried some ad methods.
I cant figure out Admob banner yet as the guide Google gives seems incorrect as it asks to look for an adView in the toolbox and its not there or doesnt seem to be included in the latest dll. I will come back to this later.
Admob Interstitial work but they seem to exit the app and not suspend so this is okay on boot but if you fire it up, it will exit and re launch the app. It is the same as if you had “exit on suspend” on the build settings set to true. Admob Interstitial usually suspend on Android but on Windows it exits and relaunches and if you were halfway through gameplay this will obviously reset unless you had some boot check to reload exact status of game (a pain). Anyway this is fine on boot up only.
I have also got Windows pub center ads banner working too. It works pretty well apart form some topics dont seem to fit in the window properly. I have even created more than one instances of a banner.
Hmmm… interesting.
In my testing, I’ve noticed that if you navigate to another XAML page within your own app, it actually “unloads” the previous page and all of its XAML controls, which would include the CoronaPanel XAML control. Our CoronaPanel control is set up to terminate (ie: applicationExit) the Corona runtime when the control has been unloaded. So, I’m thinking that the AdMob interstitial ad must be hosted in its own XAML page. That’s probably what’s going on. The problem is that we need that “Unloaded” event in order to tell if your are backing out of the app or removing the control from the page.
I’ll see about looking into a solution for this next week. Ideally, Corona should not raise an “applicationExit” when navigating to another page, such as an interstitial AdMob ad. (Ideally, Microsfot’s XAML shouldn’t unload the previous page and controls when navigating to another page too, but it is what it is.)
That’s the right thing to do. We’ve designed our CoronaPanel control to be a container for other controls so that we could someday add native TextBox, WebView, Maps, and AdBanner support in the future. Feel free to take advantage of it.
But that said, I’m pretty sure that the AdMob library is display an interstitial ad as a separate page. Which means it doesn’t matter where you position it in your page. I think the position you put it in your page only matters for ad banners.
Also, my understanding is that Microsoft’s interstitial ads are not displayed on a separate page. But I’m guessing that AdMob has much more inventory for different regions which is the advantage on using it.
Sorry. I realised I copied in the windows banner ad markup not the admob one. I will look at this layer and see if I can place the admob one in there. I deleted then realised you had just replied. Sorry
Oh and I mentioned before but I couldn’t see the adView component from google ads.dll file. In the docs you on,y get that control for admob banners, with the interstial I have to “use” the dll and instance the class and invoke it with the id. I can’t do much else with it. I have tried bringing up the ad without creating another class but it doesn’t work so I think it removes itself.
Rob,
We have a new version of CoronaCards that we’ll be sending out soon that resolves the AdMob interstitial ad issue. Corona will now correctly suspend when displaying an interstitial ad and resume (instead of restarting) when backing out of the ad. Thanks for bringing this issue up.
Great news Joshua. This week you lot have added some handy bits and bobs. Nice one!
@doubleslashdesign were you able to get the ad coding working correctly? I’m very interested in seeing the sample code
I was able to get it to working last Monday. I modified Google’s AdMob C# interstitial ad sample project to run Corona and confirmed that it could fetch/display an ad and then resume Corona. You’ll need build #2449 to do it Rob, I hope it worked out for you too.
spacewolf, I was using Google’s AdMob library provided here…
I haven’t used the update yet but I did have admob and windows banners working, it all went rather easily considering I’ve never used visual studio until a month ago I didn’t mind the interstertials only on boot anyway as that’s the important one. I will report back next week when I try a new port.
@spacewolf I did get a simple version of the windows 8 ads working. it was very easy.
I’ll spend some time to get the ad working in my corona sample template, it should be pretty easy.
Luck for me with the new Corona update navigation away and back to the app should be fixed with pause and resume, so this could be pretty cool.
I’ll post the code after I get it working.
Larry