1// Load GPT asynchronously 2var googletag = googletag || {}; 3googletag.cmd = googletag.cmd || []; 4(function () { 5 var gads = document.createElement('script'); 6 gads.async = true; 7 var useSSL = 'https:' == document.location.protocol; 8 gads.src = (useSSL ? 'https:' : 'http:') + 9 '//www.googletagservices.com/tag/js/gpt.js'; 10 var node = document.getElementsByTagName('script')[0]; 11 node.parentNode.insertBefore(gads, node); 12})(); 13 14 15// GPT slots 16var gptAdSlots = []; 17googletag.cmd.push(function () { 18 var label = 'wirecorpnet'; 19 20 if(window.location.host == 'dtcdaily.ew.vubuntu.spottmedia.co.uk' || window.location.host == 'test.dtcdaily.com' || window.location.host == 'dtcdaily.com' ) { 21 label = 'dtcdaily'; 22 } 23 24 var div600x250 = "div-gpt-ad-1431973026850-0"; 25 var div300x600 = "div-gpt-ad-1434462680556-0"; 26 var div600x90 = "div-gpt-ad-1434463538271-0"; 27 var div300x250 = 'div-gpt-ad-1499694591274-0'; 28 var div950x100 = "div-gpt-ad-1553091906811-0"; 29 30 if(window.location.host == 'tge.ew.vubuntu.spottmedia.co.uk' || window.location.host == 'test.thegamingeconomy.com' || window.location.host == 'www.thegamingeconomy.com' ) { 31 label = 'tge'; 32 div600x250 = '600x250_btf'; 33 div300x600 = '300x600_btf'; 34 div600x90 = 'div-gpt-ad-1542028832793-0'; 35 div300x250 = '300x250_mpu'; 36 div950x100 = "950x100_atf"; 37 } 38 39 var slot600x250 = "/21761450531/display_" + label + "_600x250_BTF"; 40 var slot300x600 = "/21761450531/display_" + label + "_300x600_BTF"; 41 var slot600x90 = "/21761450531/display_" + label + "_600x90_BTF"; 42 var slot300x250 = "/21761450531/display_" + label + "_300x250_MPU"; 43 var slot950x100 = "/21761450531/display_" + label + "_950x100_ATF"; 44 45 46 // Define a size mapping object. The first parameter to addSize is 47 // a viewport size, while the second is a list of allowed ad sizes. 48 49 //Leaderboard - Middle of the page 50 var mapping_600_250 = googletag.sizeMapping(). 51 addSize([0, 0], []).// All below desktop empty 52 addSize([320, 700], [300, 250]). // Tablet 53 addSize([1024, 200], [600, 250]).build();// Desktop 54 55 //Sky Scraper 56 var mapping_300_600 = googletag.sizeMapping(). 57 addSize([0, 0], []).// All below desktop empty 58 addSize([1024, 200], [300, 600]).build();// Desktop 59 60 //MPU 61 var mapping_950_100 = googletag.sizeMapping(). 62 addSize([320, 400], [320, 50]).// Mobile 63 addSize([1024, 200], [950, 100]).build();// Desktop 64 65 //Footer 66 var mapping_600_90 = googletag.sizeMapping(). 67 addSize([320, 400], [320, 50]).// Mobile 68 addSize([1024, 200], [600, 90]).build();// Desktop 69 70 71 gptAdSlots[0] = googletag.defineSlot(slot600x250, [600, 250], div600x250). 72 defineSizeMapping(mapping_600_250). 73 setCollapseEmptyDiv(true). 74 addService(googletag.pubads()); 75 76 77 gptAdSlots[1] = googletag.defineSlot(slot300x600, [300, 600], div300x600). 78 defineSizeMapping(mapping_300_600). 79 setCollapseEmptyDiv(true). 80 addService(googletag.pubads()); 81 82 gptAdSlots[2] = googletag.defineSlot(slot600x90, [600, 90], div600x90). 83 defineSizeMapping(mapping_600_90). 84 setCollapseEmptyDiv(true). 85 addService(googletag.pubads()); 86 87 // Sidebar top 88 // Always displayed in same size 89 gptAdSlots[3] = googletag.defineSlot(slot300x250, [300, 250], div300x250). 90 setCollapseEmptyDiv(true). 91 addService(googletag.pubads()); 92 93 gptAdSlots[4] = googletag.defineSlot(slot950x100, [950, 100], div950x100). 94 defineSizeMapping(mapping_950_100). 95 setCollapseEmptyDiv(true). 96 addService(googletag.pubads()); 97 98 googletag.pubads().setTargeting("test", "responsive"); 99 100 // Start ad fetching 101 googletag.enableServices(); 102 103});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.