---
metadata:
  - name: generator
    content: Diplodoc Platform v5.34.3
alternate:
  - https://yandex.com/dev/video-sdk/doc/en/sdk-html5/adfox.md
  - https://yandex.com/dev/video-sdk/doc/ru/sdk-html5/adfox.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/video-sdk/doc/en/llms.txt

# ADFOX integration

1. Integrate the Video Ads SDK using the `script` element in the HTML document header.

   ```xml
   <html xmlns="http://www.w3.org/1999/xhtml">
       <head>
           
       </head>
   </html>
   ```

1. Set ADFOX parameters.

   ```javascript
   var adFoxParameters = {
     adFoxParameters: {
       // ID in the ADFOX system (string)
       ownerId: "123456",
       // ADFOX parameters
       params: {
         p1: "123",
         p2: "123",
         ...
       }
     }
   }
   ```

   You can use these settings to test your ADFOX integration:

   #|
   ||  **Instream test parameters** | **Instream test parameters (App)** ||
   || 
   ```javascript
   var adFoxParameters = {
     adFoxParameters: {
       ownerId: "270901",
       params: {
         p1: "cwdyt",
         p2: "hiuy"
       }
     }
   }
   ```
   [Test page example](https://yastatic.net/s3/doc-binary/src/dev/video-sdk/instream-with-adfox-parameters.html)
   |

   `AdUnitId: ""17673122"`||
   
   |#

   If you don't know what parameters to add, contact [ADFOX support](https://yandex.ru/support/adfox-sites/feedback.html).

1. Call the `play` method using the `script` element in the HTML document header.

   ```javascript
   <html xmlns="http://www.w3.org/1999/xhtml">
       <head>
           
            
       </head>
   </html>
   ```


