How do I display Banner ads for phones only and not for tablets?

Not favoritedFavorited Favorited 0 favourites
  • 3 posts
From the Asset Store
[C3] Banner ads, Interstitial ads, Rewared video ads, Rewarded Interstitial Ads
  • Is there any easy way to do this? As width and height of screens could be very different from tablet to tablet

    Thanks!

    Tagged:

  • Is there any easy way to do this? As width and height of screens could be very different from tablet to tablet

    Thanks!

    In this case, it is better to use these expressions

    PlatformInfo.CanvasDeviceHeight/PlatformInfo.CanvasDeviceWidth
    

    to determine the screen resolution on which you want the banner to be displayed, and only display it there.

    I use these expressions to adapt the game interface to tablets and smartphones.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > Is there any easy way to do this? As width and height of screens could be very different from tablet to tablet

    >

    > Thanks!

    In this case, it is better to use these expressions

    > PlatformInfo.CanvasDeviceHeight/PlatformInfo.CanvasDeviceWidth
    

    to determine the screen resolution on which you want the banner to be displayed, and only display it there.

    I use these expressions to adapt the game interface to tablets and smartphones.

    Perfect! Thanks again :)

Jump to:
Active Users
There are 0 visitors browsing this topic (0 users and 0 guests)