Jump to content

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

Link to comment
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.

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
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.

Link to comment
Share on other sites

  • 2 weeks later...

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.

Link to comment
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?

Link to comment
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...

Link to comment
Share on other sites

  • 2 weeks later...

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.

Link to comment
Share on other sites

  • 4 weeks later...
  • 1 month later...
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?

Link to comment
Share on other sites

  • 1 month later...

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.

Link to comment
Share on other sites

  • 2 months later...

I too went through all of this and then I figured out it was the VAST version incompatibility with the Google IMA sdk.
Install a VAST 2.0 compliant plugin and all works again with all the popular ad networks.

I'm using latest VideoJs and IMA VAST plugin https://github.com/googleads/videojs-ima 

Below is how I load up my advertisers, adtagurl would be your revive server if you can serve VAST 2.0 compliant ads.

var player = videojs('content_video');
 
var options = {
id: 'content_video',
adTagUrl: 'https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&correlator='
};
 
player.ima(options);
// On mobile devices, you must call initializeAdDisplayContainer as the result
// of a user action (e.g. button click). If you do not make this call, the SDK
// will make it for you, but not as the result of a user action. For more info
// see our examples, all of which are set up to work on mobile devices.
// player.ima.initializeAdDisplayContainer();
Link to comment
Share on other sites

  • 2 years later...
On 7/11/2018 at 12:18 AM, thomaska said:

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

Hi Thomas,

Did you find how to include "http://ads.financialreport.gr/adserver/www/delivery/fc.php?script=bannerTypeHtml:vastInlineBannerTypeHtml:vastInlineHtml&format=vast&nz=1&zones=pre-roll%3D21" in your HTML video player page?

I am also facing same issue.

 

Thanks

Link to comment
Share on other sites

Hi All,

I am Newbie to Web server domain and I use Revive server version 5.3.0 (Not Hosted edition).

I have the same question as others in this thread. Does anyone successfully made the inline/overlay Video advertisement working? 

I got the the Inline Video Invocation code "http://3.82.156.25:8080/www/delivery/fc.php?script=bannerTypeHtml:vastInlineBannerTypeHtml:vastInlineHtml&format=vast&nz=1&zones=pre-roll%3D4"  (4 is the zone ID)  from Revive ad server portal.

 

Could anyone please help how/where to add the invocation tag at my HTML page shown below,

------------------------------------------------------------------------------------------------

<!DOCTYPE html>
<html>
<body>
    <center>
        <h1 style="color:green;"> ADServer - Sample</h1>
        <h3>Inline Video AD - HTML video tag</h3>
       
<p>Rollable TV            
<p>
                <video width="650"
                    height="350"
                    controls
                    preload="auto">
                    <source src="./Video_Rollable_TV.mp4" type="video/mp4">
                </video>
    </center>
</body>
</html>

------------------------------------------------------------------------------------------------

Thanks in Advance,

Vel

Link to comment
Share on other sites

  • 4 months later...

Hi Everyone,

I am not done yet but what I have started to look into is , the endpoint in the above examples

http://3.82.156.25:8080/www/delivery/fc.php?script=bannerTypeHtml:vastInlineBannerTypeHtml:vastInlineHtml&format=vast&nz=1&zones=pre-roll%3D4

is a vast document .

 

There are clients that can read a vast document , here is popular one

https://www.npmjs.com/package/@dailymotion/vast-client/v/4.0.0

 

I have looked at a plugin that used to solve the problem we have but with older versions, here is the link to that

http://theonion.github.io/videojs-vast-plugin/

The above plugin(deprecated) uses videojs to deliver the video and the ads on top of it from the revive server on reading the vast document endpoint we provide from revive ad server.

What we need to do is , we need to create out integration of videojs and vast client that reads the endpoint from vast and using the videojs ad plugin

https://videojs.github.io/videojs-contrib-ads/integrator/getting-started.html

I will be working on it and will post as soon as I have a working integration. Meanwhile if there is an expert javascript developer, he can solve this problem faster than me.

 

I am providing all reference endpoints below :

https://videojs.com/getting-started

https://videojs.github.io/videojs-contrib-ads/integrator/getting-started.html

https://www.npmjs.com/package/@dailymotion/vast-client/v/4.0.0

http://theonion.github.io/videojs-vast-plugin/

And a sample code page where all this was put together at last endpoint

https://github.com/theonion/videojs-vast-plugin/blob/master/example.html

Hope it helps.

 

 

 

 

Link to comment
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...