Configuring Yandex.Direct blocks

To edit added blocks, go to the list of blocks (Products → Direct blocks), find the block you need, and click Edit.

All visual configuration changes take effect automatically (without resetting the website code) within 30 minutes after changes are saved. If a loading method (synchronous/asynchronous) or alternative ad code changes, the website code must be reset manually.

Configuring ad block design

On the Yandex.Direct design tab, you can change the visual design of a block by specifying your own font and frame settings. You can also use the color palette to make color settings (click a color sample next to its 6-digit code). Advertisers' website icons and sitelinks can be enabled or disabled on the Formats tab. In addition, you can enable and disable impressions for ads with images on content sites. All configuration changes will be immediately visible in the test block.

The design of your ad block significantly influences the CTR and, consequently, your site revenue.

Alternative ads

Yandex Advertising Network partners can automatically serve alternative ads (public service ads, their own ads, or contextual or banner ads from other systems) if Yandex.Direct ads were not selected for their site pages. This capability can be especially useful for fixed-format ad blocks.

Enter the code on the Alternative code tab (JavaScript only, no HTML). The portion of the code required for displaying alternative ads will be compiled and added to the ad code automatically. Note that the website code has to be reinstalled manually after saving the block.

Asynchronous ad loading

Asynchronous ad code helps reduce the loading times of pages containing ad blocks.

If standard (synchronous) code is used, the page content and its ad block are loaded sequentially. Asynchronous code lets you load them at the same time. This reduces the total time needed to load the page.

To install asynchronous code, click Get code to go to the Direct embedding code for websites page, then select the option Asynchronous code. Copy the JavaScript code and insert it in the page's HTML (the changes can't be applied automatically).

Insert the following code in the place where the ad block should be displayed:

<div id="yandex_direct_D-A-12345-1"></div>

For the id variable, replace yandex_direct_D-A-12345-1 with a custom ad block ID — the same as in the ad code received in the interface. The ad code from the ad builder should be inserted after this element. For example, it should be inserted at the end of the page's HTML code before the </body> tag or in a separate JavaScript file.

Delayed display of ad blocks

Browsers load a page sequentially. You can place the HTML code of an ad block in any part of a page and it will still be displayed in the place that you consider to be most convenient for users of your site. Use this setting if you would like the ad block to be loaded after the main content of the page is loaded. For example, you can choose to display ads in the upper part of the page and place the ad code at the end of the page's HTML code.

Insert the following code in the place where the ad block should be displayed:

<div id="yandex_direct_D-A-12345-1"></div>

For the id variable, replace yandex_direct_D-A-12345-1 with a custom ad block ID — the same as in the ad code received in the interface. The ad code copied from the ad builder should be inserted after this element, for example, at the end of the page's HTML before the </body> tag.

General settings for content sites

Note that Yandex.Direct ad blocks use the settings that you configured for content sites: