\" + \"\" + \" var googletag = googletag || {}; \" + \" googletag.cmd = googletag.cmd || []; \" + \" \" + \" \" + \" \" + \" googletag.cmd.push(function () { googletag.defineSlot('/\" + data.google_slot + \"/\" + data.google_id + \"', [\" + data.width + \", \" + data.height + \"], '\" + data.google_id + \"').addService(googletag.pubads().set(\\\"page_url\\\", \\\"\" + data.google_page_url + \"\\\")); \" + \" googletag.enableServices(); \" + \" googletag.display('\" + data.google_id + \"'); \" + \" }); \" + \" \" + \"
\"; var passback = function () { var width = data.width, height = data.height; var div = document.getElementById(criteoSlotId); div.innerHTML = \"\"; if (div) { var ifr = document.createElement('iframe'); ifr.setAttribute(\"id\", criteoSlotId+\"_iframe\"), ifr.setAttribute(\"frameborder\",\"0\"), ifr.setAttribute(\"allowtransparency\",\"true\"), ifr.setAttribute(\"hspace\",\"0\"), ifr.setAttribute(\"marginwidth\",\"0\"), ifr.setAttribute(\"marginheight\",\"0\"), ifr.setAttribute(\"scrolling\",\"no\"), ifr.setAttribute(\"vspace\",\"0\"), ifr.setAttribute(\"width\", width), ifr.setAttribute(\"height\", height);/* if(criteoZoneId == '1687250') { var add_div = \"\"; div.appendChild(add_div); }*/ div.appendChild(ifr); var htmlcode = PASSBACK_CODE_IN_STRING; var ifrd = ifr.contentWindow.document; ifrd.open(); ifrd.write(htmlcode); ifrd.close(); } }; var CriteoAdUnits = { \"placements\": [{ \"slotid\": criteoSlotId, \"zoneid\": criteoZoneId }]}; window.Criteo = window.Criteo || {}; window.Criteo.events = window.Criteo.events || []; var processCdbBid = function() { var bids = Criteo.GetBidsForAdUnit(criteoSlotId); if (bids.length> 0) { var bidFound = bids[0]; Criteo.RenderAd({ bidId: bidFound.id, containerId: bidFound.impressionId }); } else { passback(); } }; Criteo.events.push(function() { Criteo.SetIdentities([{ \"source\": \"viva100.com\", \"uids\": [ { \"id\": \"hashed_email_md5_here\", \"atype\": 3, \"ext\": { \"stype\": \"hemmd5\" } }, { \"id\": \"hashed_email_sha256_here\", \"atype\": 3, \"ext\": { \"stype\": \"hemsha256\" } } ] }]); Criteo.RequestBids(CriteoAdUnits, processCdbBid, 2000);}); }(); } ")