Top stretching banner

A top stretching banner is a stripe banner that shows an image or an HTML creative. It's designed to be placed at the top of a page above all of site content.

The banner isn't fixed. When the user scrolls the page, the banner is scrolled along with the main site content.

Tip

We recommend placing this banner above all the content on top of the page, after the <body> tag. The banner automatically adds margins before the main content without overlaying it.

Format advantages

  • It creates an additional placement without the need to allocate a large area for ads in the site's layout.

  • It's easy to design and place: you can create a banner from a static image and fill its container's background with the color that dominates in the image.

Sample banner

Image requirements

  • Use high-resolution images. This substantially improves banner quality on mobile devices, even though the banner will load slower.
  • The format stretches and takes up the entire width of the screen, so place the elements of the ad creative in the center of the banner.
  • We recommend compressing the image file using a service like TinyPNG. This service works with both PNGs and JPEGs.
  • Acceptable image formats: JPEG, JPG, WEBP, PNG, and GIF.
  • Maximum file size: 10 MB.

Add a banner to Adfox

Step 1. Add a template and create a placement

  1. Go to Settings → Banner types and select a group of types:

    • Predefined → Nondimensional to use a predefined banner type.

    • Custom → Nondimensional to create a custom banner type.

  2. Select the desired type or create a new one. Next, on the banner type page, go to the Templates tab and click + Use preset. Select the Banner Row [context] template from the list.

  3. Once you've added the template to the banner type, create a placement with the selected banner type.

Step 2. Add a banner

  1. Create a campaign or select an existing one and proceed to creating a banner.

  2. Choose the appropriate banner type and template Banner Row [context].

  3. Set the banner parameters:

    Parameter

    Description

    Link TARGET

    Determines the window where the link opens:

    • _top: Current window.
    • _blank: New window or tab, depending on the browser settings.

    Tracking pixel link

    By default, the Adfox //banners.adfox.ru/transparent.gif pixel is used. If you want to count impressions in a third-party system, delete the Adfox pixel and provide a different link.

    Transition URL

    Link to the advertiser's site. For the click-through to work correctly, make sure that the link includes the protocol (http:// or https://).

    HTML5 code of the creative

    Upload a ZIP archive with the project or paste an HTML5 code. Learn more about preparing the code in HTML5 creative requirements.

    Image

    Upload an image or provide a link to a file.

    Image background color

    Container background color. Two formats are allowed: #f0f0f0 or rgba(0,0,0,0.4).

    If the image doesn't stretch in width and is static, we recommend that you specify the dominant image color for filling in the container. To make sure the background is homogeneous along the edges, add a color gradient. By default, the banner background is transparent.

    Banner width (in px or 100%)

    Banner width.

    Banner height (in px)

    Banner height.

    Advertising label settings:

    • Ad label
    • Domain

    In the Ad label list, select Ad or Social ad to label the banner. If your ad creative already contains a label, you can leave the Disabled value in the drop-down list.

    Note

    Adding the “Social ad” label doesn't automatically define the creative as social advertising. To label a creative as a social ad (PSA) in the state register, select Social advertising contract with payment or Social advertising contract by quota for the corresponding contract with the end advertiser.

    In the Domain field, specify the advertiser domain, and it will be added to the label: “Ad | example.com” or “Social ad | example.com” (only if the Ad or Social Ad value is selected in the dropdown list).

    Show banner menu

    To add a token to a non-clickable banner, enable the Show banner menu option in the banner settings. When the banner is served, the  menu icon will be displayed in its upper-right corner. When a user clicks the icon, the advertiser's details and the copy token button appear (if ad register is enabled for the banner or a third-party token is specified).

    The banner menu contains a link to the rules for using recommendation technologies. It's required for compliance with Clause 3 of Section 1 of Article 10.2-2 of the Federal Law No. 149-FZ “On information, information technologies, and information protection”, dated July 27, 2006.

    Note

    If the banner is non-clickable (the Transition URL field is empty) and has not been added to the ad register, you can enable the banner menu to make the token available when serving the banner.

    Advertising labeling

    Advertising labeling: This section is only available if you've selected Submit data to state register as a labeling procedure in the campaign settings. Fill in the fields in this section to register the creative in the Yandex advertising data operator. The creative is assigned a token automatically.

    Note

    If the banner isn't to be added to the ad register, select Do not submit data to state register.

Contact support

Send an email