serten Posted June 6, 2018 Report Share Posted June 6, 2018 Hi, we are now facing some strange issue. We are using Revive Adserver for a few websites. Some of them are currently running on HTTPS, the rest we are preparing to run it. But when we switched on of them from HTTP to HTTPS, few ads are not displayed. We are using JS Tag for delivery of ads. What is strange, that on one site are more zones, delivered the same way. But most of them are working. just 2 or 3 are broken some way. Generated code for one zone looks like this: <!--/* * * Revive Adserver Javascript Tag * - Generated with Revive Adserver v4.0.1 * */--> <script type='text/javascript'><!--//<![CDATA[ var m3_u = (location.protocol=='https:'?'https://ad.somesite.com/ad/www/delivery/ajs.php':'http://ad.somesite.com/ad/www/delivery/ajs.php'); var m3_r = Math.floor(Math.random()*99999999999); if (!document.MAX_used) document.MAX_used = ','; document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u); document.write ("?zoneid=90"); document.write ('&cb=' + m3_r); if (document.MAX_used != ',') document.write ("&exclude=" + document.MAX_used); document.write (document.charset ? '&charset='+document.charset : (document.characterSet ? '&charset='+document.characterSet : '')); document.write ("&loc=" + escape(window.location)); if (document.referrer) document.write ("&referer=" + escape(document.referrer)); if (document.context) document.write ("&context=" + escape(document.context)); if (document.mmm_fo) document.write ("&mmm_fo=1"); document.write ("'><\/scr"+"ipt>"); //]]>--></script><noscript><a href='http://ad.somesite.com/ad/www/delivery/ck.php?n=ab334ad0&cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://ad.somesite.com/ad/www/delivery/avw.php?zoneid=90&cb=INSERT_RANDOM_NUMBER_HERE&n=ab334ad0' border='0' alt='' /></a></noscript> Through HTTP it gets banner from this URL: http://ad.somesite.com/ad/www/delivery/ajs.php?zoneid=90&cb=65331294334&charset=UTF-8&loc=http%3A//othersite.com/path/to/site And we get correct content of banner. var OX_08831917 = ''; OX_08831917 += "<"+"!-- SOME CODE -->\n"; OX_08831917 += "<"+"div id=\"ad_53418\"><"+"/div>\n"; OX_08831917 += "<"+"script type=\"text/javascript\">\n"; OX_08831917 += "var sklikData = { id: \"sklikReklama_53418\", zHash: \"ENAWPYZBMTXV9QCH9H5NJVRSK4QS24KDRXNFGP7BVIDQ2\" };\n"; OX_08831917 += "<"+"/script>\n"; OX_08831917 += "<"+"script type=\"text/javascript\" src=\"http://www.somesite.com/ad-special/path/partnerapi3.js\"><"+"/script><"+"div id=\'beacon_2d7c247e4a\' style=\'position: absolute; left: 0px; top: 0px; visibility: hidden;\'><"+"img src=\'http://ad.somesite.com/ad/www/delivery/lg.php?bannerid=413&campaignid=91&zoneid=90&loc=http%3A%2F%2Fsomeothersite.com%2Fpath%2Ftopage&cb=2d7c247e4a\' width=\'0\' height=\'0\' alt=\'\' style=\'width: 0px; height: 0px;\' /><"+"/div>\n"; document.write(OX_08831917); But, when the same link is reached through HTTPS, it send only part with beacon. var OX_893a9b0b = ''; OX_893a9b0b += "<"+"div id=\'beacon_72f34ab414\' style=\'position: absolute; left: 0px; top: 0px; visibility: hidden;\'><"+"img src=\'https://ad.asomesite.com/ad/www/delivery/lg.php?bannerid=0&campaignid=0&zoneid=90&loc=https%3A%2F%2Fsomeothersite.com%2Fpath%2Ftopage&cb=72f34ab414\' width=\'0\' height=\'0\' alt=\'\' style=\'width: 0px; height: 0px;\' /><"+"/div>\n"; document.write(OX_893a9b0b); This is happening just on some websites, just in some zones. Even when I tried to create new zone and get new code for this, it didn't help. I tried is also through Async JS delivery. Version of the Adserver is 4.0.1. Could you please help with this problem? Thanks a lot. Quote Link to comment Share on other sites More sharing options...
Ian Posted June 6, 2018 Report Share Posted June 6, 2018 You are probably loading HTTP sources, on a HTTPS site : "OX_08831917 += "<"+"script type=\"text/javascript\" src=\"http://www.somesite.com/ad-special" The browser blocks that. Quote Link to comment Share on other sites More sharing options...
serten Posted June 6, 2018 Author Report Share Posted June 6, 2018 Does the Adserver check and block this even before it is sent back to site? Quote Link to comment Share on other sites More sharing options...
Ian Posted June 6, 2018 Report Share Posted June 6, 2018 The adserver doesn't block it. The browser does. Quote Link to comment Share on other sites More sharing options...
serten Posted June 6, 2018 Author Report Share Posted June 6, 2018 But it doesn't even come to the page. There are no blocked URLs in console, I checked it many times. When you check those two responses, that's what I got when I opened those two URLs. In case of different banner, on HTTP and HTTPS it returns the same result. Quote Link to comment Share on other sites More sharing options...
Ian Posted June 6, 2018 Report Share Posted June 6, 2018 I can't verify that, since I dont know the URL of your adserver, but that would be very weird behaviour. Quote Link to comment Share on other sites More sharing options...
serten Posted June 6, 2018 Author Report Share Posted June 6, 2018 May I send you message with links to various examples? Quote Link to comment Share on other sites More sharing options...
Ian Posted June 6, 2018 Report Share Posted June 6, 2018 Yes ofcourse BTW you seem to be correct : https://documentation.revive-adserver.com/display/DOCS/Banners+Not+Delivering+over+SSL Try changing your code to : <!-- Kontextová reklama Sklik --> <div id="sklikReklama_53418"></div> <script type="text/javascript"> var sklikData = { id: "sklikReklama_53418", zHash: "ENAWPYZBMTXV9QCH9H5NJVRSK4QS24KDRXNFGP7BVIDQ2" }; </script> <script type="text/javascript" src="//www.<redacted>.cz/ad-special/sklik3/partnerapi3.js"></script> And you should be fine. andrewatfornax 1 Quote Link to comment Share on other sites More sharing options...
serten Posted June 6, 2018 Author Report Share Posted June 6, 2018 Ok, it looks like that. I did another small test after your point and it seems working. Btw. I couldn't send you the meesage ? Thanks for help, I will try to change it on all places. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.