Standard integration

  1. Integrate the Video Ads SDK using the script element in the HTML document header.

    <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
            <script
                 type="text/javascript"
                 charset="utf-8"
                 src="https://yandex.ru/ads/system/adsdk.js"
            ></script>
        </head>
    </html>
    
  2. Connect the AdLoader module using the script element in the HTML document header.

    <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
            <script
                 type="text/javascript"
                 charset="utf-8"
                 src="https://yandex.ru/ads/system/adsdk.js"
            ></script>
                // Module connection
            <script>
                 ya.videoAd.loadModule('AdLoader').then(function(module) {
                 // Code that uses the module
                 });
            </script>
        </head>
    </html>