EZmob: Example Tags
Updating your tag with the right parameters such as subid, feedID etc is vital to earning more and being open to more demand sources
For our Publishers working on EU servers we have a special update and you can connect to our EU servers directly. Find out out how in this article
Example Redirect Tag
Publishers may enter their own text after the subid=”example”
Example Interstitial Tag:
Configuration features for interstitial tag:
engagementPeriod: 15 // time while "Skip" button will be blockedinterval: 600 // First interval delay - delay between page load and first interstitial for the userdefer: 30 // Repeated interstitial delay - delay for 2nd and further interstitials, usually higher than "initial" intervalall parameters are in seconds
Example Banner Tag:
Example Pop tag:
Example Tab under tag:
the following parameters are included in your JS Pop and Tab under tags:
Example In-Page Push Tag Code:
refresh - refresh period in seconds,
position - 'bottom' and 'top' are showing ads in right-bottom or right-top corner
slots - max number of ads to show per "refresh"
layout : 'mobile_mini' makes the widget more condensed on mobile devices``********
Example Header bidding banner tag:
For our Publishers working on EU servers we have a special update and you can connect to our EU servers directly. Find out out how in this article
Example Redirect Tag
Publishers may enter their own text after the subid=”example”
http://xml.ezmob.com/redirect?feed=FEED_ID&auth=AUTH_CODE&url=https://YOUR_URL&subid=SUD_ID
Example Interstitial Tag:
<script>(function(i,n,t,s,t,l){i.intstl = i.intstl || function() {(i.intstl.q=(i.intstl.q||[])).push(arguments)};var s=n.getElementsByTagName('head')[0];var q=n.createElement('script'); q.async=1;q.src='https://static.ezmob.com/intstl/intstl.js';s.appendChild(q);i.intstl('init', {host: 'xml.ezmob.com',feed: FEED_ID,auth : 'AUTH_CODE',logo: 'https://adk.ezmob.com/images/icoLogo.png',color1: '#3c8dbc', color2: '#307196',textColor: 'white', background: '#f7f7f6',engagementPeriod: 15,interval: 60,defer: 30});i.intstl('show');})(window, document);</script>
Configuration features for interstitial tag:
engagementPeriod: 15 // time while "Skip" button will be blockedinterval: 600 // First interval delay - delay between page load and first interstitial for the userdefer: 30 // Repeated interstitial delay - delay for 2nd and further interstitials, usually higher than "initial" intervalall parameters are in seconds
Example Banner Tag:
<!-- BEGIN EZMOB TAG -->
<SCRIPT TYPE="text/javascript">
var __jscp=function(){for(var b=0,a=window;a!=a.parent++b,a=a.parent;if(a=window.parent==window?document.URL:document.referrer)
{var c=a.indexOf("://");0<=c&&(a=a.substring(c+3));c=a.indexOf("/");0<=c&&(a=a.substring(0,c))}
var b={pu:a,"if":b,rn:new Number(Math.floor(99999999*Math.random())+1)},a=[],d;for(d in b)a.push(d+"="+encodeURIComponent(b[d]));return encodeURIComponent(a.join("&"))};
document.write(\'<S\' + \'CRIPT TYPE="text/javascript" SRC="//cpm.ezmob.com/tag?zone_id=ZONE_ID&size=BANNER_SIZE&subid=SUB_ID&j=\' + __jscp() + \'"></S\' + \'CRIPT>\');
</SCRIPT>
<!-- END TAG -->
Example Pop tag:
<script>
window.adk_pdisp = {'h' : 'xml.ezmob.com',
'f' : ZONE_ID,
'a' : 'AUTH_CODE',
'ps' : [1],
'cin' : 4,
's' : 'replace-with-some-dynamic-subid',
'q' : [],
't' : 1,
};
</script>
<script src='//static.ezmob.com/tabu/display.js'></script>
Example Tab under tag:
<script>
window.adk_pdisp = {'h' : 'xml.ezmob.com',
'f' : 243902,
'a' : 'j9F48y',
'ps' : [1],
'cin' : 4,
's' : 'replace-with-some-dynamic-subid',
'q' : [],
't' : 1,
'op': {'chrome': 'tabu'}
};
</script>
<script src='//static.ezmob.com/tabu/display.js'></script>
the following parameters are included in your JS Pop and Tab under tags:
h:
f: feed ID (mandatory)
a: authentication ID (mandatory)
ps: 1 (fixed value)
cin: 4 (fixed value)
s: subid (optional)
q: site category (optional)
t: frequency cap in hours (optional)
Example In-Page Push Tag Code:
<script>
(function(i,n,p,a,g,e){
i.inpagepush = i.inpagepush || function() {
(i.inpagepush.q=(i.inpagepush.q||[])).push(arguments)
};
var s=n.getElementsByTagName('head')[0];
var q=n.createElement('script'); q.async=1;
q.src='//static.ezmob.com/inpage/inpage.js';
s.appendChild(q);
i.inpagepush('init', {
host: 'xml.ezmob.com',
feed: 243902,
auth : 'j9F48y',
subid: '1',
refresh: 25,
position: 'bottom',
slots: 3,
query : 'inpage',
z_index: 88888
});
i.inpagepush('show');
})(window, document);
</script>
refresh - refresh period in seconds,
position - 'bottom' and 'top' are showing ads in right-bottom or right-top corner
slots - max number of ads to show per "refresh"
layout : 'mobile_mini' makes the widget more condensed on mobile devices``********
Example Header bidding banner tag:
<!-- BEGIN EZMOB TAG -->
<script type="text/javascript" src="https://ezmob-site.sfo3.digitaloceanspaces.com/prebid.js" async></script>
<script>
var pbjs = pbjs || {};
pbjs.que = pbjs.que || [];
pbjs.que.push(function() {
var adUnits = [
{
code: 'container1',
mediaTypes: {
banner: {
sizes: [[300, 250], [300, 200]]
}
},
bids: [{
bidder: 'adkernel',
params: {
zoneId: ZONE_ID,
host: 'cpm.ezmob.com'
}
}]
}];
pbjs.addAdUnits(adUnits);
pbjs.requestBids({
bidsBackHandler: handleBids
});
});
function handleBids() {
var winners = pbjs.getHighestCpmBids();
for (winner of winners) {
var ifrmEl = document.createElement('iframe');
ifrmEl.scrolling = 'no'
document.getElementById(winner.adUnitCode).appendChild(ifrmEl);
pbjs.renderAd(ifrmEl.contentDocument || ifrmEl.contentWindow.document, winner.adId);
}
}
</script>
<!-- END TAG -->
Updated on: 31/08/2022
Thank you!