Banner ads
Implement banner ads in Unity Exchange, including supported formats, sizes, and best practices for optimal performance.
Read time 1 minuteLast updated 4 hours ago
Unity supports traditional banner sizes for mobile and tablet devices. Banners render in a webview environment that includes MRAID support. The following requirements apply to display banner ad formats:
- All HTML markup must reference externally-hosted assets with an absolute URL path that contains and a domain. Pointing to assets from
https://
or a relative URL path doesn't work.file://
- The tag is supported to load HTML resources. Please note that the click function has the following two formatting recommendations when using the
<iframe>
tag:<iframe>
- Using standard HTML elements (tags) that wrap the content, allowing click events to naturally bubble up through the DOM, or
<a>
- Using the method to leverage the available MRAID interface to enable proper communication with the Unity Ads SDK container.
mraid.open()
Banner size and responsiveness
Banner placements are not full screen, but they are responsive to device type and screen size. The Unity Ads SDK provides appropriately sized ads to fit your banner placement, such as:- 320 x 50 pixels (traditional banner size) for mobile or tablet devices
- 728 x 90 pixels for tablet devices
- 450 x 450 pixels
- 300 x 300 pixels
- 300 x 250 pixels
Open Measurement
Unity supports Open Measurement (OM) third-party code with your ad content. To implement OM code in your ad content, include the verification script in the HTML code. For example:<a href="https://click-link-with-tracking.com/click?with-click-information"><img src="https://host-url.com/display/ad_image.fig" width="320" height="480"></a><img height="1" width="1" src="https://impression-tracking.com/pixel?id=1234"> <script src=”https://verification.com/omid_verification.js”></script>