0 Favourites

How do I avoid banner ads overlapping the game area?

  • Hi all!

    I've finally managed/struggled to get ads up using cJS and Mopub - yay!

    I've specified banner ads to be 320wide x 50high, to be shown bottom centre. However, my banner ads, when they do appear, are covering the game area. I tried to fix this by having a black bar 50pix high located at the bottom permanently, and locating whatever game elements that go along the bottom of the screen to the top of this black bar.

    Although the ad height and black bar heights match (in theory), when I preview on several devices, the ads appear taller than the black bar. What gives? Any ideas of how I can get the heights to match after cJS does it's scaling? Or any ideas of how to resize the game area whenever banner ads appear?

    Lots of thanks in advance!

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread sticky
763 305,625
asikanddestroy's avatar
asikanddestroy
Unread hot topic
232 177,666
Tetriser's avatar
Tetriser
Unread hot topic
203 18,494
Lumicreative's avatar
Lumicreative