AdOcean displaying code

Last modified by Lenka Kocurková on 2015/05/15 08:35
Comments (0) · Attachments (8)

This is javascript displaying code from AdOcean system.

Code preview before the insertion:

2015-02-17_103803.jpg


The procedure of implementation

  1. Take out the following part from the original tags:
    2015-02-17_094735.jpg

  2. Insert it as a javascript version of banner in iBB Ad Server and then click on "Insert" button.
    2015-05-13_073422.jpg

  3. Check if the code displays (returns) banner in real preview.

    However, such created banner would count clicks only in AdOcean system and not in iBB Ad Server stats. For this reason add into code a string which contains iBB REDIRECT placeholder. This modification secures that clicks will be counted in both Ad Serving systems.

    THE FORM OF REDIRECT STRING FOR THE ADOCEAN DISPLAYING CODE IS AS FOLLOWS:
    /redir=%%__REDIRECT%%

  4. Insert REDIRECT string into the code in front of: /x=´+screen.width+´....
    (...) Date()).getTime()+'/ad.js?id=QfELr9b8SG3rEwlJv0tqFXdqDVfAs6dm5DrVYyCOYKb.H7/  a  /x='+screen.width+'/y='+screen.height+'" type="text/javascript"'+unescape('%3E%3C')+'/script'+unescape('%3E'));

  5. Final code should look like this:
    if(location.protocol.substr(0,4)=='http')document.write(unescape('%3C')+'script id="lighthouse_hu.Adaptive.adaptive_bb" src="'+location.protocol+'//hu.adocean.pl/_'+(new Date()).getTime()+'/ad.js?id=QfELr9b8SG3rEwlJv0tqFXdqDVfAs6dm5DrVYyCOYKb.H7/redir=%%__REDIRECT%%/x='+screen.width+'/y='+screen.height+'" type="text/javascript"'+unescape('%3E%3C')+'/script'+unescape('%3E'));2015-05-13_073423.jpg
Tags:
Created by ZdVo on 2015/02/17 09:54
Translated into en by ZdVo on 2015/04/13 09:55

Navigation


This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 4.0 - Documentation