Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- var adsStart = (new Date()).getTime();
- function detectWidth() {
- return window.screen.width || window.innerWidth && document.documentElement.clientWidth ? Math.min(window.innerWidth, document.documentElement.clientWidth) : window.innerWidth || document.documentElement.clientWidth || document.getElementsByTagName('body')[0].clientWidth;
- }
- var TIMEOUT = 2000;
- var googletag = googletag || {};
- googletag.cmd = googletag.cmd || [];
- var pbjs = pbjs || {};
- pbjs.que = pbjs.que || [];
- var adUnits = adUnits || [];
- function initAdServer() {
- if (pbjs.initAdserverSet) return;
- (function() {
- var gads = document.createElement('script');
- gads.async = true;
- gads.type = 'text/javascript';
- var useSSL = 'https:' == document.location.protocol;
- gads.src = (useSSL ? 'https:' : 'http:') +
- '//www.googletagservices.com/tag/js/gpt.js';
- var node = document.getElementsByTagName('script')[0];
- node.parentNode.insertBefore(gads, node);
- })();
- pbjs.initAdserverSet = true;
- };
- pbjs.timeout = setTimeout(initAdServer, TIMEOUT);
- pbjs.timeStart = adsStart;
- var dfpNetwork = '127208727';
- /* Start: defining adunits*/
- /* End: defining adunits*/
- googletag.cmd.push(function() {
- if(adUnits){
- for (var i = 0, len = adUnits.length; i < len; i++) {
- googletag.defineSlot('/'+adUnits[i].network+'/'+adUnits[i].adunit, adUnits[i].size, adUnits[i].code).addService(googletag.pubads());
- }
- }
- });
- googletag.cmd.push(function() {
- pbjs.que.push(function() {pbjs.setTargetingForGPTAsync();});
- googletag.pubads().collapseEmptyDivs();
- googletag.pubads().enableSingleRequest();
- googletag.enableServices();
- });
- </script>
- <script type="text/javascript" async="true" src="//cdn.adapex.io/hb/aaw.chib.js"></script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement