This project is read-only.

Integrate Ads PubCenter in GameScreen class only.

Jan 19, 2012 at 6:23 PM

Hi all,

I need to insert the ads in GameScreen only, but this class has not LoadContent() method because it not derive from Game class.

How can accomplish that?

Thank you






Jan 21, 2012 at 2:03 AM

LoadGraphics is the equivalent of LoadContent inside GameScreen. I do all of the loading in the delegate that is passed to _bgLoader.BeginLoad(), and in there you have access to the GraphicsDevice (device) and ContentManager (c).

Jan 21, 2012 at 3:00 PM

Thank you very much, I resolve it. My issue was the wrong attribution coordinate position shows in this link:

Another question: when I use PubCenter ads in XNA I can set the "Image480_80" only or also "TextAd". If I use "TextAd" the ads rectangle not shows in GameScreen.



Jan 24, 2012 at 12:03 AM

Kafar, this is something you're going to have to experiment with.  You're working with a 3rd party API on top of our engine.  I'd experiment and see where they recommend having stuff load