HTML5 banner requirements
The archive will ignore the contents of the __MACOSX folder andDS_Store and Thumbs.db files. These are the operating system's auxiliary files and are not necessary for the banner to work.
The following banner sizes are allowed: 160×600, 240×400, 240×600, 300×250, 300×300, 300×500, 300×600, 320×50, 320×100, 320×480, 336×280, 480×320, 728×90, 970×250, 1000×120. Specify the banner size in the
<meta name="ad.size" content="width=300,height=250">
When a user clicks on the banner, the page indicated in the Link to site field or a Turbo page opens. Calls to the
yandexHTML5BannerApi.getClickNum(1) method should generate click-throughs to that page in the banner.
<a id="click_area" href="#" target="_blank">...</a> // after the "<a href ...></a>" element // we assign to it the href attribute as follows: <script> document.getElementById("click_area").href = yandexHTML5BannerApi.getClickURLNum(1); </script>
All links in the banner should be related and lead to different files from the archive.
HTML5 banners must meet Yandex.Direct rules:
Don't use rapidly moving and flashing graphical elements and flickering backgrounds. The time it takes to switch between frames of animation should be sufficient to read all of the text shown on that frame.
The advertised site must open in a new window (and only open after a user clicks on the HTML5 banner).
HTML5 banners should display correctly and work the same way for all users on all platforms throughout the ad campaign in the following browsers: Yandex.Browser 14 and higher, Google Chrome 14 and higher, Mozilla Firefox 14 and higher, Opera 14 and higher, Internet Explorer 9 and higher, and Microsoft Edge.
In HTML5, you can't use video or audio clips, script behavior that is annoying or malicious (for example, scripts that launch pop-ups, spoof IP addresses, etc.), browser extensions or plugins (Adobe Flash, etc.). The banner source code should not be obfuscated, meaning it should not be difficult to analyze.
HTML5 banners must meet processor utilization requirements.
A computer with Intel Core 2 Duo P9600 2.53 GHz CPU, 2 GB of RAM, 64-800 MB of video memory, and the 64-bit version of Windows 7 Professional is used to test CPU utilization. A single page containing only the banner under testing is loaded. The banner shouldn't utilize more than 50% of the CPU over a measurable time period (a fraction of a second) or more than 70% of the CPU at any given moment. The Task Manager is used to measure CPU utilization.