console.log("=== OPTILOAD CONFIG: 20181126 ===");
console.log("=== PB/OPTILOAD 1.40.0/1.2.0 ===");
/*
window.Adomik = window.Adomik || {};
Adomik.randomAdGroup = function () {
var rand = Math.random();
switch (false) {
case !(rand < 0.09):
return "ad_ex" + (Math.floor(100 * rand));
case !(rand < 0.10):
return "ad_bc";
default:
return "ad_opt";
}
};
*/
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
googletag.cmd.push(function () {
googletag.pubads().enableSingleRequest();
googletag.pubads().disableInitialLoad();
googletag.pubads().collapseEmptyDivs(true);
googletag.enableServices();
});
var pbjs = pbjs || {};
pbjs.que = pbjs.que || [];
var Optiload = {};
Optiload.adUnits = (function ($) {
Optiload.isMobile = function () {
return $(window).width() < 728;
}
var adUnits = [];
adUnits[0] = {
name: '/5966054/LaNostraTv/LaNostraTv_masthead',
sizes: [[728,90],[300, 100],[320, 100]],
lazy: false,
mappings:{
desktop: [[728,90]],
mobile: [[300, 100],[320, 100]]
},
hb: {
sizes: [[728, 90]],
bids:[
{
bidder:'adform',
params:{ mid: '572578'}
},
{
bidder: 'appnexusAst',
params: { placementId: '13470253'}
},
{
bidder: 'openx',
params: { unit: '540126643', delDomain: 'evolution-d.openx.net'}
},
// {
// bidder: 'pubmatic',
// params: { publisherId: '156394', adSlot: '1681116@300x250'}
// },
{
bidder: 'rubicon',
params: { accountId: "17322", siteId:"199002", zoneId: "979964", sizes: [2]}
},
{
bidder: 'smartadserver',
params: {siteId: 240831, domain:'https://prg.smartadserver.com',pageId:945476, formatId:58989}
},
{
bidder: 'ix',
params: {
siteId: '357018',
size: [728, 90]
}
}
]
},
hbmobile:{
sizes: [[300, 100],[320,100]],
bids:[
{
bidder:'adform',
params:{ mid: '572584'}
},
{
bidder: 'appnexusAst',
params: { placementId: '13470254'}
},
{
bidder: 'openx',
params: { unit: '540126643', delDomain: 'evolution-d.openx.net'}
},
{
bidder: 'rubicon',
params: { accountId: "17322", siteId:"199004", zoneId: "979976", sizes: [19,117]}
},
{
bidder: 'smartadserver',
params: {siteId: 240831, domain:'https://prg.smartadserver.com',pageId:945476, formatId:58990}
},
{
bidder: 'ix',
params: {
siteId: '357018',
size: [300, 100]
}
},
{
bidder: 'ix',
params: {
siteId: '357018',
size: [320, 100]
}
}
]
}
};
adUnits[1] = {
name: '/5966054/LaNostraTv/LaNostraTv_intext',
sizes: [[300, 250],[336,280],'fluid',[320, 480]],
lazy: true,
mappings:{
desktop: [[300,250],[336,280],'fluid'],
mobile: [[300,250],'fluid',[320, 480]]
},
hb: {
sizes: [[300, 250],[336,280]],
bids:[
{
bidder:'adform',
params:{ mid: '572579'}
},
{
bidder: 'appnexusAst',
params: { placementId: '13470255'}
},
{
bidder: 'openx',
params: { unit: '540126644', delDomain: 'evolution-d.openx.net'}
},
// {
// bidder: 'pubmatic',
// params: { publisherId: '156394', adSlot: '1681138@300x250'}
// },
{
bidder: 'rubicon',
params: { accountId: "17322", siteId:"199002", zoneId: "979966", sizes: [15,16]}
},
{
bidder: 'smartadserver',
params: {siteId: 240831, domain:'https://prg.smartadserver.com',pageId:945476, formatId:58993}
},
{
bidder: 'ix',
params: {
siteId: '358078',
size: [300, 250]
}
},
{
bidder: 'ix',
params: {
siteId: '358078',
size: [336, 280]
}
}
]
},
hbmobile:{
sizes: [[300, 250],[320, 480]],
bids:[
{
bidder:'adform',
params:{ mid: '572579'}
},
{
bidder: 'appnexusAst',
params: { placementId: '13470255'}
},
{
bidder: 'openx',
params: { unit: '540126644', delDomain: 'evolution-d.openx.net'}
},
// {
// bidder: 'pubmatic',
// params: { publisherId: '156394', adSlot: '1681138@300x250'}
// },
{
bidder: 'rubicon',
params: { accountId: "17322", siteId:"199004", zoneId: "979978", sizes: [15]}
},
{
bidder: 'smartadserver',
params: {siteId: 240831, domain:'https://prg.smartadserver.com',pageId:945476, formatId:58994}
},
{
bidder:'widespace',
params:{ sid: '5dd56a66-1473-474f-87b7-d3d5ed4c9e92'}
},
{
bidder: 'ix',
params: {
siteId: '358078',
size: [300, 250]
}
},
{
bidder: 'ix',
params: {
siteId: '358078',
size: [320, 480]
}
}
]
}
};
adUnits[2] = {
name: '/5966054/LaNostraTv/LaNostraTv_BTF',
sizes: [[300, 250],'fluid'],
lazy: true,
mappings:{
desktop: [[300,250],'fluid'],
mobile: [[300,250],'fluid']
},
hb: {
sizes: [[300, 250]],
bids:[
{
bidder:'adform',
params:{ mid: '572580'}
},
{
bidder: 'appnexusAst',
params: { placementId: '13470256'}
},
{
bidder: 'openx',
params: { unit: '540126645', delDomain: 'evolution-d.openx.net'}
},
// {
// bidder: 'pubmatic',
// params: { publisherId: '156394', adSlot: '1681139@300x250'}
// },
{
bidder: 'rubicon',
params: { accountId: "17322", siteId:"199002", zoneId: "979968", sizes: [15]}
},
{
bidder: 'smartadserver',
params: {siteId: 240831, domain:'https://prg.smartadserver.com',pageId:945476, formatId:59000}
},
{
bidder: 'ix',
params: {
siteId: '358079',
size: [300, 250]
}
}
]
},
hbmobile:{
sizes: [[300, 250]],
bids:[
{
bidder:'adform',
params:{ mid: '572580'}
},
{
bidder: 'appnexusAst',
params: { placementId: '13470256'}
},
{
bidder: 'openx',
params: { unit: '540126645', delDomain: 'evolution-d.openx.net'}
},
// {
// bidder: 'pubmatic',
// params: { publisherId: '156394', adSlot: '1681139@300x250'}
// },
{
bidder: 'rubicon',
params: { accountId: "17322", siteId:"199004", zoneId: "979980", sizes: [15]}
},
{
bidder: 'smartadserver',
params: {siteId: 240831, domain:'https://prg.smartadserver.com',pageId:945476, formatId:59001}
},
{
bidder: 'ix',
params: {
siteId: '358079',
size: [300, 250]
}
}
]
}
};
adUnits[3] = {
name: '/5966054/LaNostraTv/LaNostraTv_sidebarTop',
sizes: [[300, 250],'fluid'],
lazy: true,
mappings:{
desktop: [[300,250],'fluid'],
mobile: [[300,250],'fluid']
},
hb: {
sizes: [[300, 250]],
bids:[
{
bidder:'adform',
params:{ mid: '572581'}
},
{
bidder: 'appnexusAst',
params: { placementId: '13470263'}
},
{
bidder: 'openx',
params: { unit: '540126646', delDomain: 'evolution-d.openx.net'}
},
// {
// bidder: 'pubmatic',
// params: { publisherId: '156394', adSlot: '1681142@300x250'}
// },
{
bidder: 'rubicon',
params: { accountId: "17322", siteId:"199002", zoneId: "979970", sizes: [15]}
},
{
bidder: 'smartadserver',
params: {siteId: 240831, domain:'https://prg.smartadserver.com',pageId:945476, formatId:58998}
},
{
bidder: 'ix',
params: {
siteId: '358080',
size: [300, 250]
}
}
]
},
hbmobile:{
sizes: [[300, 250]],
bids:[
{
bidder:'adform',
params:{ mid: '572581'}
},
{
bidder: 'appnexusAst',
params: { placementId: '13470263'}
},
{
bidder: 'openx',
params: { unit: '540126646', delDomain: 'evolution-d.openx.net'}
},
// {
// bidder: 'pubmatic',
// params: { publisherId: '156394', adSlot: '1681142@300x250'}
// },
{
bidder: 'rubicon',
params: { accountId: "17322", siteId:"199004", zoneId: "979982", sizes: [15]}
},
{
bidder: 'smartadserver',
params: {siteId: 240831, domain:'https://prg.smartadserver.com',pageId:945476, formatId:58999}
},
{
bidder: 'ix',
params: {
siteId: '358080',
size: [300, 250]
}
}
]
}
};
adUnits[4] = {
name: '/5966054/LaNostraTv/LaNostraTv_sidebarSticky',
sizes: [[300, 250],[160,600],[300,600],'fluid'],
lazy: true,
mappings:{
desktop: [[300, 250],[160,600],[300,600],'fluid'],
mobile: [[300, 250],'fluid']
},
hb: {
sizes: [[300, 250],[300,600]],
bids:[
{
bidder:'adform',
params:{ mid: '572582'}
},
{
bidder: 'appnexusAst',
params: { placementId: '13470265'}
},
{
bidder: 'openx',
params: { unit: '540126647', delDomain: 'evolution-d.openx.net'}
},
// {
// bidder: 'pubmatic',
// params: { publisherId: '156394', adSlot: '1681143@300x250'}
// },
// {
// bidder: 'pubmatic',
// params: { publisherId: '156394', adSlot: '1681146@300x600'}
// },
{
bidder: 'rubicon',
params: { accountId: "17322", siteId:"199002", zoneId: "979972", sizes: [10,15]}
},
{
bidder: 'smartadserver',
params: {siteId: 240831, domain:'https://prg.smartadserver.com',pageId:945476, formatId:58995}
},
{
bidder: 'ix',
params: {
siteId: '358081',
size: [300, 250]
}
},
{
bidder: 'ix',
params: {
siteId: '358081',
size: [300, 600]
}
}
]
},
hbmobile:{
sizes: [[300, 250]],
bids:[
{
bidder:'adform',
params:{ mid: '572582'}
},
{
bidder: 'appnexusAst',
params: { placementId: '13470265'}
},
{
bidder: 'openx',
params: { unit: '540126647', delDomain: 'evolution-d.openx.net'}
},
// {
// bidder: 'pubmatic',
// params: { publisherId: '156394', adSlot: '1681143@300x250'}
// },
{
bidder: 'rubicon',
params: { accountId: "17322", siteId:"199004", zoneId: "979984", sizes: [15]}
},
{
bidder: 'smartadserver',
params: {siteId: 240831, domain:'https://prg.smartadserver.com',pageId:945476, formatId:58994}
},
{
bidder: 'ix',
params: {
siteId: '358081',
size: [300, 250]
}
}
]
}
};
adUnits[5] = {
name: '/5966054/LaNostraTv/LaNostraTv_floorad',
sizes: [[970, 90], [728, 90], [300, 100], [320, 100], [1,1],[1,4]],
mappings:{
desktop: [[970, 90], [728, 90],[1,1],[1,4]],
mobile: [[300,100],[320,100],[1,1],[1,4]]
},
hb: {
sizes: [[728, 90],[970,90]],
bids: [
{
bidder: 'adform',
params: { mid: '572583'}
},
{
bidder: 'appnexusAst',
params: { placementId: '14223021'}
},
{
bidder: 'openx',
params: { unit: '540126648', delDomain: 'evolution-d.openx.net'}
},
// {
// bidder: 'pubmatic',
// params: { publisherId: '156394', adSlot: '1681133@728x90'}
// },
// {
// bidder: 'pubmatic',
// params: { publisherId: '156394', adSlot: '1681134@970x90'}
// },
{
bidder: 'rubicon',
params: { accountId: "17322", siteId:"199002", zoneId: "979974", sizes: [2,55]}
},
{
bidder: 'smartadserver',
params: {siteId: 240831, domain:'https://prg.smartadserver.com',pageId:945476, formatId:66350}
},
{
bidder: 'ix',
params: {
siteId: '358082',
size: [728, 90]
}
},
{
bidder: 'ix',
params: {
siteId: '358082',
size: [970, 90]
}
}
]
},
hbmobile: {
sizes: [[300, 100],[320,100]],
bids: [
{
bidder: 'adform',
params: {mid: '572585'}
},
{
bidder: 'appnexusAst',
params: { placementId: '13470266'}
},
{
bidder: 'openx',
params: { unit: '540126648', delDomain: 'evolution-d.openx.net'}
},
// {
// bidder: 'pubmatic',
// params: { publisherId: '156394', adSlot: '1681132@320x100'}
// },
{
bidder: 'rubicon',
params: { accountId: "17322", siteId:"199004", zoneId: "979986", sizes: [19,117]}
},
{
bidder: 'smartadserver',
params: {siteId: 240831, domain:'https://prg.smartadserver.com',pageId:945476, formatId:58992}
},
{
bidder: 'ix',
params: {
siteId: '358082',
size: [300, 100]
}
},
{
bidder: 'ix',
params: {
siteId: '358082',
size: [320, 100]
}
}
]
}
};
adUnits[6] = {
name: '/5966054/LaNostraTv/LaNostraTv_skin',
sizes: [[1, 1],[1,3],[1800,1000]],
mappings:{
desktop: [[1,1],[1,3],[1800,1000]],
mobile: [[1,1],[1,3]]
}
};
adUnits[7] = {
name: '/5966054/LaNostraTv/LaNostraTv_Video_topinline',
sizes: [[1, 1]],
mappings:{
desktop: [[1,1]],
mobile: [[1,1]]
}
};
adUnits[8] = {
name: '/5966054/LaNostraTv/LaNostraTv_Video_sidebar',
sizes: [[1, 1]],
lazy: false,
mappings:{
desktop: [[1,1]],
mobile: [[1,1]]
}
};
return adUnits;
}(jQuery));
(function ($, Optiload) {
Optiload.bus = $({});
Optiload.sm = null;
var cmp_loaded = false;
var prebid_loaded = false;
var optiload_loaded = false; include_js("https://assets.evolutionadv.it/confiant/confiant.js", function () {});
/*
(function (window) {
window.__cmpAcceptOnScroll = true;
window.__cmp = (function () {
var commandQueue = [];
var cmp = function (command, parameter, callback) {
commandQueue.push({
command: command,
parameter: parameter,
callback: callback
});
};
cmp.commandQueue = commandQueue;
cmp.config = {
forceLocale: "it",
localization: {
it: {
intro: {
// title: '',
title:" ",
description: "
Questo sito utilizza pubblicitĂ e servizi basati su cookie.\ Accetta l'utilizzo dei cookie sul tuo dispositivo per consentire una maggiore personalizzazione di pubblicitĂ e contenuti del sito.\ Per maggiori informazioni visita la nostra privacy policy.
", acceptAll: "ACCETTA", } } }, repromptOptions: { fullConsentGiven: 360, someConsentGiven: 1, noConsentGiven: 0, }, storeConsentGlobally: true, globalConsentLocation: '//cdn.digitrust.mgr.consensu.org/1/portal.html', storePublisherData: false, testingMode: 'normal', geoIPVendor: '//cdn.digitrust.mgr.consensu.org/1/geoip.json', layout: 'footer' }; return cmp; }()); })(window); window.__cmp('renderCmpIfNeeded'); include_js("https://assets.evolutionadv.it/cmp/adform/1.6.2/cmp.complete.bundle.js", function () { //1.1.0 // var css = ".footerV2_footerV2--2gaTb, .footer_footer--2VRZS{display:none !important;}\ // .popupFooter_content--1E1tr{background:rgba(255,255,255,0.8)}\ // div.popupFooter_overlay--2OhI-{background-color: rgba(0,0,0,0)!important;}\ // .app_gdpr--3hGmb{font-size:13px!important;}\ // div.introV2_intro--2-0Kv .introV2_title--20c_L{padding:0!important;}\ // button.button_button--2xwHu, input[type=button].button_button--2xwHu{padding:5px!important;}\ // div.introV2_options--3zFqj button.button_button--2xwHu.introV2_acceptAll--3TK9h{padding:7px!important}\ // @media(max-width:767px){\ // .popupFooter_content--1E1tr{height:auto!important;width:100%!important;}\ // div.introV2_intro--2-0Kv .introV2_contentMessage--25C9n, div.introV2_intro--2-0Kv{padding:0!important;}\ // }", var css = ".footerV2_footerV2--13OCL, .footer_footer--3uVCQ{display:none !important;}\ .popupFooter_content--h3gli{background:rgba(255,255,255,0.8)}\ div.popupFooter_overlay--3JqqW{background-color: rgba(0,0,0,0)!important;}\ .app_gdpr--2k2uB{font-size:13px!important;}\ div.introV2_intro--38lAX .introV2_title--2n6j3{padding:0!important;}\ button.button_button--lgX0P, input[type=button].button_button--lgX0P{padding:5px!important;}\ div.introV2_options--12wQO button.button_button--lgX0P.introV2_acceptAll--3PxeJ{padding:7px!important}\ @media(max-width:767px){\ .popupFooter_content--h3gli{height:auto!important;width:100%!important;}\ div.introV2_intro--38lAX .introV2_contentMessage--2yLOV, div.introV2_intro--38lAX{padding:0!important;}\ }", head = document.head || document.getElementsByTagName('head')[0], style = document.createElement('style'); style.type = 'text/css'; // @ts-ignore if (style.styleSheet) { // @ts-ignore style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); } head.appendChild(style); // function getConsent() { // @ts-ignore window.__cmp('getConsentData', null, function (result) { // if (result) { cmp_loaded = true; startOptiload(); // } else { // setTimeout(getConsent, 1000); // } }); // } // getConsent(); }); // @ts-ignore window.__cmp('addEventListener', 'cmpReady', function (response) { console.log("CMP: ready"); $(window).on("scroll", acceptOnScroll); var button = ".button_button--lgX0P.introV2_acceptAll--3PxeJ "; $(".popupFooter_overlay--3JqqW").on("click",acceptOnClick); function acceptOnScroll() { // @ts-ignore if ($(button).length > 0 && $(button).is(":visible") && window.__cmpAcceptOnScroll){ // @ts-ignore window.__cmpAcceptOnScroll = false; $(button).trigger("click"); console.log("CMP: accept on scroll"); $(window).off("scroll", acceptOnScroll); $(".popupFooter_overlay--3JqqW").off("click",acceptOnClick); } } function acceptOnClick() { // @ts-ignore if (window.__cmpAcceptOnScroll){ // @ts-ignore window.__cmpAcceptOnScroll = false; $(button).trigger("click"); console.log("CMP: accept on click"); $(window).off("scroll", acceptOnScroll); $(".popupFooter_overlay--2OhI-").off("click",acceptOnClick); } } setTimeout(function(){ $(window).off("scroll", acceptOnScroll);},60000); // var hasHandler = false; // var retries = 0; // function findButton() { // if ($(button).length > 0 && $(button).is(":visible") && // !hasConsentInfo && !hasHandler) { // console.log("CMP: attach handler"); // $(window).on("scroll", acceptOnScroll); // hasHandler = true; // } else { // retries++; // if (retries < 60) { // setTimeout(findButton, 1000); // } // } // } // findButton(); window.__cmp('addEventListener', 'consentStringUpdated', function (result) { window.__cmp('getVendorConsents', null, function (result) { var consent = result.purposeConsents["1"] && result.purposeConsents["2"] && result.purposeConsents["3"]; console.log("CMP: Consent 123 => " + consent); var yesNo = consent ? "si" : "no"; }); }); }); window.__cmp('addEventListener', 'onSubmit', function (response) { $('html,body').animate({ scrollTop: 0 }, 'slow'); }); */ // include_js("https://cdn.b4u-advertising.it/gp/libgen.php",function(){ // }); include_js("https://assets.evolutionadv.it/cmp/pubmatic/cmp.complete.bundle.js",function(){ cmp_loaded = true; startOptiload(); }); include_js("https://assets.evolutionadv.it/prebid/1.40.0/prebid.min.js", function () { pbjs.setConfig({ cache: { url: "https://prebid.adnxs.com/pbc/v1/cache" }, // "currency": { // "adServerCurrency": "JPY", /* Enables currency feature -- loads the rate file */ // "conversionRateFile": "url" // Allows the publisher to override the default rate file // }, "debug": false, // Previously `logging` endpoint: "https://prebid.adnxs.com/pbs/v1/auction", syncEndpoint: "https://prebid.adnxs.com/pbs/v1/cookie_sync", // "s2sConfig" : { // accountId : 'ae2fd2d6-deab-4262-bf76-bc7ef4ab7d87', //string:required: account ID obtained in step 1 // enabled : true, //boolean:required: enables s2s - default false // bidders : ['pubmatic','rubicon'], //array[string]:required: of bidder codes to enable S2S. // //Note these must have been including in the Prebid.js build from Step 2. // timeout : 600, //number:optional timeout in ms for bidders called via the S2S endpoint. // //default value is 1000 // //adapter : 'prebidServer', //string:optional: Adapter code for S2S code. Defaults to 'prebidServer' // cookieSet : true //boolean:optional: If 'false' (not recommended), opt out of link rewriting // //and cookie-setting that allow a persistent cookie for improved cookie // //match rates. // }, consentManagement: { cmpApi: 'iab', timeout: 60000, allowAuctionWithoutConsent: false }, "priceGranularity": "high", "enableSendAllBids": true, // Default will be `true` as of 1.0 "bidderSequence": "random", "bidderTimeout": 1200, // Default for all requests. "publisherDomain": "lanostratv.it", // Used for SafeFrame creative. //By default, Prebid.js version 0.34.0+ turns off user syncing through iframes. //OpenX strongly recommends enabling user syncing through iframes. //This functionality improves DSP user match rates and increases the OpenX bid rate and bid price. // Be sure to call pbjs.setConfig() only once. "userSync": { iframeEnabled: true, enabledBidders: ['pubmatic','openx'], syncDelay: 6000 }, "cookieSyncDelay": 100 }); prebid_loaded = true; startOptiload(); }); include_js("https://assets.evolutionadv.it/optiload/1.2.0/optiload.min.js", function () { optiload_loaded = true; startOptiload(); }); function include_js(file, callback) { var js = null; var loaded = false; var head = document.getElementsByTagName('head')[0]; js = document.createElement('script'); js.setAttribute('type', 'text/javascript'); js.setAttribute('src', file); head.appendChild(js); js.onreadystatechange = function () { if (js.readyState == 'complete' && !loaded) { loaded = true; if (callback) { callback(); } } } js.onload = function () { if (!loaded) { loaded = true; if (callback) { callback(); } } } return false; } function startOptiload() { if (!cmp_loaded || !prebid_loaded || !optiload_loaded) { return; } Optiload.sm = new slotManager.SlotManager(Optiload.adUnits, { intervalInactivity: 50 }); $(function () { //Optiload.bus.trigger("optiload_ready"); //se le adUnit sono caricate da fuori commento questo metodo loadAdUnits(); loadFloorad(5); //idFloorad //loadSpotx(); loadSkin(6); // idSkin loadNuggAd(); }); } function loadNuggAd(){ var contentnugg = top.location.href + ','; var metas = document.getElementsByTagName('meta'); for (var i=0; iChiudi
\