# MRAID specifications and guidelines

> Adhere to MRAID specifications and best practices to ensure your rich media creatives function correctly across mobile environments.

ironSource supports the [MRAID 2.0 Protocol](https://iabtechlab.com/wp-content/uploads/2016/02/IAB_MRAID_v2_FINAL.pdf).

## Ad specifications for ironSource

* All assets + code downloaded to the device must be up to 4MB max.
* Ads should support both landscape and portrait orientations (recommended).
* The ad must include a loading screen while the ad is loading.
* No 3rd party real time blocking pixels allowed (IAS, DV, etc).
* ironSource will render the timer and the close button. Don't add your own.
* Do not access the top window object (will cause an error).
* The creative needs to autoplay (no user interaction needed).
* All URLs within the ad must be secured (For example, the correct notation is: `HTTPS://`, and the is incorrect notation is: `HTTP://`).

## MRAID tag specifications for ironSource

* To redirect a user on click, use `mraid.open(URL STRING)`.
* In order to get the size of the ad, you must use `mraid.getMaxSize()`. Don't get the size from anywhere else.
* MRAID tag should not be full HTML document but snippets of raw HTML (or JS) code.
* All references to external assets must be absolute URLs instead of relative URLs and HTTPS instead of HTTP.
* Tag must not include single-line HTML comments.
