Jump to content

Delivered different code of ads via HTTP and HTTPS


Recommended Posts

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 ('&amp;cb=' + m3_r);
   if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
   document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
   document.write ("&amp;loc=" + escape(window.location));
   if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
   if (document.context) document.write ("&context=" + escape(document.context));
   if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
   document.write ("'><\/scr"+"ipt>");
//]]>--></script><noscript><a href='http://ad.somesite.com/ad/www/delivery/ck.php?n=ab334ad0&amp;cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://ad.somesite.com/ad/www/delivery/avw.php?zoneid=90&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;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&amp;cb=65331294334&amp;charset=UTF-8&amp;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&amp;campaignid=91&amp;zoneid=90&amp;loc=http%3A%2F%2Fsomeothersite.com%2Fpath%2Ftopage&amp;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&amp;campaignid=0&amp;zoneid=90&amp;loc=https%3A%2F%2Fsomeothersite.com%2Fpath%2Ftopage&amp;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.

 

Link to comment
Share on other sites

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. 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...