Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Banner Advertisement Sizing

Discussion in 'Unity Ads & User Acquisition' started by constab, Nov 28, 2023.

  1. constab

    constab

    Joined:
    Dec 20, 2019
    Posts:
    6
    Hello everyone,

    I've been working with "Advertisement Legacy 4.4.2" and displaying a banner at the top center of my 2d game. I'm concerned banner could overlap my game's UI. According to the documentation, it states the following:
    "By default, banner ads display anchored on the bottom-center of the screen, supporting 320 x 50 or 728 x 90 pixel resolution."​

    But, I tested on my mobile device (Redmi Note, screen size 1080x2400, 440 dpi), I detected the banner occupying approximately 880x138 pixels. This doesn't match what is written in docs.

    I have a few questions:
    * Why does it happen, and what formula can I use to determine the maximum height of ad block?
    * How can I determine the maximum height of ad? I want to ensure that the advertising block will not overlap UI.
    * Is it normal to use this legacy package, or should I switch to some other? If so, which ones would you recommend?

    Thank you!
    Andrei.
     
  2. constab

    constab

    Joined:
    Dec 20, 2019
    Posts:
    6
    I will answer my own questions.
    * The size is calculated based on coefficient (DPI/160).
    * It's possible to use IronSource instead of Advertisement Legacy.