fo = unescape(y); c = c + 1 } if (x == "_w18userdetail") { _w18userdetail_out._w18userdetail = unescape(y); c = c + 1 } if (c == 2) {break;} } if(c==1 || c==2){ var contact = JSON.parse(_w18userinfo_out._w18userinfo); for (var item in contact) { googletag.pubads().setTargeting(item,contact[item]); } if(_w18userdetail_out._w18userdetail != '' || _w18userdetail_out._w18userdetail.length >0 ){ var lapsed_contact = JSON.parse(_w18userdetail_out._w18userdetail); if(_w18userdetail_out._w18userdetail){ for (var lapsed_item in lapsed_contact) { googletag.pubads().setTargeting(lapsed_item,lapsed_contact[lapsed_item]); } } } } } function _w18_lc_settargeting() { if(typeof localStorage !== "undefined") { //start of code if(localStorage.getItem("di_consume_articles") !== null) { var di_consume_articles_json = localStorage.getItem("di_consume_articles"); if(!di_consume_articles_json || di_consume_articles_json !== null){ var di_consume_articles_old_arr = JSON.parse(di_consume_articles_json); var default_list_json = '{"2089141":1, "1624181":1, "1623461":1, "1399696":1}'; var default_list = JSON.parse(default_list_json); //default_list = default_list.filter(function(n){ return n != undefined }); var not_consume = new Array();//send to dfp for(key in default_list){ if(di_consume_articles_old_arr[key] != 1){ not_consume.push(key); } } if(not_consume.length>0){ googletag.pubads().setTargeting('di_consume_articles',not_consume); } } } //end of code } } //mctop_getCookie //dfpGutter_getCookie //mctop_setCookie //dfpGutter_setCookie var dfp_date = new Date(); //var mc_mcmarketinternal_gutter_ck = "MC_GUTTER_mcmarketinternal_"+dfp_date.getFullYear()+"-"+(dfp_date.getMonth()+1)+"-"+dfp_date.getDate(); var mc_mcmarketinternal_gutter_ck = "MC_GUTTER_mcmarketinternal"; function close_mc_gutter(){ dfpGutter_setCookie(mc_mcmarketinternal_gutter_ck,1,1); } function dfpGutter_setCookie(e,t,n){ var r=new Date; r.setDate(r.getDate()+n); var i=escape(t)+(n==null?"":"; expires="+r.toUTCString())+"; path=/; domain=.moneycontrol.com; "; document.cookie=e+"="+i } function dfpGutter_getCookie(e){ var t,n,r,i=document.cookie.split(";"); for(t=0;t