Smart Ad Server displaying code

Last modified by ZdVo on 2016/04/15 10:02
Comments (0) · Attachments (3)

Code preview before the insertion:

<script type="text/javascript" src="http://www3.smartadserver.com/call/pubj/55726/649845/23315/M/[timestamp]/998x200?[countgo]" ></script>

The procedure of implementation

  1. Copy the following script part from original Smart ad server code:
    <script type="text/javascript" src="http://www3.smartadserver.com/call/pubj/55726/649845/23315/M/[timestamp]/998x200?[countgo]" ></script>

  2. Insert this script part as HTML version of banner into iBB Ad Server and by clicking on "Insert". html code will be rewritten into javascript form.
    html.jpg

  3. You then get code which is rewritten into javascript form:
    js.jpg

    You should see displayed banner in real preview.

  4. Next step is to secure counting of clicks in both systems. It is necessary to use REDIRECT macro.
    The form of REDIRECT string in case of Smart Ad Server displaying code for iBB Ad Server usage is:
    %%__REDIRECT_ENCODED%%

    Insert it instead of [countgo] placeholder

    The final code should look like the following:

    document.write("<SCR"+"IPT type=\"text/javascript\" src=\"http://www3.smartadserver.com/call/pubj/55726/649845/23315/M/[timestamp]/998x200?%%__REDIRECT_ENCODED%%\" ><"+"/SCR"+"IPT>");

    final.jpg
Tags:
Created by ZdVo on 2016/04/15 09:45
Translated into en by ZdVo on 2016/04/15 10:02

Navigation


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