Anyone knows how to put banner ads at bottom of game?

I have iOS exported game project from cocos creator as the game opens in full screen so placing banner ad view as subview of game view makes banner ad overlay on the game canvas.

I want that banner ad appears separately below the game canvas like shown in following game.

I imagine you will need to modify RootViewController to do this.

In AppController.mm updating bounds.size.height
does the job but in a wrong way

without reducing height

with reducing height it crops the screen size from above (just cut the 100px height rectangle from above) and do not scale the game to provided height…