Get the ad tag

  1. Ad tags from the site level
  2. Ad tags from the placement level
  3. Ad tags from the banner placement level

Ad tags from the site level

You should obtain the site-level ad tag for the ad placement once and install it on all the pages of your site.

Open the Sites tab in the main menu. To get the ad tag, click next to the site name.

Specify the code parameters:

  • Banner type: Must match the banner type specified for the placement that the ad tag is being received for.
  • Position: Must correspond to the position of the placement that the ad tag is being received for.
  • Parameter separator: Select the parameter separator to be used in the ad tag.
  • Code type: Determines how the ad tag works on the page:
    • Asynchronous code: Performs asynchronous banner ad responses.
    • Adaptive: Suitable for sites with an adaptive layout.
  • Number of unrepeatable placements (optional): Specify the number of ad placements on the site page where different banners placed on this placement should be displayed.

    All ad tags to embed on the site will be generated at once, you don't need to make changes to it.

    For each unrepeatable ad tag, a suitable banner is selected and it won't be repeated within a single page load.

    Learn more about unrepeatable banners and campaigns.

  • Add InPage parameters (only for nondimensional banner types): Click it to set the parameters of an InPage video.
    List of parameters
    • The element after which the player must be shown (by default, undefined): A CSS selector that is applied globally (document.querySelectorAll), a calculated list of elements after which the InPage block can be embedded (for example, #article p).
    • Position of the element in the list (by default, 0): The element position in the list, after which the InPage block should be embedded. You can set it as a percentage (of the number of selected elements) or in absolute numbers. For example: 50% or 5. If the absolute number is greater than the length of the list of elements, the block will be inserted as the last element.

      The following settings only apply to direct sale campaigns. The Yandex Advertising Network advertising parameters are set up in the Yandex Advertising Network partner interface. Learn more about enabling Yandex Advertising Network monetization.

    • Does the banner stick (the option is disabled by default): Setting up banner sticking as the page is scrolled.
    • Banner sticking area (by default, auto): Selecting the banner's sticking area:
      • top: When the page is scrolled up, the banner is fixed at the top of the screen. When the page is scrolled down, the banner returns to its original position.
      • bottom: When the page is scrolled down, the banner is fixed at the bottom of the screen. When the page is scrolled up, the banner returns to its original position.
      • bottom-right: When the page is scrolled down, the banner is fixed in the lower-right part of the screen in a separate window. When the page is scrolled up, the banner returns to its original position.
      • bottom-left: When the page is scrolled down, the banner is fixed in the lower-left part of the screen in a separate window. When the page is scrolled up, the banner returns to its original position.
      • top-right: When the page is scrolled up, the banner is fixed in the upper-right part of the screen in a separate window. When the page is scrolled down, the banner returns to its original position.
      • top-left: When the page is scrolled up, the banner is fixed in the upper-left part of the screen in a separate window. When the page is scrolled down, the banner returns to its original position.
      • auto: When the page is scrolled down, the banner is fixed at the bottom of the screen. When the page is scrolled up, the banner is fixed at the top of the screen.
    • Color scheme of the expanded banner (by default, light): Setting the background of the banner's sticking area. Available for the bottom, top, and auto banner sticking methods:
      • light: Light background.
      • dark: Dark background.
    • Video replay: If you want a video to be replayed, manually add the replayMode parameter to the ad tag and set it to auto (automatic video replay) or manual (the player will show a screen with the Replay button).
Note. You can change the values of the id attribute for div and containerId, but they should be the same. They're needed to identify the ad container and ad request, though they don't affect the request itself. Other parameters (owner_id and params) are constant and cannot be changed.

Ad tags from the placement level

The ad tag from the placement level belongs to a specific section of the site. Make sure to embed this tag in the exact site section where you plan to serve ads.

If the site structure or the logic of selling ad placements on the site does not provide for site sectioning, you can use any of the suggested options.

Open the Sites tab in the main menu. Select a site and go to the Sections → Placements tab. To get the ad tag, click next to the desired placement.

In the window that opens, specify the code parameters.

  • Code type: Determines how the code works on the page:
    • Asynchronous code: Performs asynchronous banner ad responses.
    • Adaptive: Suitable for sites with an adaptive layout.
  • Number of unrepeatable placements (optional): Specify the number of ad placements on the site page where different banners placed on this placement should be displayed.

    All ad tags to embed on the site will be generated at once, you don't need to make changes to it.

    For each unrepeatable code, a suitable banner is selected and it won't be repeated within a single page load.

    Learn more about code types.

  • Add InPage parameters (only for nondimensional banner types): Click it to set the parameters of an InPage video. The list of parameters is given in the description of the ad tags from the site level.

Note. You can change the values of the id attribute for div and containerId, but they should be the same. They're needed to identify the ad container and ad request, though they don't affect the request itself. Other parameters (owner_id and params) are constant and cannot be changed.

Parameters that can be set up in the interface (previously, the settings were made in the ad tag parameters):

  • Code type (regular, session on page, unrepeatable banners or campaigns).
  • Impression limits at the placement level.

Ad tags from the banner placement level

Based on the ad tag at the banner placement level, only the banner that the ad tag is received from can be served.

Open the Campaigns tab in the main menu. Select a campaign and go to the Banners → Placement tab. Next to the desired placement, click . In the window that opens, specify the code parameters.

  • Open the link (only for standard banner types): Select where the browser will open the link to the advertiser's site (in a new browser window or in the current one).
  • Parameter separator: Select the parameter separator to be used in the ad tag.
  • Code type: Determines how the code works on the page:

    • Asynchronous code: Performs asynchronous banner ad responses.
    • Adaptive: Suitable for sites with an adaptive layout.

    Learn more about code types.

  • Add InPage parameters (only for nondimensional banner types): Click it to set the parameters of an InPage video. The list of parameters is given in the description of the ad tags from the site level.
Note. You can change the values of the id attribute for div and containerId, but they should be the same. They're needed to identify the ad container and ad request, though they don't affect the request itself. Other parameters (owner_id and params) are constant and cannot be changed.

Contact support