title: VAST : How to call a Vpaid Javascript and a Video Ad at the same time?
body: <p>I am trying to write a VAST XML file that can launch at the same time (approximately) 2 things :</p>
  
  <ul>
  <li>1 Advertising Video</li>
  <li>1 VPAID JavaScript file</li>
  </ul>
  
  <p>I tried a lot of configurations but unsuccessfully.
  Here are 3 examples I am currently trying to get working :</p>
  
  <pre><code>&lt;!-- 1 Creative (adparameter Ad Video + mediafile VPAID JS) --&gt;
  &lt;VAST version="3.0"&gt;
      &lt;Ad id="2016.03.16"&gt;
          &lt;InLine&gt;
              &lt;AdSystem&gt;TestVpaid&lt;/AdSystem&gt;
              &lt;AdTitle&gt;2016.03.16&lt;/AdTitle&gt;
              &lt;Error&gt;
                  about:blank
              &lt;/Error&gt;
              &lt;Impression&gt;
                  about:blank
              &lt;/Impression&gt;
              &lt;Creatives&gt;
                  &lt;Creative sequence="1"&gt;
                      &lt;Linear&gt;
                          &lt;Duration&gt;00:00:30&lt;/Duration&gt;
                          &lt;AdParameters&gt;
                              &lt;![CDATA[
                              {"videos":[{"url":"http://cdn.liverail.com/adasset4/1331/229/7969/lo.mp4","mimetype":"video/mp4"}]}
                              ]]&gt;
                          &lt;/AdParameters&gt;
                          &lt;MediaFiles&gt;
                              &lt;MediaFile type="application/javascript" apiFramework="VPAID"&gt;
                              https://domain_name/test_vpaid.js
                              &lt;/MediaFile&gt;
                          &lt;/MediaFiles&gt;
                      &lt;/Linear&gt;
                  &lt;/Creative&gt;
              &lt;/Creatives&gt;
          &lt;/InLine&gt;
      &lt;/Ad&gt;
  &lt;/VAST&gt;
  
  &lt;!-- 1 Creative (staticresource Ad Video + mediafile VPAID JS) --&gt;
  &lt;VAST version="3.0"&gt;
      &lt;Ad id="2016.03.16"&gt;
          &lt;InLine&gt;
              &lt;AdSystem&gt;TestVpaid&lt;/AdSystem&gt;
              &lt;AdTitle&gt;2016.03.16&lt;/AdTitle&gt;
              &lt;Error&gt;
                  about:blank
              &lt;/Error&gt;
              &lt;Impression&gt;
                  about:blank
              &lt;/Impression&gt;
              &lt;Creatives&gt;
                  &lt;Creative sequence="1"&gt;
                      &lt;Linear&gt;
                          &lt;Duration&gt;00:00:30&lt;/Duration&gt;
                          &lt;StaticResource&gt;
                              &lt;![CDATA[
                              {"videos":[{"url":"http://cdn.liverail.com/adasset4/1331/229/7969/lo.mp4","mimetype":"video/mp4"}]}
                              ]]&gt;
                          &lt;/StaticResource&gt;
                          &lt;MediaFiles&gt;
                              &lt;MediaFile type="application/javascript" apiFramework="VPAID"&gt;
                              https://domain_name/test_vpaid.js
                              &lt;/MediaFile&gt;
                          &lt;/MediaFiles&gt;
                      &lt;/Linear&gt;
                  &lt;/Creative&gt;
              &lt;/Creatives&gt;
          &lt;/InLine&gt;
      &lt;/Ad&gt;
  &lt;/VAST&gt;
  
  &lt;!-- 2 Creative (mediafile Ad Video + companionads mediafile VPAID JS) --&gt;
  &lt;VAST version="2.0"&gt;
      &lt;Ad id="2016.03.16"&gt;
          &lt;InLine&gt;
              &lt;AdSystem&gt;TestVpaid&lt;/AdSystem&gt;
              &lt;AdTitle&gt;2016.03.16&lt;/AdTitle&gt;
              &lt;Error&gt;
                  about:blank
              &lt;/Error&gt;
              &lt;Impression&gt;
                  about:blank
              &lt;/Impression&gt;
              &lt;Creatives&gt;
                  &lt;Creative sequence="1" &gt;
                      &lt;Linear&gt;
                          &lt;Duration&gt;00:00:30&lt;/Duration&gt;
                          &lt;MediaFiles&gt;
                              &lt;MediaFile delivery="progressive" bitrate="400" width="320" height="180" type="video/mp4"&gt;
                                  http://cdn.liverail.com/adasset4/1331/229/7969/hi.mp4
                              &lt;/MediaFile&gt;
                          &lt;/MediaFiles&gt;
                      &lt;/Linear&gt;
                  &lt;/Creative&gt;
                  &lt;Creative sequence="1" &gt;
                      &lt;CompanionAds&gt;
                          &lt;Companion&gt;
                              &lt;Duration&gt;00:00:30&lt;/Duration&gt;
                              &lt;MediaFiles&gt;
                                  &lt;MediaFile type="application/javascript" apiFramework="VPAID"&gt;
                                      https://domain_name/test_vpaid.js
                                  &lt;/MediaFile&gt;
                              &lt;/MediaFiles&gt;
                          &lt;/Companion&gt;
                      &lt;/CompanionAds&gt;
                  &lt;/Creative&gt;
              &lt;/Creatives&gt;
          &lt;/InLine&gt;
      &lt;/Ad&gt;
  &lt;/VAST&gt;
  </code></pre>
  
  <p>For my tests I use the google dev page : 
  <a href="https://developers.google.com/interactive-media-ads/docs/sdks/html5/vastinspector" rel="nofollow">https://developers.google.com/interactive-media-ads/docs/sdks/html5/vastinspector</a>
  (thanks to them for putting it online)</p>
  
  <p>Do you know how I could do what I want ?</p>
  
  <p>Thanks in advance, and have a great day</p>