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.

  • Mobile advertising: These are ads in mobile apps 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 In-Stream video blocks to your account.

Initial settings

Before connecting the Yandex Advertising Network (YAN) 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 start adding Yandex Advertising Network ad units. To learn more, see Yandex Advertising Network Help.

Connecting the Yandex Advertising Network in monetization settings

  1. Go to Monetization from the main menu and select the Parameters tab.

  2. Select the ad formats you want to monetize through Yandex Advertising Network:

    Format

    Description

    Banner ads

    Static and HTML banners

    In-app advertising

    Banners and interstitial ads for mobile apps

    InStream video advertising

    Pre-roll, mid-roll, post-roll in a video player

    Native advertising and recommendation widget

    Ad units adapted to the site design

If you go to MonetizationPlacements, you can find the necessary sites, sections, and ad formats using filters and set up monetization.

Adding ad units

  1. Go to MonetizationPlacements and find the placement to which you want to add your Yandex Advertising Network ad unit. To make searching easier, click to apply filters.

  2. Click next to the placement name. Then, select Add under Yandex Advertising Network.

  3. Link an ad unit:

    • To link a new ad unit, enable Create a new block in the window that opens. Then:
      1. Select a site for the ad unit — it will be pulled from the Yandex Advertising Network based on the associated username, or you can add a new one.
      2. Enter a name for the ad unit and select its type (all types are available except Rewarded, In-Image, Prebid, and Feed).
    • To link a previously created ad unit, disable the Create a new block option. Find the ad unit by its name or ID and select it.
  4. Save the changes. After saving the ad unit, you'll see its name next to the placement in the Yandex Advertising Network column.

Editing units

There are two ways to edit an ad unit:

  • In the MonetizationPlacements tab. Next to the placement name, click and select Edit under Yandex Advertising Network. Next to the ad unit name, click 2023-06-21_10-36-44. This will open a new window where you can change the settings.
  • In the Yandex Advertising Network interface. To learn more, see Yandex Advertising Network Help.

Deleting ad units

  1. Go to Monetization → Placements.
  2. Next to the placement name, click and select Delete block under Yandex Advertising Network.

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 unit has a dynamic height (it isn't fixed) and fits a vertical container (the width is less than the height), which is what determines ad 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 unit 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 Yandex Advertising Network 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 Yandex Advertising Network 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. The banner types use the XML format and need to be configured in advance according to the instructions below.

To learn more about video advertising, see Yandex Advertising Network Help.

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.

Determines the position and formats of ads on a site page. Learn more