show and hide

How to Show and Hide Adsense Ads from your HTML5 Canvas Game

These days, Google Adsense allows you to show and hide their adds in your dynamic web content using a combination of your HTML5 canvas, javascript, and CSS. Using a couple simple tricks, you can display an advertisement in your games homescreen for example, and then hide it when your user is playing the game. This allows you to use Adsense, but avoid your game becoming too cluttered with ads while still monetizing it.