Jump to content
thomaska

How to Embed Inline Video Ad

Recommended Posts

Hi, 

I have a customer and i am newbie. The customer requires a pre-roll inline  video bannber. I follow all the documentation to create the banner, link to a zone and then get the special invocation code. The invocation code is the following

http://ads.financialreport.gr/adserver/www/delivery/fc.php?script=bannerTypeHtml:vastInlineBannerTypeHtml:vastInlineHtml&format=vast&nz=1&zones=pre-roll%3D21

So can anyone tell me how to embed this code into an html page in order to play the video? I am confused and stack and i don't know how to do it.

I will appreciate any help...

Regards

Thomas

Share this post


Link to post
Share on other sites

The code needs to be embedded into a video player, as per https://documentation.revive-adserver.com/display/DOCS/Invocation+Code%3A+Zone+Level#InvocationCode:ZoneLevel-VideoInvocationcodeforInlineVideoadzoneorOverlayVideoadzone

So, you need to be starting from the position of already having a video player for the HTML page, which plays the video the user wants to see. Revive Adserver then provides the code that you need to add in the inline or overlay video add to that pre-existing system.

Share this post


Link to post
Share on other sites
On 7/18/2018 at 6:28 PM, andrewatfornax said:

The code needs to be embedded into a video player, as per https://documentation.revive-adserver.com/display/DOCS/Invocation+Code%3A+Zone+Level#InvocationCode:ZoneLevel-VideoInvocationcodeforInlineVideoadzoneorOverlayVideoadzone

So, you need to be starting from the position of already having a video player for the HTML page, which plays the video the user wants to see. Revive Adserver then provides the code that you need to add in the inline or overlay video add to that pre-existing system.

Hi, I introduced video as you said, but the page cannot play normally again. Why?Here's my introduction code:

< video width = "320" height = "240" controls >

< source src= "http://101.132.106.202/www/delivery/fc.php?Script = bannerTypeHtml: vastInlineBannerTypeHtml: vastInlineHtml&format = vast&nz = 1 & zones = pre - roll % 3 d13 "type =" video/mp4 ">

< video >

My domain is IP address, because it is being tested, and no official domain has been added yet. My zone-id is 13, and everything is done according to the documentation, but it still cannot be played and displayed.

Share this post


Link to post
Share on other sites

The problems of video players that seem to be recurrent are difficult to grasp.

For my part, I have videos on my site displayed with the native video player of the browser.

<video width="320" height="240" controls>
    <source src="http://my.projet.net/videos/movie.mp4" type="video/mp4">
    Your browser does not support the video tag.
</video>

So I want to add ads before or after the video.

My area is of the "Inline Video ad" type. ("Bande pub enchâssée" en français.)

My area is linked to an "Inline Video Ad" banner

So of course I consulted this documentation: https://documentation.revive-adserver.com/display/DOCS/Invocation+code:+Zone+level#InvocationCode:ZoneLevel-Video
And I deduced this URL: revive.lxc/revive/www/delivery/fc.php?script=bannerTypeHtml:vastInlineBannerTypeHtml:vastInlineHtml&format=vast&nz=1&zones=pre-roll%3D5
(My ZONE-ID and 5)
 

But the url returns:

<?xml version="1.0" encoding="UTF-8"?>
<VideoAdServingTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd">
<!-- You are requesting vast xml for zone  which does not apear to be a video overlay banner nor a vast inline banner. -->
</VideoAdServingTemplate>

 

But I don't know what to do with it.

Share this post


Link to post
Share on other sites

I recreated my zone and my banner.

I get a much nicer XML.

 

<?xml version="1.0" encoding="UTF-8"?>
<VideoAdServingTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd">
    <Ad id="pre-roll" >        <InLine>            <AdSystem><![CDATA[Revive Adserver]]></AdSystem>
                <AdTitle><![CDATA[[Video] Earth Eclipse Motion Graphic]]></AdTitle>
                    <Description><![CDATA[Inline Video Ad]]></Description>
                    <Impression>
                        <URL id="primaryAdServer"><![CDATA[http://revive.lxc/revive/www/delivery/lg.php?bannerid=14&campaignid=1&zoneid=11&OACCAP=1000&cb=3d7977ffad]]></URL>
                    </Impression>
			    <Video>
                    <Duration>00:00:13</Duration>
                    <AdID><![CDATA[14]]></AdID>
                    <VideoClicks>
                        <ClickThrough>
                            <URL id="destination"><![CDATA[http://revive.lxc/revive/www/delivery/ck.php?oaparams=2__bannerid=14__zoneid=11__cb=3d7977ffad__oadest=http%3A%2F%2Fsmile.fr]]></URL>
                        </ClickThrough>
                    </VideoClicks>
                    <MediaFiles>
                        <MediaFile delivery="progressive" bitrate="400" width="640" height="480" type="video/x-mp4">
                            <URL><![CDATA[https://www.videvo.net/videvo_files/converted/2012_10/videos/hd0308-H264%2075.mov10144.mp4]]></URL>
                        </MediaFile>
                    </MediaFiles>
                </Video>

                <TrackingEvents>
                    <Tracking event="start">
                        <URL id="primaryAdServer"><![CDATA[http://revive.lxc/revive/www/delivery/fc.php?script=videoAds:vastEvent&bannerid=14&zoneid=11&event=start]]></URL>
                    </Tracking>
                    <Tracking event="midpoint">
                        <URL id="primaryAdServer"><![CDATA[http://revive.lxc/revive/www/delivery/fc.php?script=videoAds:vastEvent&bannerid=14&zoneid=11&event=midpoint]]></URL>
                    </Tracking>
                    <Tracking event="firstQuartile">
                        <URL id="primaryAdServer"><![CDATA[http://revive.lxc/revive/www/delivery/fc.php?script=videoAds:vastEvent&bannerid=14&zoneid=11&event=firstquartile]]></URL>
                    </Tracking>
                    <Tracking event="thirdQuartile">
                        <URL id="primaryAdServer"><![CDATA[http://revive.lxc/revive/www/delivery/fc.php?script=videoAds:vastEvent&bannerid=14&zoneid=11&event=thirdquartile]]></URL>
                    </Tracking>
                    <Tracking event="complete">
                        <URL id="primaryAdServer"><![CDATA[http://revive.lxc/revive/www/delivery/fc.php?script=videoAds:vastEvent&bannerid=14&zoneid=11&event=complete]]></URL>
                    </Tracking>
                    <Tracking event="mute">
                        <URL id="primaryAdServer"><![CDATA[http://revive.lxc/revive/www/delivery/fc.php?script=videoAds:vastEvent&bannerid=14&zoneid=11&event=mute]]></URL>
                    </Tracking>
                    <Tracking event="pause">
                        <URL id="primaryAdServer"><![CDATA[http://revive.lxc/revive/www/delivery/fc.php?script=videoAds:vastEvent&bannerid=14&zoneid=11&event=pause]]></URL>
                    </Tracking>
                    <Tracking event="replay">
                        <URL id="primaryAdServer"><![CDATA[http://revive.lxc/revive/www/delivery/fc.php?script=videoAds:vastEvent&bannerid=14&zoneid=11&event=replay]]></URL>
                    </Tracking>
                    <Tracking event="fullscreen">
                        <URL id="primaryAdServer"><![CDATA[http://revive.lxc/revive/www/delivery/fc.php?script=videoAds:vastEvent&bannerid=14&zoneid=11&event=fullscreen]]></URL>
                    </Tracking>
                    <Tracking event="stop">
                        <URL id="primaryAdServer"><![CDATA[http://revive.lxc/revive/www/delivery/fc.php?script=videoAds:vastEvent&bannerid=14&zoneid=11&event=stop]]></URL>
                    </Tracking>
                    <Tracking event="unmute">
                        <URL id="primaryAdServer"><![CDATA[http://revive.lxc/revive/www/delivery/fc.php?script=videoAds:vastEvent&bannerid=14&zoneid=11&event=unmute]]></URL>
                    </Tracking>
                   <Tracking event="resume">
                        <URL id="primaryAdServer"><![CDATA[http://revive.lxc/revive/www/delivery/fc.php?script=videoAds:vastEvent&bannerid=14&zoneid=11&event=resume]]></URL>
                    </Tracking>
                </TrackingEvents>        </InLine>
    </Ad>

</VideoAdServingTemplate>

I still have to find a player.

I have identified two to try. But it doesn't look so young!

  1. http://www.html5vast.com/index.php
  2. http://blog.denivip.ru/index.php/2012/04/2515/?lang=en

And can it work with youtube?

Share this post


Link to post
Share on other sites

http://revive.lxc/revive/www/delivery/fc.php?script=bannerTypeHtml:vastInlineBannerTypeHtml:vastInlineHtml&amp;zones=pre-roll-0%3D11&amp;nz=1&amp;format=vast&amp;charset=UTF-8

 

When I call the url live I have the XML right.

But if it's the js of the site that calls it then I have:

<?xml version="1.0" encoding="UTF-8"?>
<VideoAdServingTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd">
<!-- You are requesting vast xml for zone  which does not apear to be a video overlay banner nor a vast inline banner. -->
</VideoAdServingTemplate>

I'll see if it's a problem of  Server Cross Domain Policy.

But if I did, I'd have another mistake?

I think it's more of a cookie or header problem...

Share this post


Link to post
Share on other sites

I spotted this player recently:

https://www.openplayerjs.com/

Looks to support many things, including all sorts of ad types.

Look like a possibility to use with Revive?

A bundled Video Ad Player would be an awesome package or plugin, for something less than big bucks that most video ads resources seem to be charging, which is sometimes $100-dreds of dollars.

Share this post


Link to post
Share on other sites
On 11/8/2018 at 8:57 PM, andrewatfornax said:

Sounds like a great idea - but creating a free bundled video ad player with Revive Adserver is well outside the scope of what our aims are!

We aim to help do banner delivery - not make a new video player for the web. Sorry!

is 3rd party plugin a must on order for inline or overlay video ads to work?

Share this post


Link to post
Share on other sites

Hi @JMKL,

Not at all - Revive Adserver supports both inline and overlay video ads out of the box:

https://documentation.revive-adserver.com/display/DOCS/Inline+Video+banners

https://documentation.revive-adserver.com/display/DOCS/Overlay+Video+banners

The above thread was about the video player that is embedded in the page that the user will view. Revive Adserver does not provide such a player - just the capability to deliver video banners. The player used then needs to support the display of banners, using VAST 1.0, which is what Revive Adserver uses.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...