bannersbox.ru
gradient
quick transition to the banner's automatic technical description page quick transition to banner preview page quick transition to the page for generating a stub from a zip banner Quickly go to the page for converting webp to png images quick transition to the page with presets for Animate Added section for automatic conversion of webp images to png.
social media icon
  • Main / List of articles / Preparation of banners for technical requirements Yandex.

    Preparation of banners for technical requirements Yandex.

    In this article the algorithm will be given how to prepare a html5 banner, made on Adobe Animate, for technical requirements of( further on TT) Yandex.

    What we need:

    1. The animated banner assembled in Adobe Animate CC.
    2. Yandex technical requirements https://yandex.ru/adv/requirements/html5
    3. The Notepad or the programme for html code correction ( in my case it’s Notepad++)

    Adobe Animate aAfter the animation is fully completed it’s important to publish the banner correctly.Screenshorts with publication settings «Publish Settings» in Adobe Animate are given below.

    What you should pay attention to: in the file tab «Basic» you should check that the banner title doesn’t contain any Russian letters, only Latin letters and figures are permitted; the check mark in front of «Export document as texture» is clicked away as well as deselection from folders.

    Screenshot of the Publish Settings tab. Basic tab. Adobe Animate program

    On the file tab «HTML/JS» it’s necessary to tick the check mark in front of Hosted Libraries in order to place the service libraries , to which the banner adresses, on the Adobe server but not in the banner folder.This type of interaction saves the banner weight but some platforms , Mail , for example, prohibit it. Yandex doesn’t prohibit this , so you should tick the check mark.

    Screenshot of the Publish Settings tab. HTML/JS tab. Adobe Animate program

    On the file tab «Image Settings» you should verify the image settings and press «Publish».

    Screenshot of the Publish Settings tab. Image Settings tab. Adobe Animate program

    In the file , where the banner was published, you can see the following:

    the file with the extension .fla - is the banner source and it is needed for the further banner development but you need not send it to the web platform.The rest of files are practically the finished banner.If you have done it correctly after double click on the file with the .html extention your banner should open and play in the browser tab.

    View of a set of files after compiling the html banner source in Adobe Animate

    After that you should manipulate the .html. file .Make the right click on it and open the code in any suitable publisher ( I use Notepad).

    Opening a file using Notepad++

    According to TT Yandex you should write metatags with banner dimensions in the banner code <meta name="ad.size" content="width=240,height=400"> (the hight and the width should meet your banner parametres, if you have got 300 to 600 you should write in the code exactly these figures.)

    You can do it just after the opening tag <head>

    View of the html banner code from the Adobe Animate program. Pointer to meta tag ad.size

    Then we write in the banner code that after the user makes a click the banner is to open the new tab link via the variable click_area:

    <a id="click_area" href="#" target="_blank"> ... </a>

    And add the script:

    <script>
    document.getElementById("click_area").href = yandexHTML5BannerApi.getClickURLNum(1);
    </script>

    You can do it just after the opening tag <body>

    View of the html banner code from the Adobe Animate program. Pointer to technical scripts for the Yandex.ru website

    Then we save the changes, close the Notepad and return into the folder with the banner. We pacr all files except .fla into the zip archive and verify if the archive weight no more then 150 kb, as it satisfies the Yandex requirements.

    In case the archive is overweight you can use the site https:/tinypng.com/ for optimizing of the pictures used in the banner. You should run the images through tinypng and replace them with optimized ones in the same folder, with the same titles ,and then to pack into the archive.

    Packing a set of files into a zip archive

    Further on you can go to the site https://bannersbox.ru/en and make sure that the banner is correctly prepared for the TT Yandex. We can place the zip archive in the load box and get the result:

    Screenshot of the main page of the website bannersbox.ru. Tool for checking html banners for technical compliance with sites

    Now the banner can easily be sent to Yandex for moderation :)

    Return to list of articles...

arrow to go to the top of the page

Checking Adobe Animate / GWD / JPG / GIF / PNG on the website https://bannersbox.ru

Checking banners

for technical compliance with sites