How to put adsense in my games?

How can I put adsense in my rpg maker MV games? Since it works with HTML5 it would be possible.
There's probably some tutorials about adsense on the internet. Adding it on a game is no different than adding it on a website.
It's possible by editing index.html file.
Would someone like to elaborate? this is very interesting!
I'm not a fan of internet ads, but say your banner or links are embedded above your game in the html, you can resize the play area with
PHP:
window.resizeTo(816, 624 + 100); // 100px or however tall your banner is
And that will only work in the game wrapper. The browser will ignore window.resizeTo unless you first open the game with window.open();

For the record, I won't play any games that have ads, ew.
I'm not a fan of internet ads, but say your banner or links are embedded above your game in the html, you can resize the play area with
PHP:
window.resizeTo(816, 624 + 100); // 100px or however tall your banner is
And that will only work in the game wrapper. The browser will ignore window.resizeTo unless you first open the game with window.open();

For the record, I won't play any games that have ads, ew.

^ What he said. I wouldn't play it either.

Therefore I advise against putting ads in your game.
I'd play it if it's good, but i'd want an option to pay to remove it permanently. Good games are always worth paying for!

I'd preface that though saying not overwhelming ads that pop up and then block parts of the game. One ad, discreetly.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-put-adsense-in-my-games.74912/