Requirements for banners
You can upload an image banner or HTML5 banner.
Technical requirements for image banners
Size in pixels |
640 × 268 |
Maximum file size |
512 KB |
Format |
JPG, PNG or GIF |
Technical requirements for HTML5 banners
HTML5 banners must be ZIP files that contain one HTML file and JavaScript, JSON, CSS, JPEG, GIF, PNG, or SVG files.
Size in pixels |
640 × 268 |
Maximum archive size |
512 KB |
The archive and files used in the banner must meet the following requirements:
-
The file and directory names can only contain Latin letters, digits, and the characters
-._~
. -
All links in an HTML5 banner must be relative and lead to other files in the archive.
-
The archive can contain up to 20 files. Include source code from JavaScript, CSS, and SVG in the HTML file and combine all bitmaps into a single file (a sprite atlas).
-
The maximum size of the archived
index.html
must be less than 150 KB. -
The contents of the __MACOSX folders and the .DS_Store and Thumbs.db files will be ignored in the archive. These are the operating system's auxiliary files which are not necessary for the HTML5 banner to work.
-
A click on the banner opens the page specified in the Link to site field, the mobile app (if installed), or the app page in the store (if the app is not installed). Banner clicks must open this page by calling the
yandexHTML5BannerApi.getClickURLNum(1)
method.<a id="click_area" href="#" target="_blank">...</a> // после элемента "<a href ...></a>" // присваиваем для него значение атрибута href так: <script> document.getElementById("click_area").href = yandexHTML5BannerApi.getClickURLNum(1); </script>
-
The HTML5 banner size must be specified in the
content
attribute of themeta
tag. See the example below:<meta name="ad.size" content="width=640,height=268">
-
External calls to Yandex-hosted JavaScript libraries are allowed. If an HTML5 banner uses a different library, include it in the archive source code.
-
All event handlers must be specified within the
script
tag. For example:<script> document.onload = init; </script>
-
The link in an HTML5 banner must not exceed 1024 characters and must be UTF-8 encoded.
-
The banner must not use statistics collection tools (pixels, tags, etc.).
When you create a campaign, you can specify a Yandex Audience pixel or ADFOX tag (to learn more, see How to launch a campaign). You can also use UTM tags in the link to your website.
-
A banner can feature the View again button for restarting the scenario.
Check the recommendations for displaying HTML5 banners too.
Moderation requirements
Texts, website, and banner display
Apply standard design, website, and banner display rules. Make sure that you've added all necessary notices and age restrictions.
Banners also can't have a frame or border.
Recommendations for banners.
Prohibited subjects
We do not accept banners in the following categories:
-
politics
-
magic and esotericism
-
religious items and services
-
debt collection services
-
funeral products and services
-
dating websites or marriage agencies
-
social advertising, including charitable organizations
-
services of detectives and private security companies
-
products and services for adults (such as sex toys or erotic materials)
-
firearm accessories
-
products similar in construction to weapons and their accessories
-
military topics (such as transportation of military personnel or legal assistance in obtaining a military ID)
-
website optimization and SEO services
-
disinfection and pest control services
-
certain financial services and training courses on them (microfinancing, loan offers from individuals, binary options, Forex dealer activities, transactions with Forex dealers, and others)
-
other topics that do not comply with Yandex editorial policy
This list is not exhaustive and can be changed by Yandex at any time.
Questions?
Alert
Our customer service department can only help you with the campaigns created under the same username you use to contact us. You can check your username by opening ya.ru in another browser tab. Our team can access your data only when processing your request.