var cdn1 = document.createElement('script'); cdn1.src = 'https://www.googletagservices.com/tag/js/gpt.js'; cdn1.async = true; document.head.append(cdn1); var cdn2 = document.createElement('script'); cdn2.src = 'https://cdn-prebid.incrementxserv.com/prebid.js'; cdn2.async = true; document.head.append(cdn2); var div_sizes_1 = [ [300 , 250], ]; var div_sizes_2 = [ [300 , 600], ]; var PREBID_TIMEOUT = 1000; var FAILSAFE_TIMEOUT = 3000; var adUnits = [ { code: '/22874608466,21770842476/SarkariExamHelp/sarkariexamhelp.com/IX-PB-N324388V7FEH60', mediaTypes: { banner: { sizes: div_sizes_1 } }, bids:[{"id":1444,"bidder":"onetag","params":{"pubId":"774083553572acc"}},{"id":1399,"bidder":"pubmatic","params":{"publisherId":"164418"}}]},{ code: '/22874608466,21770842476/SarkariExamHelp/sarkariexamhelp.com/IX-PB-K505858V0FG2H2', mediaTypes: { banner: { sizes: div_sizes_2 } }, bids:[{"id":1444,"bidder":"onetag","params":{"pubId":"774083553572acc"}},{"id":1399,"bidder":"pubmatic","params":{"publisherId":"164418"}}] } ]; var googletag = googletag || {}; googletag.cmd = googletag.cmd || []; googletag.cmd.push(function () { googletag.pubads().disableInitialLoad(); }); var pbjs = pbjs || {}; pbjs.que = pbjs.que || []; pbjs.que.push(function() { pbjs.addAdUnits(adUnits); pbjs.requestBids({ bidsBackHandler: initAdserver, timeout: PREBID_TIMEOUT }); function initAdserver() { if (pbjs.initAdserverSet) return; pbjs.initAdserverSet = true; googletag.cmd.push(function () { pbjs.que.push(function () { pbjs.setTargetingForGPTAsync(); googletag.pubads().refresh(); }); }); } setTimeout(function () { initAdserver(); }, FAILSAFE_TIMEOUT); googletag.cmd.push(function() { googletag.defineSlot('/22874608466,21770842476/SarkariExamHelp/sarkariexamhelp.com/IX-PB-N324388V7FEH60', div_sizes_1, 'IX-PB-N324388V7FEH60').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); googletag.cmd.push(function() { googletag.defineSlot('/22874608466,21770842476/SarkariExamHelp/sarkariexamhelp.com/IX-PB-K505858V0FG2H2', div_sizes_2, 'IX-PB-K505858V0FG2H2').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); });