[XNA] Ad not shown on first call only

Oct 26, 2012 at 8:26 AM

Hi all,

In my XNA game I put adRotator in the screen game only. At first run, when shows the game screen the ad control is initialized correctly but it not shows, if I go back in menu screen and return in game screen or from game screen I go in options menu and go back then the adRotator go visible always.

The issue is on its first show only and I don't understand where's the problem in code.

I use Invalidate() method with Visible and IsEnabled properties.

Please, can someone help me?

Thanks in advance




Oct 26, 2012 at 9:09 AM

Have you compared your implementation to the Starter kits and followed the instructions in the blog tutorials?

If you launch the Starter kits they have no issues.

Oct 26, 2012 at 9:19 AM

Oh yes, but the starter kits implement the adRotator in a game class only, in a real project this is not possible always, I took the game class reference and I initialized the adRotator in a Screen class where it must visible.


Oct 26, 2012 at 11:57 AM

There Starter 3D project both use a Full GSM in pure XNA and SolverXNA.  bets to look there.