if (nugg != 1) { function isEmpty(obj) { for(var prop in obj) { if(obj.hasOwnProperty(prop)) return false; } return true; } var website = (window.location != window.parent.location) ? document.referrer: document.location.href; params = { "cat":"familyandparenting", "sscat":"Children's education" }; var src = '//tr.cloud-media.fr/t/a1234bc7-d6b5-4795-ac2b-f5ace634020?website='+encodeURI(website)+'&'; for (var i in params) { key = i; value = encodeURI(params[i]); src+= key+"="+value+"&"; } var ear = document.createElement('img'); ear.src = src; ear.width = 1; ear.height = 1; if(document.getElementsByTagName("head").length>0)document.getElementsByTagName("head")[0].appendChild(ear); else if(document.getElementsByTagName("body").length>0)document.getElementsByTagName("body")[0].appendChild(ear); var nugg = document.createElement("script"); nugg.setAttribute("type", "text/javascript"); nugg.setAttribute("src", ('https:' == document.location.protocol ? 'https:' : 'http:')+"//ads.themoneytizer.com/nugg2.php?theme=580949787"); nugg.setAttribute("async", "true"); document.head.appendChild(nugg); (function(i,s,o,g,r,a,m){i['AdomikHeaderBiddingAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)};var pbjs=i.pbjs=(i.pbjs||{});pbjs.que=pbjs.que||[]; pbjs.que.push(function(){["bidAdjustment","bidTimeout","bidRequested","bidResponse","bidWon"] .forEach(function(e){pbjs.onEvent&&pbjs.onEvent(e,function(){i[r]('on',e,arguments);});});}); a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//384627.hb.adomik.com/ahba.js','ahba'); ahba("set", "uid", "moneytizer-384627"); var nugg = 1; var pbjs = (typeof pbjs != "undefined")? pbjs : {} ; pbjs.que = pbjs.que || []; var d = document, pbs = d.createElement('script'); pbs.setAttribute("type","text/javascript"); pbs.setAttribute("src",('https:' == document.location.protocol ? 'https:' : 'http:')+"//ads.themoneytizer.com/moneybid13/build/dist/prebid.js"); pbs.setAttribute("async", "true"); var target = document.getElementsByTagName('head')[0]; target.insertBefore(pbs, target.firstChild); PB_PAGE_TIMEOUT = 2000; function initAdserver() { pbjs.initAdserverSet = true; // Step 1: Set key value targeting on the placements if (pbjs.libLoaded) { // For each of your placement, get and set targeting params var targetingParams = pbjs.getAdserverTargeting(); } // Step 2: Trigger the page to send the impressions to your ad server. }; setTimeout(initAdserver, PB_PAGE_TIMEOUT); pbjs.que.push(function(){ var adUnits = [ { code: '26323', sizes: [[300, 600]], bids: [ {bidder: 'appnexus', params:{ placementId: '6457452' } }, {bidder: 'rubicon', params:{ accountId:'11740', siteId: '39538', zoneId:'392244', sizes:[10], inventory:'{siteid:4970}', keywords:'siteid:4970' } }, ] }, { code: '26324', sizes: [[120, 600]], bids: [ {bidder: 'appnexus', params:{ placementId: '6457454' } }, {bidder: 'rubicon', params:{ accountId:'11740', siteId: '39538', zoneId:'392244', sizes:[8], inventory:'{siteid:4970}', keywords:'siteid:4970' } }, ] }, { code: '26711', sizes: [[300, 250]], bids: [ {bidder: 'appnexus', params:{ placementId: '6457455' } }, {bidder: 'rubicon', params:{ accountId:'11740', siteId: '39538', zoneId:'406158', sizes:[15], inventory:'{siteid:4970}', keywords:'siteid:4970' } }, ] }, { code: '26706', sizes: [[160, 600]], bids: [ {bidder: 'appnexus', params:{ placementId: '6457459' } }, {bidder: 'rubicon', params:{ accountId:'11740', siteId: '39538', zoneId:'392244', sizes:[9], inventory:'{siteid:4970}', keywords:'siteid:4970' } }, ] }, { code: '30012', sizes: [[728, 90]], bids: [ {bidder: 'appnexus', params:{ placementId: '6457456' } }, {bidder: 'rubicon', params:{ accountId:'11740', siteId: '39538', zoneId:'406158', sizes:[2], inventory:'{siteid:4970}', keywords:'siteid:4970' } }, ] }, { code: '39287', sizes: [[970, 250]], bids: [ {bidder: 'appnexus', params:{ placementId: '6457457' } }, {bidder: 'rubicon', params:{ accountId:'11740', siteId: '39538', zoneId:'392244', sizes:[57], inventory:'{siteid:4970}', keywords:'siteid:4970' } }, ] },]; pbjs.addAdUnits(adUnits); }); pbjs.bidderSettings = { rubicon: { bidCpmAdjustment : function(bidCpm){ return bidCpm * .875; }, }, brealtime: { bidCpmAdjustment : function(bidCpm){ return bidCpm * .8; }, }, standard: { adserverTargeting: [{ key: "hb_bidder", val: function(bidResponse) { return bidResponse.bidderCode; } }, { key: "hb_adid", val: function(bidResponse) { return bidResponse.adId; } },{ key: "hb_height", val: function(bidResponse) { return bidResponse.height; } }, { key: "hb_bid", val: function(bidResponse) { var cpm = bidResponse.cpm*1.1; if (cpm < 0.10) { return (Math.floor(cpm * 50) / 50).toFixed(2); } else if (cpm < 5.00) { return (Math.floor(cpm * 20) / 20).toFixed(2); } else if (cpm < 10.00) { return (Math.floor(cpm * 2) / 2).toFixed(2); } else { return '10.00'; } } }] } }; pbjs.que.push(function(){ pbjs.requestBids({ // This callback gets triggered when all bids for this // ad unit come back. bidsBackHandler: function(bidResponses) { window.targetingParams = pbjs.getAdserverTargeting(); } }); }); } var mydiv = document.getElementById("4970-15"); var creatediv = document.createElement("div"); creatediv.id = "sas_26755"; mydiv.appendChild(creatediv); var sc = document.createElement("script"); sc.type = "text/javascript"; sc.async = true; (function foo(){ if (window.targetingParams && !isEmpty(window.targetingParams[26755]) || window.isReady == 1){ window.targetingParams = window.targetingParams || []; window.targetingParams[26755] = window.targetingParams[26755] || {}; var hb_adid = "hb_adid="+window.targetingParams[26755].hb_adid; var hb_pb = "hb_pb="+window.targetingParams[26755].hb_bid; var hb_bidder = "hb_bidder="+window.targetingParams[26755].hb_bidder; if(window.targetingParams[26755].hb_height == "480"){ var hb_format = "hb_format="+26755+"-1"; }else{ var hb_format = "hb_format="+26755; } var moneybid = ";"+hb_adid+";"+hb_pb+";"+hb_bidder+";"+hb_format; sc.text = sas.cmd.push(function(){sas.call('std',{siteId: 93990, pageId: 627232, formatId: 26755, target: crtg_content+moneybid});});; creatediv.appendChild(sc); }else{ setTimeout(function(){ foo(); },50); } })(); setTimeout(function(){window.isReady = 1;}, 2000);