Monetization with the Yandex Advertising Network

Initial settings

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

Note

Mandatory conditions for placing Yandex Advertising Network units:

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

Creating ad 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 Yandex Advertising Network ad 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 ad 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. For more information, see Yandex Advertising Network Help.

Deleting (archiving) ad 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 Yandex Advertising Network 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:

  • A unit blends seamlessly into the width: in the mobile version it corresponds to the width of the content or 100% of the screen, and in the desktop version, it's placed on the side panels to the right and left of the content.
  • An ad unit has a dynamic height and fits in a vertical container (the width is less than the height), which determines the adaptability of ads.

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 ad units are displayed correctly and have a minimum impact on the user's perception of a site, follow these recommendations:

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

    • Don't add adaptive ads to the first screen. When absolutely necessary, place an ad at the bottom of the screen so that the ad unit ends outside the viewable 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.
  • The width of an adaptive unit should correspond to the width of the content in the layout (its width 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. For more information about unit height limits, see Yandex Advertising Network Help.

  • Set the minimum unit height using the min-height parameter in the code. This will prevent content from shifting when displaying adaptive ads, minimizing 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. For more information about unit height limits, see Yandex Advertising Network Help.

  • Set the minimum unit height using the min-height parameter in the code. This will prevent content from shifting when displaying adaptive ads, minimizing 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>
    

Contact support

Send an email