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

# Integrating the InStream video


{% note alert %}

Before setting up Header Bidding, make sure that:
- Each monetizer to be connected has a separate contract for bidding using Header Bidding technology.
- An ad unit is created in the monetizer's personal account.

{% endnote %}


With InStream ads, you can serve video ads that comply with VAST (Video Ad Serving Template) format.

To create new banner types, enable the **Video** property for your existing banner types:

1. Select **Settings** → **Banner types** → **Custom** → **XML**.
1. Create new `InStream` banner types and enable the **Video** option.

Next, create placements with these banner types.


{% note info %}

You can disable the **Video** property for a banner type: then placements with ad units will be removed from the monetization placement.

{% endnote %}



## Available monetizers {#bidders}

Monetizers with InStream video support that can be connected to Adfox ad units using Header Bidding.


{% cut "Yandex Header Bidding monetizers" %}


**Monetizer** | **Monetizer site**
----- | -----
Adlook | [adlook.me](https://adlook.me/)
AdMile | [admile.ru](https://admile.ru/)
A-traffic | [a-traffic.net](https://a-traffic.net/)
Adspector | [adspector.ru](https://adspector.ru/)
Astralab | [astralab.ai](https://www.astralab.ai/)
Between Digital | [betweendigital.com](https://betweendigital.com/)
Bidvol | [bidvol.com](https://bidvol.com/)
Buzzoola | [buzzoola.com](https://www.buzzoola.com/)
Digital Caramel | [digitalcaramel.com](https://digitalcaramel.com/)
Gnezdo | [gnezdo.online](https://gnezdo.online/)
GPMAds | [adtech.gpmsaleshouse.ru](https://adtech.gpmsaleshouse.ru/)
Hyper AdTech | [hyperad.tech](https://hyperad.tech/)
Link | [mobidriven.com](https://mobidriven.com/ssp)
Luxup | [luxupnetwork.com](https://luxupnetwork.com/)
MediaSniper | [mediasniper.ru](https://mediasniper.ru/)
MTS | [marketolog.mts.ru](https://marketolog.mts.ru/)
NEMEDIA | [nemedia.ru](https://nemedia.ru/)
OHMYBID | [ohmy.bid](https://ohmy.bid/)
OTM | [otm-r.com](https://otm-r.com/)
Punch Media | [punchmedia.ru](https://punchmedia.ru)
Roxot | [roxot.com](https://roxot.com)
Sape | [rtb.sape.ru](https://rtb.sape.ru/)
Segmento | [segmento.ru](https://segmento.ru/)
SlickJump | [slickjump.ru](https://slickjump.ru)
SMI2 | [smi2.net](https://smi2.net/)
Soloway | [www.soloway.ru](https://www.soloway.ru/)
Solta | [solta.io](https://solta.io/)
TechDig | [techdig.ru](https://techdig.ru/)
UMG | [umg.team](https://umg.team/)
Upravel | [upravel.com](https://upravel.com/)
Videohead | [videohead.org](https://videohead.org/)
Viqeo | [viqeo.tv](https://viqeo.tv/)


{% endcut %}



{% cut "Adfox HB monetizers" %}


Using Header Bidding technology, an Adfox client who is a site owner can connect to another Adfox client: an impression monetizer. To do this, the client who is the monetizer must become an Adfox HB monetizer. This scheme eliminates code forwarding between accounts as well as adding placeholders and passback tags.

To become an Adfox HB monetizer, contact support. Learn more about the process of connecting and setting up an account in the [Connecting via Adfox HB](https://yandex.com/support/adfox/en/monetization/adfox-hb.md) section.

**Monetizer** | **Monetizer site**
----- | -----
Digital Alliance | [alliance.digital](https://alliance.digital/)
Roden Media | [roden-media.ru](https://roden-media.ru/)



{% endcut %}



## Creating a configuration script {#create}

1. Prepare an ad tag for an ad placement:

    - If you haven't added an ad tag to the site yet, get one by following the [instructions](https://yandex.com/support/adfox/en/ad-inventory/codes/get-code.md#site-code).
    - If the tag is already embedded on the site, take it from the layout.
    
1. Create a script using the [HB configurator](https://adfox.yandex.com/hbConfigurator.php):

    1. Go to **Monetization** → **HB configurator**.
    
        {% note info %}
        
        The configurator is only available if you have campaigns with an external monetizer.
        
        {% endnote %}
    
    1. Click **Add container**. Specify the ID of the container with the video player.
    1. Select the **InStream** ad request type.
    1. Click **Add monetizer**.
    1. Select monetizers with InStream video support and specify their parameters:
    
        - For Yandex Header Bidding monetizers, specify the **Monetizer's placement ID** (`Placement ID`). You can find the `Placement ID` in the monetizer interface.
      
          {% cut "Table with Yandex Header Bidding monetizer data" %}
          
          **Monetizer** | **Monetizer key**
          ----- | -----
          Adlook | adlook
          AdMile | admile
          A-traffic | atraffic
          Adspector | adspector
          Astralab | astralab
          Between Digital | betweenDigital
          Bidvol | bidvol
          Buzzoola | buzzoola
          Digital Caramel | digitalcaramel
          Gnezdo | Gnezdo
          GPMAds | gpmads
          Hyper AdTech | hyper
          Link | link
          Luxup | luxup
          MediaSniper | mediasniper
          MTS | mts
          NEMEDIA | nemedia
          OHMYBID | ohmybid
          OTM | otm
          Punch Media | punchmedia
          Roxot | roxot
          Sape | sape
          Segmento | segmento
          SlickJump | slickjump
          SMI2 | smi2
          Soloway | adriver
          Solta | solta
          TechDig | techdig
          UMG | umg
          Upravel | upravel
          Videohead | videohead
          Viqeo | viqeo
          
          {% endcut %}
      
        - For monetizers working via Adfox HB, get the request string from the monetizer you're connecting and extract `params` from it.
      
          {% cut "Table with Adfox HB monetizer data" %}
          
          **Monetizer** | **Monetizer site**
          ----- | -----
          Digital Alliance | [alliance.digital](https://alliance.digital/)
          Roden Media | [roden-media.ru](https://roden-media.ru/)
          
          {% endcut %}
          
          {% cut "Sample string and code for InStream ads" %}
          
          Request string:
          
          ```
          https://yandex.ru/ads/adfox/270901/getCode?p1=cwdyt&p2=hiuy
          ```
          
          Code:
          
          ```javascript
          params: {
              p1: 'cwdyt',
              p2: 'hiuy'
          }
          ```
          
          {% endcut %}
    
    1. If there are multiple placements on the page, click **Add container**. Specify the ID of the container with the video player.
    1. In the **User Timeout** field, specify the waiting time for a response from the monetizer's server in milliseconds.
    1. The **Trusted Owners** field is optional. If you plan to send bids to other Adfox account requests via the **Wrapper VAST 2.0** template, specify the IDs of the accounts the codes are forwarded from, separated by commas.
    1. Click **Generate**. After the script appears in the field on the right, click **Copy**.
    
1. Place the resulting script on the site.
    
    {% note warning %}
    
    The [ad loader code](https://yandex.com/support/adfox/en/ad-inventory/codes/code-loader.md#js-code) shouldn't be repeated on the page and should be located below the script with Header Bidding settings. This way, the loader can determine that the page contains Header Bidding and identify which ads should wait for bids. If the loader code was installed earlier, delete the extra one.
    
    {% endnote %}
    
1. Enable the Video Ads SDK integration. To learn more, see the [Developer's guide](https://yandex.com/dev/video-sdk/doc/en/sdk-html5/adfox).


{% cut "Example of connecting InStream ads" %}


```html


 

```


{% endcut %}



## Demo pages {#demo-page}

Use the link below to view examples of banners where Header Bidding is used.

[InStream video](https://yandex.ru/project/yan/adfox-specs/header-bidding-examples/adfox-instream-header-bidding)


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


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



<!-- source: en/_includes/styles/button.md -->

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