---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.2
alternate:
  - https://yandex.com/support/varioqub/en/create/types/ads.md
  - https://yandex.com/support/varioqub/ru/create/types/ads.md
  - https://yandex.com/support/varioqub/tr/create/types/ads.md
  - href: en/create/types/ads.md
    type: text/markdown
    title: Markdown version
  - href: ../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/support/varioqub/en/llms.txt

# Ad units

<!-- source: en/_includes/ads/ads-blok.md -->
On this tab, you can create an experiment with the placement and format of ad units on your site. If you [connect Varioqub](https://yandex.com/support/varioqub/en/connect.md) (`exp.js`), you can do this without adding the ad unit code (`context.js`).
<!-- endsource: en/_includes/ads/ads-blok.md -->

To learn more, see [Ad experiments](https://yandex.com/support/varioqub/en/ads.md#blocks).

## Experiment type {#type}

Select **Ad units**.

## Setting up page variants {#setting}

1. If you want to test several variants of text or design, click **Add variant**. This will add another variant for you to set up within your experiment. The variants will change during the experiment.

1. Set up the variants. You may skip setting up the control variant.

    <!-- source: en/_includes/ads/ad-types.md -->
    1. Select the ad unit type:

        - **Interstitial**: Displayed in full screen. Create a separate unit for each site version.

        - **Top Ad**: Stays fixed at the top of the screen, overlapping the site content. Only works in the mobile site version.

        - **Floor Ad**: Stays fixed at the bottom of the screen, overlapping the site content. Create a separate unit for each site version.

        - **In-image**: Displayed over images on the site. The same ad unit works across all site versions.

            {% cut "In-image unit limitations" %}
            
            In the current version of Varioqub, the following settings aren't used for **In-image** units:

            * **Page limit**

            * **Limitation for images**

            * **Type of integration**

          For more information, see the [In-Image](https://yandex.com/support2/partner/en/web/units/types/in-image) section in the Yandex Advertising Network Help.

            By default, these ad units use **Automatic** integration. Ads appear on all images with a size of at least 320 × 190 pixels.
            
            {% endcut %}

        Following the rules of the Yandex Advertising Network:

        - You can't display both **Top Ad** and **Floor Ad** units on the same page at the same time.

        - **Top Ad** units can only be used on mobile devices.

        See [Unit types](https://yandex.com/support/partner/en/web/units/types/) for more details.

    1. Specify the [blockId](*block-id) for units that you're setting up your experiment for:

        * **Desktop block ID**: For the desktop site version.

        * **Touch block ID**: For the mobile site version.

        {% note warning %}
        
        Make sure that your **In-image** unit has the same `blockId` specified for all site versions.

        {% endnote %}
    <!-- endsource: en/_includes/ads/ad-types.md -->

    To add another ad unit, click **Add advertising**.

1. Click **Save**.

## FAQ and troubleshooting

[I'm trying to create an experiment, but all the fields are locked.](https://yandex.com/support/varioqub/en/faq.md#fields-blocked)

[What if I want to use conditions that are not available in the Varioqub interface?](https://yandex.com/support/varioqub/en/faq.md#custom-condition)

[How do I disable a specific experiment type for an entire site or page?](https://yandex.com/support/varioqub/en/faq.md#disable-experiment-type)

<!-- source: en/_includes/feedback/feedback.md -->
<details>
    <summary class="button">Contact support</summary>
    <div style="padding: 15px;
     margin: 10px 0;
     background: #FFFFFF;
     border-radius: 10px;
     border: 1px solid var(--yc-color-line-generic);">
     <iframe style="background: #FFFFFF;"
        height="700"
        width="100%"
        frameborder="0"
        src="https://forms.yandex.ru/surveys/1705/?iframe=1&lang=en">
    </iframe>
</details>






<!-- endsource: en/_includes/feedback/feedback.md -->

[*block-id]: Ad unit ID in the Yandex Advertising Network formatted as follows: `A-B-123456-78`.