//load the apstag.js library ! function(a9, a, p, s, t, A, g) { if (a[a9]) return; function q(c, r) { a[a9]._Q.push([c, r]) } a[a9] = { init: function() { q("i", arguments) }, fetchBids: function() { q("f", arguments) }, setDisplayBids: function() {}, targetingKeys: function() { return [] }, _Q: [] }; A = p.createElement(s); A.async = !0; A.src = t; g = p.getElementsByTagName(s)[0]; g.parentNode.insertBefore(A, g) }("apstag", window, document, "script", "//c.amazon-adsystem.com/aax2/apstag.js"); //initialize the apstag.js library on the page to allow bidding apstag.init({ pubID: '24a8f0bd-cf02-44fc-8552-07652599f740', //enter your pub ID here as shown above, it must within quotes adServer: 'googletag' }); apstag.fetchBids({ slots: [{ slotID: 'div-gpt-ad-1541446805030-0', slotName: '/1011927/RCH_728_by_90_top', sizes: [ [728, 90] ] }, { slotID: 'div-gpt-ad-1541448438997-0', slotName: '/1011927/RCH_BTFLeaderboard', sizes: [ [728, 90] ] }, { slotID: 'div-gpt-ad-1541448646061-0', slotName: '/1011927/RCH_ThirdLeaderboard', sizes: [ [300, 250], [336, 280], [728, 90] ] }, { slotID: 'div-gpt-ad-1541448704352-0', slotName: '/1011927/RCH_Window', sizes: [ [300, 250], [336, 280], [728, 90] ] }, { slotID: 'div-gpt-ad-1541448763800-0', slotName: '/1011927/RCH_BTFWindow', sizes: [ [300, 250], [336, 280], [728, 90] ] }, { slotID: 'div-gpt-ad-1541448810587-0', slotName: '/1011927/RCH_ThirdWindow', sizes: [ [300, 250], [336, 280], [728, 90] ] }, { slotID: 'div-gpt-ad-1541448865152-0', slotName: '/1011927/RCH_FourthWindow', sizes: [ [300, 250], [336, 280], [728, 90] ] }, { slotID: 'div-gpt-ad-1541448906482-0', slotName: '/1011927/RCH_FifthWindow', sizes: [ [300, 250], [336, 280], [728, 90] ] }, { slotID: 'div-gpt-ad-1541448945598-0', slotName: '/1011927/RCH_SixthWindow', sizes: [ [300, 250], [336, 280], [728, 90] ] }, { slotID: 'div-gpt-ad-1541448985293-0', slotName: '/1011927/RCH_SeventhWindow', sizes: [ [300, 250], [336, 280], [728, 90] ] }, { slotID: 'div-gpt-ad-1541449086387-0', slotName: '/1011927/RCH_LargeSkyscraper', sizes: [ [300, 250], [336, 280], [300, 600], [160, 600] ] } ], timeout: 2e3 }, function(bids) { // set apstag targeting on googletag, then trigger the first DFP request in googletag's disableInitialLoad integration googletag.cmd.push(function() { apstag.setDisplayBids(); // googletag.pubads().refresh(); }); }); var PREBID_TIMEOUT = 2000; var googletag = googletag || {}; googletag.cmd = googletag.cmd || []; 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; }; setTimeout(initAdserver, PREBID_TIMEOUT); var pbjs = pbjs || {}; pbjs.que = pbjs.que || []; (function() { var pbjsEl = document.createElement("script"); pbjsEl.type = "text/javascript"; pbjsEl.async = true; pbjsEl.src = "//ssl-intgr-net.s3.amazonaws.com/prebid/pb124.js"; var pbjsTargetEl = document.getElementsByTagName("head")[0]; pbjsTargetEl.insertBefore(pbjsEl, pbjsTargetEl.firstChild); })(); (function() { var pbjsEf = document.createElement("script"); pbjsEf.type = "text/javascript"; pbjsEf.async = true; pbjsEf.src = "//ssl-intgr-net.s3.amazonaws.com/header/372.js"; var pbjsTargetEf = document.getElementsByTagName("head")[0]; pbjsTargetEf.insertBefore(pbjsEf, pbjsTargetEf.firstChild); })();