Monetization with the Yandex Advertising Network

Available products

You can activate the following products in Adfox:

Banner advertising: These are display ads on sites (including on desktop and mobile versions, as well as on AMP pages) that are bought by the Yandex Advertising Network through a public auction.

Video advertising: These are video ads that can be embedded in a site's content or a video player and are bought by the Yandex Advertising Network through a public auction. You can connect InStream video blocks to your account.

Mobile advertising: These are ads in mobile apps that are bought by the Yandex Advertising Network through a public auction.

Initial settings

Before connecting the Yandex Advertising Network (YAN) to Adfox, you need to add your site in the YAN interface. Once added, the resource is automatically sent for moderation.

Note

Mandatory conditions for placing YAN units:

After your resource passes moderation in the Yandex Advertising Network, you can connect the Yandex Advertising Network to Adfox.

Creating units

  1. Go to Monetization → Display Advertising and select the placement that you want to link your Yandex Advertising Network unit to:

    • The placement in all sections — find the line with the desired placement (determined by the banner type and location). The unit will be linked to the placement in all sections where it's created. You can disable some sections. Hover over the placement and click 2023-06-21_11-07-47 in the YAN block ID column.
    • Placement in one section: click Show sections to the right of the list of placements. You'll see the names of the sections where there's a placement. Hover over the selected section and click 2023-06-21_11-07-47 in the YAN block ID column.
  2. Select a site in the Yandex Advertising Network that you need to create a unit for and click Select. A Yandex Advertising Network unit is created on the site for Adfox.

    Alert

    You can only create ad units through the Adfox interface. You can't link an existing YAN unit to a placement in Adfox.

    You can also create Yandex Advertising Network units for sites with the AMP banner type. They're created and set up in the same way as on other sites.

    If there is no suitable site in the menu, click Create a new platform in the Yandex Advertising Network and follow the system instructions. For more information, see Yandex Advertising Network Help.

  3. The Yandex Advertising Network interface opens. Select the ad unit type and, if necessary, configure the formats. Click Create.

  4. After saving the ad unit, you'll see its ID in the Adfox interface, in the YAN block ID field. This means that the Yandex Advertising Network is connected to the Adfox placement.

Editing units

There are two ways to edit a unit:

  • In the Adfox interface. To do this, go to Monetization → Display Advertising and click 2023-06-21_10-36-44 next to the desired unit.
  • In the Yandex Advertising Network interface. To learn more, see Yandex Advertising Network Help.

Deleting (archiving) units

You can only delete (archive) a Yandex Advertising Network unit in the Adfox interface. To do this, go to Monetization → Display Advertising and click 2023-06-21_10-36-44 next to the desired unit.

In this case:

  • The YAN unit placement is removed from the Adfox site.
  • The unit is archived in the Yandex Advertising Network interface.
  • Statistics for the unit remain available.

Adaptive unit placement

The display of Yandex adaptive ads requires special settings of the unit and container that this unit belongs to. Below we'll tell you what adaptive ads on Yandex are and how to place them properly on a site.

Ad adaptability is the property of an ad unit to change its size depending on its content and container parameters. A unit usually occupies the entire width of a container, and its height is determined by both the height of the container and the design of the ad and the number of elements. This lets you display video ads and images without cropping them, and flexibly combine ad elements depending on the user.

The larger the size range that a container provides to a unit, the more adaptive an ad will be. This way you can display ads of different sizes for different devices and avoid inconsistencies between the size of an ad and the size of the screen.

Basic criteria for adaptive ads on Yandex:

  • The ad unit fits the width organically: it should align with the width of the ad or the full screen width for mobile versions and be placed on side panels to the right or left of the main content for desktop versions.
  • The ad block has a non-fixed (dynamic) height and fit a vertical container (its width is smaller than its height). This is what determines the ad's adaptability.

Please note that adaptive ads may cause content to shift when loading the page. Below are recommendations on how to properly place and set up an ad unit to minimize the impact of adaptive ads on the user experience, including the CLS metric.

Recommendations for using adaptive units

To ensure that adaptive units are displayed correctly and don't affect the user's impression of the website, please follow these recommendations:

  • Place adaptive ads where they're less likely to cause content to shift:

    • Don't add adaptive ads to the first screen. If you have to, place it at the bottom of the screen, so that the ad block ends outside the visible area. We recommend installing adaptive units on the second and subsequent screens.
    • Don't add adaptive ads above the page header. In this case, use fixed containers.
  • An adaptive unit's width should match the width of the content in the site layout (please note that the width of the content in the site layout should be close to 100%).

  • Don't fix the height of adaptive units. Set the max-height parameter in the unit code to at least 70 vh and no more than 90 vh. This will help you avoid situations when adaptive ads exceed the screen height or are greatly reduced on large displays. Learn more about unit height limits in the YAN Help.

  • Set the minimum unit height using the min-height parameter in the code. This will prevent content shifting when adaptive ads load and minimize their impact on your site's CLS.

    Use CSS styles to set the height to 0 and free up space on the page when there are no ads in the container.

    Sample style for setting the height of an empty container to 0
    <style>
    #adfox_123456789123456:empty{
    min-height: 0!important;
    }
    </style>
    <div id="adfox_123456789123456" style="min-height: 100px;"></div>
    
  • Place adaptive ads where they're less likely to cause content to shift:

    • Don't add adaptive ads to the first screen of a site page. We recommend placing ad units on the second and subsequent screens to the left or right of the content.
    • Don't insert adaptive ads above the page header and in the middle of the content. In this case, use fixed containers.
  • Use adaptive height for units with a width of no more than 400 px.

  • Don't fix the height of adaptive units. Set the max-height parameter in the unit code to at least 40 vh and no more than 60 vh. This will help you avoid situations when adaptive ads exceed the screen height or are greatly reduced on large displays. Learn more about unit height limits in the YAN Help.

  • Set the minimum unit height using the min-height parameter in the code. This will prevent content shifting when adaptive ads load and minimize their impact on your site's CLS.

    Use CSS styles to set the height to 0 and free up space on the page when there are no ads in the container.

    Sample style for setting the height of an empty container to 0
    <style>
    #adfox_123456789123456:empty{
    min-height: 0!important;
    }
    </style>
    <div id="adfox_123456789123456" style="min-height: 100px;"></div>
    

Video monetization

To configure video ads, go to the Monetization → Video Advertising tab.

You can enable InStream video ads in your account.

Banner types and placements

Create new banner types or enable Video for your existing banner types. To do this:

  1. Select Settings → Banner types → Custom → XML.
  2. Create new InStream banner types and enable the Video option.

Next, create placements with these banner types.

Note

You can disable the Video property for a banner type: then placements with ad units will be removed from the monetization placement.

Learn more

Contact support

Send an email

Impressions are put up for sale for all DSP systems and advertisers taking part in the auction.

Video ads (pre-roll, pause-roll, post-roll, and mid-roll) in a player with custom video content.