Ricardo Merino reemplaza a Pablo Flores en la gerencia de Petroecuador

[] 0) { console.log(segments); window.target=segments; } else { console.log(“no existen segmentos de ADMANAGER”); window.target=segments; } }]); // END current users segment for admanager // Read tags for admanager campaing if (typeof $(‘meta[name=keywords]’).attr(“content”) === ‘undefined’) { var tags=”; } else { var str=$(‘meta[name=keywords]’).attr(“content”); var n = str.includes(“Richard”); var o = str.includes(“Carapaz”); //var p = str.includes(“Moreno”); var tags=”; if(n ==true || o==true) var tags=(‘carapaz’); }; console.log(n); console.log(o); //console.log(p); // End tags for admager campaing //javascript errors var apntag = apntag || {}; apntag.anq = apntag.anq || []; apntag.anq.push(function() { }); // end javascript errors var path2= window.location.pathname.split(“/”,3); var url_category2=””+path2.slice(1,2); console.log(‘category=’+url_category2); var note=””+path2.slice(2,3); var keyword_note=note.substr(0, 20); var mid=’_middle_ec’; console.log (‘keyword_note_ec=’+keyword_note); if(url_category2==”pages”) { console.log( “ready pages!” ); } if(url_category2==””) { var url_category2=”home”; var mid=’_middel_ec’; } if(note!=””) { var url_category2=”notafinal”; } console.log(‘GAM-READY2=’+url_category2); window.googletag = window.googletag || {cmd: []}; googletag.cmd.push(function() { ///sizemapping var mapping1 = googletag.sizeMapping(). addSize([992, 1], [[970, 90], [728, 90], [1, 1]]). //desktop addSize([768, 1], [[728, 90], [1, 1]]). //tablet addSize([320, 1], [[300,90],[300,100],[300,50],[300,70],[320,90],[320,100],[320,50],[320,70]]). //mobile addSize([0, 0], []). build(); var mapping2 = googletag.sizeMapping(). addSize([992, 1], [260, 90]). //desktop addSize([768, 1], []). //tablet addSize([320, 1], []). //mobile addSize([0, 0], []). build(); var mapping3 = googletag.sizeMapping(). addSize([992, 1], [[1300,500 ], [1, 1]]). //desktop addSize([768, 1], []). //tablet addSize([320, 1], []). //mobile addSize([0, 0], []). build(); var mapping5 = googletag.sizeMapping() .addSize([1200, 481],[160,600]) .addSize([640, 480], []) .addSize([0, 0], []) .build(); var mapping6 = googletag.sizeMapping(). addSize([992, 1], [300,600]). //desktop addSize([768, 1], []). //tablet addSize([320, 1], []). //mobile addSize([0, 0], []). build(); var mapping7 = googletag.sizeMapping(). addSize([992, 1], [[300, 90], [950, 60], [970, 90]]). //desktop addSize([768, 1], []). //tablet addSize([320, 1], []). //mobile addSize([0, 0], []). build(); /////switch switch (url_category2) { case ‘home’: var middle_box_ec = googletag.defineSlot(‘/106021898/elcomercio_middle_box_ec/’+url_category2+’_middle_box_ec’, [300, 90], ‘div-gpt-elcomercio_middle_box_ec-0’) .addService(googletag.pubads() ); var catalogos_ec = googletag.defineSlot(‘/106021898/elcomercio_catalogos/’+url_category2+’_catalogos_ec’, [300, 600], ‘div-gpt-elcomercio_catalogos-0’) .defineSizeMapping(mapping6) .addService(googletag.pubads() ); var leaderboard_ec = googletag.defineSlot(‘/106021898/elcomercio_leaderboard_ec/’+url_category2+’_leaderboard_ec’, [[320, 100], [320, 50], [300, 70], [300, 50], [300, 100], [300, 90], [320, 90], [970, 90], [728, 90], [320, 70]], ‘apn_ad_slot_12’) .addService(googletag.pubads() ); googletag.defineSlot(‘/106021898/elcomercio_middle2_ec’, [300, 250], ‘div-gpt-ad-1591201444854-0’) .addService(googletag.pubads() ); break; case ‘notafinal’: var middle1_ec = googletag.defineSlot(‘/106021898/elcomercio_middle1_ec/’+url_category2+’_middle1_ec’, [300, 250], ‘nuevo_middle1’) .addService(googletag.pubads() ); break; case ‘pages’: console.log(‘El pages’); break; default: console.log(‘Lo lamentamos, por el momento no disponemos de ‘ + url_category2 + ‘.’); } ///end switch var richmedia_ec = googletag.defineSlot(‘/106021898/elcomercio_richmedia_ec/’+url_category2+’_richmedia_ec’, [1, 1], ‘div-gpt-elcomercio_richmedia_ec-0’).addService(googletag.pubads()); var wallpaper_ec = googletag.defineSlot(‘/106021898/elcomercio_wallpaper_ec/’+url_category2+’_wallpaper_ec’, [1, 1], ‘div-gpt-elcomercio_wallpaper_ec-0’).defineSizeMapping(mapping3).addService(googletag.pubads()); var top_ec = googletag.defineSlot(‘/106021898/elcomercio_top_ec/’+url_category2+’_top_ec’, [[970, 90], [300, 70], [320, 50], [300, 90], [320, 70], [728, 90], [320, 90], [300, 50], [320, 100], [300, 100]], ‘div-gpt-elcomercio_top_ec-0’).defineSizeMapping(mapping1) .addService(googletag.pubads() ); var top1_ec = googletag.defineSlot(‘/106021898/elcomercio_top1_ec/’+url_category2+’_top1_ec’, [260, 90], ‘div-gpt-elcomercio_top1_ec-0’).defineSizeMapping(mapping2) .addService(googletag.pubads() ); var middle_ec = googletag.defineSlot(‘/106021898/Elcomercio_middel_ec/’+url_category2+mid, [300, 250], ‘div-gpt-elcomercio_middle_ec-0’) .addService(googletag.pubads() ); console.log(url_category2+mid); var skyscaper_ec_izquierdo = googletag.defineSlot(‘/106021898/elcomercio_skyscaper_ec_izquierdo/’+url_category2+’_skyscaper_ec_izquierdo’, [[120, 600], [160, 600]], ‘div-gpt-elcomercio_skyscaper_ec_izquierdo-0’). defineSizeMapping(mapping5) .addService(googletag.pubads() ); var skyscaper_ec_derecho = googletag.defineSlot(‘/106021898/elcomercio_skyscaper_ec_derecho/’+url_category2+’_skyscaper_ec_derecho’, [[160, 600], [120, 600]], ‘div-gpt-elcomercio_skyscaper_ec_derecho-0’). defineSizeMapping(mapping5) .addService(googletag.pubads() ); var marquee_ec = googletag.defineSlot(‘/106021898/elcomercio_marquee_ec/’+url_category2+’_marquee_ec’, [[300, 90], [950, 60], [970, 90]], ‘div-gpt-elcomercio_marquee_ec-0’) .defineSizeMapping(mapping7) .addService(googletag.pubads() ); var superboard_ec = googletag.defineSlot(‘/106021898/elcomercio_superboard_ec/’+url_category2+’_superboard_ec’, [[970, 90], [970, 250], [300, 250]], ‘div-gpt-elcomercio_superboard_ec-0’) .addService(googletag.pubads() ); googletag.defineSlot(‘/106021898/elcomercio_sticky_ec/’+url_category2+’sticky_ec’, [320, 50], ‘div-gpt-ad-1592215272384-0’) .addService(googletag.pubads() ); googletag.defineSlot(‘/106021898/elcomercio_videooutstream’, [1, 1], ‘div-gpt-ad-1591889221241-0’).addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.defineSlot(‘/106021898/elcomercio_videooutstream1’, [1, 1], ‘div-gpt-ad-1591889221249-0’).addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); ////events googletag.pubads().addEventListener(‘slotRenderEnded’, function(event) { if(richmedia_ec === event.slot){ console.log(‘richmedia_ec has been rendered’); } if(wallpaper_ec === event.slot){ console.log(‘wallpaper_ec has been rendered’); if(url_category2==”home”) { if (JSON.stringify(event.size)=='[1300,500]’) { $(“.container_publateral”).css(“display”, “none”); $(“.ads728”).css(“height”, “90px”); } } else { $(“#div-gpt-elcomercio_wallpaper_ec-0”).css(“display”, “none”); } } if(top_ec === event.slot){ console.log(‘top_ec has been rendered’); if (JSON.stringify(event.size)=='[970,90]’) { $(‘.ads260’).html(“”); } } if(top1_ec === event.slot){ console.log(‘top1_ec has been rendered’); } if(middle_ec === event.slot){ console.log(‘middle_ec has been rendered’); } if(skyscaper_ec_izquierdo === event.slot){ console.log(‘skyscaper_ec_izquierdo has been rendered’); } if(skyscaper_ec_derecho === event.slot){ console.log(‘skyscaper_ec_derecho has been rendered’); } if(marquee_ec === event.slot){ console.log(‘marquee has been rendered’); } if(middle_box_ec === event.slot){ console.log(‘middle_box_ec has been rendered’); } if(superboard_ec === event.slot){ console.log(‘superboard_ec has been rendered’); } if(middle1_ec === event.slot){ console.log(‘nuevo_mi has been rendered’); if(isMobile.mobilecheck() == true) { $( ‘#nuevo_middle1’ ).css( “text-align”, “center” ); $( ‘#nuevo_middle1’ ).css( “margin-bottom”, “20px” ); } else { $( ‘#nuevo_middle1’ ).css( “width”, “322px” ); $( ‘#nuevo_middle1’ ).css( “padding”, “11px” ); $( ‘#nuevo_middle1’ ).css( “margin”, “13px auto” ); $( ‘#nuevo_middle1’ ).css( “background”, “repeating-linear-gradient(-45deg, #ccc, #ccc 2px, white 2px, white 4px)” ); } } console.log(‘size ‘+JSON.stringify(event.size)); // console.log(‘isEmpty ‘+event.isEmpty); console.log(‘lineItemId ‘+event.lineItemId); console.log(‘——‘); }); ///end events googletag.pubads().setTargeting(‘CxSegments’, target); googletag.pubads().setTargeting(‘keyword_tag_ec’, tags); googletag.pubads().setTargeting(‘keyword_nota_ec’, keyword_note); googletag.pubads().enableSingleRequest(); googletag.pubads().collapseEmptyDivs(); googletag.enableServices(); }); ]]>

[]

[]

[]

[]

[]

[]

[]

NOTA:
Este contenido ha sido publicado originalmente en la siguiente dirección: Haz Click Aquí

TAGS:

Deje su comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *