Integration‎ > ‎

Server side integration with vdopia using admarvel

Indroduction


The server side integration with vdopia using admarvel allows publishers and partners to request ads from the platform and place them on their sites/apps.Vdopia allows rich-midea and video ad units to be placed on mobile web pages through simple Javascript tags.
The Vdopia API is designed for loading Vdopia ads directly using javascript or to load html via a proxy sitting on your servers.


Steps to setup vdopia ads in admarvel portal

a)Create an ad
1) click on Add Banner when campaign is created 
2) choose Banner type from list of banner
3) select JavaScript Banner
4) Enter the name of the ad 
5) Enter the javasript provided by vdopia in Banner JavaScript:Field
6)     Add frequency capping in Frequency Cap field
7) Click on save
8) Add geographical targeting on the next page then click on save
9) Select site from the next page and save
10)    If you want to put Mraid or Ormma tags select ios/Android ormma in the banner type

b)The javascript tag has to be put in the following way in Banner JavaScript:Field.In the tag replace "AX123" with the apikey provided to you by vdopia. 

1)This is the tag for banner ads and vdobanner
<script language='javascript' src='http://serve.vdopia.com/adserver/html5/inwapads?sleepAfter=0;slide=0;version=1.0;ak=AX123;adFormat=vdobanner;container=androidWeb'>
</script>

2)This is the tag for full page video and full page interstitial 


<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
<script type="text/javascript" >
window.addEventListener('ivdoAdsClosed',function(e){
initAdMarvel("handleInit"); 
},false);
function initAdMarvel(callbackFunction) 
{
callAdMarvelFunction("init?callbackFn=" + escape(callbackFunction))
}
function callAdMarvelFunction(functionWithParameters) 
{
var iFrame = document.createElement("IFRAME");
iFrame.setAttribute("src", "admarveljavascript:" + functionWithParameters);
iFrame.width = 0;
iFrame.height = 0;
document.head.appendChild(iFrame);
//iFrame.parentNode.removeChild(iFrame);
//iFrame = null;
}
// Callback Functions
function handleInit(parameters) 
{
var paramArray = eval('(' + parameters + ')'); 
//alert("handleInit called with uuid = " + paramArray['uuid']);
}
// JavaScript Init
window.onload = function() 
{
}
</script>
<script type="text/javascript" src="http://serve.vdopia.com/adserver/html5/inwapads/?adFormat=preappvideo&ak=AX123&version=1.0&vdo=1&showLandingPage=0">
</script>

Also look at this for various mobile javascript tags and mobile parameters here

Comments