---
metadata:
  - name: generator
    content: Diplodoc Platform v5.55.0
alternate:
  - https://yandex.com/support/partner/en/video/create-instream.md
  - https://yandex.com/support/partner/ru/video/create-instream.md
  - href: en/video/create-instream.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/partner/en/llms.txt

# Creating an InStream ad unit

To create an InStream unit, go to the **InStream units** tab, click **Add a video unit**, and follow these steps:

1. In the **General** tab, fill in these fields:

    - **Resource**: Select the necessary resource from the drop-down list.

    - **Unit position**: Select how you want to serve your video unit:

      - Pre-roll: Before the main content (maximum one unit).
      - Post-roll: After the main content (maximum one unit).
      - Mid-roll: At a specific time during the main content (maximum seven units).
      - Pause-roll: When the Pause button is pressed (maximum one unit).
      - Post-Pause-roll: After the video is unpaused (if the pause duration was 60 seconds or more).
      - In-roll: When a certain point in the video is reached (only supported by the Yandex video player).
    
    - **Playback mode**: Select a playback mode for the mid-roll unit.

    - **Start time of unit relative to content**: Specify the time after which the video in the Mid-roll unit starts playing.

    - **Repeat after**: Specify the time between replays and the number of times the video in the Mid-roll unit will replay. If you want the video to replay indefinitely, select **Repeat indefinitely**.

    - **Content behavior**: Select the Mid-roll unit's behavior relative to the main content.

    - **Maximum number of videos**: Specify the maximum number of videos per ad unit. We recommend setting this parameter to no more than three videos.
    
    - **Maximum length of unit**: Specify the maximum duration per ad unit. The total duration of all videos in an ad unit may be shorter than the specified duration.

       {% note info %}
   
       You can configure the maximum unit duration only if the maximum number of videos is set to `1`.
	
	     If you set a limit of two videos for a 60-second ad unit, only two videos will be played, even if there is remaining time after they finish.
   
       {% endnote %}

    - **Short videos (6 seconds)**: If this option is enabled, an additional six-second video is played before or after the main ad unit. It doesn't count toward the maximum ad unit length or the maximum number of videos.

2. Go to the **Strategy** tab and select a [traffic management strategy](https://yandex.com/support/partner/en/video/strategies.md).
3. Click **Save**.

To display the unit, you need to [integrate video ads](https://yandex.com/support/partner/en/video/video-ads-integration.md) into your resource.

<!-- source: en/_includes/feedback-forms/video-buttons.md -->
## Contact support




<details>
    <summary class="button">Write to WhatsApp</summary>
    <img src="https://yastatic.net/s3/doc-binary/src/support/partner/qr-codes/gr-code-en-new.svg" style="width: 100%; display: block;"/>
    <a href="https://wa.me/74952583554?utm_source=yan&utm_medium=help&utm_campaign=en" style="display: block; text-align: left; margin-left: 18px; color: #5889FF;">Go to WhatsApp</a>
</details>

<details>
    <summary class="button">Write to Telegram</summary>
    <img src="https://yastatic.net/s3/doc-binary/src/support/partner/en/qr-codes/qr-code-en-telegram.svg" style="width: 100%; position: relative; left: -18px; display: block;"/>
    <a href="http://t.me/YanSupport_Bot" style="display: block; text-align: left; margin-left: 18px; color: #5889FF;">Go to Telegram</a>
</details>

<a href="https://yandex.ru/chat?context=%7B%22entrypoint%22%3A%22%7B%5C%22entrypoint%5C%22%3A%5C%22help%5C%22%2C%5C%22a_pagename%5C%22%3A%5C%22partner-en%5C%22%7D%22%7D#/user/00155607-f40f-9af8-7910-84a29fd95914"> <!--ссылка, куда ведет кнопка. Если внутренняя ссылка, пишем без .md и .html --> 
  <span class="button">Write to chat</span> <!--текст на кнопке--> 
</a>


<a href="https://forms.yandex.com/surveys/10016364/?lang=en"> <!--ссылка, куда ведет кнопка. Если внутренняя ссылка, пишем без .md и .html --> 
  <span class="button">Send an email</span> <!--текст на кнопке--> 
</a>



<!-- source: en/_includes/feedback-forms/button-style.md -->

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

<div width="100%" align="center"> 
<br><br>
You can also go to
<br><br>

[![](https://yastatic.net/s3/doc-binary/src/support/mobile-ads/en/logo/rsya.svg)](https://partner.yandex.com)

</div>

<div><br><br></div>
<div class="container" style="padding: 0;">
  <div class="column">
      <p style="font-size: large;">Useful links</p>
      <ul>
         <li><a href="https://t.me/YANpartner/" target="_blank">Yandex Advertising Network Telegram channel</a></li>
         <li><a href="https://yandex.ru/legal/partner/" target="_blank">Rules of participation</a></li>
         <li><a href="https://yandex.com/legal/yan_service_offer/" target="_blank">Yandex Advertising Network Terms of Offer</a></li>
      </ul>
  </div>   
</div>
<div><br><br></div>


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

