- Справка баннеры
- Переименованные типы кодов
- HTML-Banner (HTML5)
- HTML-Fullsreen
- Flash banner
- Synchronized flash banners
- ScreenGlide
- FullScreen
- Expandable
- TopLine
- PeelDown
- Hatchet
- BackGround
- ScreenGlideClick
- ExpandableClick
- Expandable “Hatchet”
- Polite banner
- Pop-Under (Pop-Up)
- XML-banner
- MPU banners
- Rich-media
- Flash banner preparation for further AdRiver pixel insertion
- Video banner
- TopLine с растягивающимся Flash-роликом на коде extension
- TopLine с отдельными элеменатми на коде extension
- TopLine на коде poster
- TopLine на коде AjaxJS
- Rich-media на коде AjaxJS
- Slider
- MediaText (Комод) на коде html240x400
- PictContext на коде AjaxJS
- HTML-баннер на коде HTML 728×90
- HTML-баннер на коде AjaxJS
- Пример реализации дублирования баннера
- ExpandableMove на коде extension
- ExpandableMove на коде poster
- ExpandableMove на коде AjaxJS
- Expandable на коде AjaxJS
- ScreenGlide на коде AjaxJS
- ScreenGlideMove на коде AjaxJS
- ExpandableScreenGlide на коде AjaxJS
- ExpandableScreenGlideMove на коде AjaxJS
- Текстовый блок
- Баннер нестандартного размера
- Форма в HTML-баннере
- Тизерный блок
- LinkContext
- Графический баннер
- Общие технические требования к баннерам
- CatFish
- Slider
- Пример баннера HTML-FullScreen
- Пример HTML MPU баннера, раскрывающегося при наведении, закрывающегося по клику
- Пример HTML MPU баннера с большой панелью, раскрывающейся на 100% экрана
- Варианты снижения расхождений вызова кода ajax с системами веб-аналитики
- Доп. возможности баннеров
- Спецификации
- Видео VAST VPAID
- Видео VAST
- HTML-баннер (HTML5)
- CatFish
- HTML-FullScreen
- Click BackGround
- Брендирование
- Native Video
- HTML MPU
- Топор
- TopLine
- Expandable
- Rich-media
- BackGround
- ExpandableClick
- PictContext
- MediaText (Комод)
- ScreenGlide
- Баннер нестандартного размера
- ScreenGlideClick
- ScreenGlideMove
- ExpandableMove
- ExpandableScreenGlideMove
- XML-баннер
- ExpandableScreenGlide
- Текстово-графический блок
- Тизерный блок
- LinkContext
- Графический баннер
- Слайдер
- Аудио-баннер DAAST
- Баннер по положению устройства
- Примеры баннеров
- Пример баннера HTML-FullScreen
- Пример баннера HTML
- Пример баннера CatFish
- Пример баннера Click BackGround
- Пример баннера Брендирование
- Пример баннера HTML MPU
- Пример баннера Топор
- Пример баннера Native Video
- Пример баннера TopLine
- Пример баннера VAST
- Пример баннера VAST VPAID
- Пример баннера Expandable
- Пример баннера Rich-Media
- Пример баннера BackGround
- Пример баннера ExpandableClick
- Пример баннера PictContext
- Пример баннера MediaText (Комод)
- Пример баннера ScreenGlide
- Пример баннера нестандартного размера
- Пример баннера ScreenGlideClick
- Пример баннера ScreenGlideMove
- Пример баннера ExpandableMove
- Пример баннера ExpandableScreenGlideMove
- Пример баннера ExpandableScreenGlide
- Пример баннера Текстово-графический блок
- Пример баннера LinkContext
- Пример графического баннера
- Пример баннера Слайдер
- Пример баннера по положению устройства
- Пример баннера Тизерный блок
- Устаревшие форматы
- Спецификации устаревших форматов
- Мультипанельные баннеры (MPU, FlyScreen, OverLay)
- SideKick
- ShowCase
- MenuOverlay
- Видеобаннер
- Радиобаннер
- FlashFull
- Баннер в приложении для iPhone/iPad
- MultiScreen
- Сессионный Poster
- Minisite
- MPU-баннер, меняющий фон страницы
- Баннер наблюдатель
- SideKick из Rich-Media
- Баннер, ведущий на разные страницы в зависимости от геозоны
- Flash-баннер
- PoliteBanner
- Pop-Under (Pop-Up)
- Топор с расхлопом
- BackOver
- PeelDown (уголок)
- FullScreen
- Инструменты
- Функциональности устаревших форматов
- Flash-AjaxJS
- Flash468x60
- Pop-Under на коде JavaScript
- Pop-Under на коде AjaxJS
- Топор с расхлопом на коде JavaScript
- PeelDown на коде JavaScript
- PeelDown на коде AjaxJS
- FullScreen на коде AjaxJS
- SideKick на коде AjaxJS
- Видеобаннер на коде flash 240×400
- FlashFull на коде AjaxJS
- Топор с расхлопом на коде ajax
- MultiScreen
- Баннер наблюдатель
- FullScreen на коде extension
- Примеры устаревших форматов
- Пример баннера Сессионный Poster
- Пример MPU-баннера, меняющего фон страницы
- Пример баннера-наблюдателя
- Пример баннера, ведущего на разные страницы в зависимости от геозоны
- Пример Flash-баннера
- Пример баннера Pop-Under (Pop-Up)
- Пример баннера Топор с расхлопом
- Пример баннера FullScreen
- Пример мультипанельного баннера (MPU, FlySreen, Overlay)
- Пример баннера SideKick
- Пример баннера ShowCase
- Пример баннера MenuOverlay
- Пример видеобаннера
- Пример радиобаннера
- Пример баннера FlashFull
- Пример баннера PeelDown (уголок)
- AdRiver Creative Toolkit
- Спецификации устаревших форматов
HTML-Banner (HTML5)
1. Banner summary
Description: banner with integrated graphics, animation, HTML-forms, several links.
Code type: IFrame, Poster, Ajax, Extension.
Examples: HTML-banner on Ajax code, HTML-banner on HTML 728×90 code.
Details: HTML-banners can be used to implement animation and different methods of interaction with a user. Usually HTML-banner consists of several objects – image files, scripts, .html files. For example, there can be several different links in one banner, and depending on which one a visitor clicks, he will be redirected to a different web-page.
If a banner should be shown only after a user scrolls down to its placement, you can use special Ajax code or Poster code. In other cases we recommend to use standard Ajax and Extension codes.
2. How to prepare a banner
Prepare HTML-code for a banner. It can be any HTML-code, including HTML5, which represents standard HTML-layout. Code can contain CSS styles and JavaScript. We recommend placing CSS and JavaScript blocks inside HTML-code of your banner. However you can still use separate files, if it is necessary.
Note: if you are using relative paths to banner files, all files should be placed in the same folder as the main HTML-file of the banner. There should not be separate folders for images, scripts and media files. All file names should contain only English letters, numbers or the underscore character and should not contain spaces, quotes, the dash character or any other special characters.
3. How to register clicks in a banner
3.1. Standard HTML-creatives
In HTML-banners clicks are not being registered by default. To realize click registration, the file index.html (main file of HTML-banner) should be modified according the following instruction:
- Open index.html file with a text editor. Include html.js file in the script tags:
<script src="/html.js"></script>
If the banner is located on external server and will not be downloaded in AdRiver, specify the full path to html.js file:
<script src="//content.adriver.ru/html.js"></script>
Note: you don’t have to download or create html.js file by yourself. This plugin is stored on AdRiver servers and you only have to include it in the script tags correctly.
- To redirect a user and register a click call ar_callLink() function. If a function is called without parameters, the user will be redirected to URL, which was specified when the banner was added in AdRiver system. Function can take object parameter. Properties that can be specified:
- target – can be _blank, _top or _self and specifies whether the link should be opened in a new window, in the current window or in the banner iframe
- other – is a string, which specifies the alternative URL on which a user should be redirected
- event – event object (click, mousedown etc.). If event object is passed, into the click link will be added coordinates of the click inside the banner iframe
All properties are optional.
ar_callLink can be called on any event for any tag in the banner code, for example:
<div class="button" onclick="return ar_callLink({target: '_blank', other: '//ya.ru', event: event});">Visit site</div>
3.2. HTML-banners created by Swiffy Converter
3.2.1. Banners with one link
The following solution assumes that the converted Flash banner was prepared in accordance with common requirements for banners in AdRiver and contained the variable link1.
- Open HTML-file created by Swiffy Converter with a text editor
- Include html.js file:
<script src="/html.js"></script>
If the banner is located on external server and will not be downloaded in AdRiver, specify the full path to html.js file:
<script src="//content.adriver.ru/html.js"></script>
Note: you don’t have to download or create html.js file by yourself. This plugin is stored on AdRiver servers and you only have to include it in the script tags correctly. It is not recommended to specify the protocol precisely. Characters // allow to determine the protocol automatically.
- Declare the variable named link1 as follows:
var link1 = encodeURIComponent(ar_redirect);
- After calling stage.start() function insert the code specified below:
stage.setFlashVars('link1='+link1);
3.2.2. Banners with several links
This solution assumes that the following requirements were met before convertion:
- Flash banner was prepared in accordance with common requirements for banners in AdRiver
- Each link had its own click-area (button)
- For each link its own variable link1, link2, link3 etc. was used
The example of ready for convertion Flash-banner:
// element button1 on (release) { getURL(_root.link1,"_blank"); } // element button2 on (release) { getURL(_root.link2,"_blank"); } // element button3 on (release) { getURL(_root.link3,"_blank"); }
- Open HTML-file created by Swiffy Converter with a text editor
- Include html.js file:
<script src="/html.js"></script>
If the banner is located on external server and will not be downloaded in AdRiver, specify the full path to html.js file:
<script src="//content.adriver.ru/html.js"></script>
Note: you don’t have to download or create html.js file by yourself. This plugin is stored on AdRiver servers and you only have to include it in the script tags correctly. It is not recommended to specify the protocol precisely. Characters // allow to determine the protocol automatically.
- Declare the variables named link1…linkN as follows (where N is the number of links):
var link1 = encodeURIComponent(ar_redirect + encodeURIComponent("http://url1")); var link2 = encodeURIComponent(ar_redirect + encodeURIComponent("http://url2")); ... var linkN = encodeURIComponent(ar_redirect + encodeURIComponent("http://urlN"));
- After calling stage.start() function insert the code specified below:
stage.setFlashVars('link1='+link1); stage.setFlashVars('link2='+link2); ... stage.setFlashVars('linkN='+linkN);
4. Banner requirements
All file names should contain only English letters, numbers or the underscore character and should not contain spaces, quotes, the dash character or any other special characters.
File size restrictions:
- simple graphic files (png, jpg, jpeg) – 600 Kb
- swf files – 600 Kb
- other file types – 600 Kb
- banners consisting of several files – 600 Kb for each file
If file size exceeds these limitations, banner can be loaded to an external server. In this case when adding a new banner in AdRiver system, a user should specify the full path to the main banner file in a special field – “Расположение на стороннем сервере” ( location on an external server). For HTML-banner it is path to index.html file for Iframe code, path to script.js file for banners on Poster/Extension/Ajax codes. All banner files should be located in one folder.
It is possible to increase file size limits, if banner can’t be hosted on external server. This additional service must be agreed with sales and support departments.