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 / Google Web Designer. Banner preparation according to Yandex technical requirements

    Google Web Designer. Banner preparation according to Yandex technical requirements

    In this article the algorithm will be given how to prepare a html5 banner, made on Google Web Design, for technical requirements of Yandex.

    What we need:

    1. The animated banner assembled in Google Web Design
    2. Technical requirements of Yandex https://yandex.ru/adv/requirements/html5
    3. The Notepad or the programme for html code correction (in my case it’s Notepad++)

    After the animation is fully completed it’s important to publish the banner correctly. Screenshorts with publication settings are given below.

    Screenshot of Google Web Design program. Preparing a banner for publication

    Screenshot of Google Web Design program. Local panel. Setting up file export

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

    View of the folder after exporting a zip archive from Google Web Design

    The finished banner is in the archive. The remaining files are source materials and do not need to be sent to the site. Now you need to prepare a banner according to Yandex technical requirements. To do this, unpack the archive and make small changes to the index.html file.

    Right-click on it and open the code in any convenient editor (I use Notepad).

    Opening an html file using Notepad++

    According to Yandex technical requirements, in the banner code it is necessary to include meta tags with the banner dimensions <meta name="ad.size" content="width=240,height=400"> (the height and width must correspond to the parameters of your banner; if you have 300 by 600, then you need to indicate exactly these values ​​in the code)

    You can do this immediately after the opening tag <head>

    View of the html banner code from the Google Web Design program. Pointer to meta tag ad.size

    Now we tell the banner that when the user clicks, it should open the link in a new tab through a variable click_area:

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

    and add a script:

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

    You can do all this after the opening tag <body>

    View of the html banner code from the Google Web Design program. Pointer to technical scripts for the Yandex.ru website

    Save the changes, close Notepad and return to the folder with the banner. We pack all files into a zip archive and check that the weight of the archive is no more than 150 kb, which meets Yandex requirements.

    If you have exceeded the weight of the archive, you can use the site https:/tinypng.com/ to optimize the images used in the banner. You need to run the images through tinypng and replace the images with optimized ones in the same folder, with the same names, and then pack them into an archive.

    Packing a set of files into a zip archive

    Next, you can go to the https://bannersbox.ru/en website and make sure that the banner is prepared correctly for Yandex technical requirements. We transfer our zip archive to the upload field 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 be safely sent for moderation to Yandex :)

    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