Single Page Call Invocation Code

Posted by adserveropenx on March 02, 2013  /   Posted in Invocation Tags

Serving ads quickly with Single Page Call Invocation Code : 

→  Single Page Call Invocation tags deliver ads quickly to end user and reduce load on adserver system. This is the solution who would like to place multiple zone space on same page.

Fetching all banners together from availed zones on web page within single request, instead of binding several request together. It gives speedy response from adserver and only makes single connection instead of multiple.

Get Single Page Call Invocation Code :

→ Go to Website level of the OpenX user interface.  Website name →  Invocation Code :  Here you can set how your ad tag should deliver ads.

Single-Page-Call-Invocation-Code Generate

 

 

→ While clicking on ‘Generate‘ button, you will be taken to invocation code area. Get Header and body script and place accordingly on your web pages. Body script tags have multiple based on number of zones available under website.

Different Mechanism To usage :

Use list array mechanism to associate all zones together and deliver accordingly on web pages.

Example :

<script type='text/javascript'><!--// <![CDATA[

                                 var OA_zones = {

                                       'zone1-1' : 1,

                                       'zone1-2' : 1,

                                      'zone2' : 2,

                                      'zone3' : 3,

                                      'zone4' : 4,

                                     'zone5' : 5

};

// ]]> --></script>

 

Whichever zone you would like to add on web page, add it and rest of the zone-id ignore for list of array created. And use below code wherever need to display :


<script type='text/javascript'> OA_show('zone1-1'); </script>

Where “zone1-1”, unique name which defined in array list.

Complete Usage with Example : 

Header block :

<script type='text/javascript'><!--// <![CDATA[
var OA_zones = {
'zone1-1' : 1,'zone1-2' : 1,'zone2' : 2,'zone3' : 3,'zone4' : 4,'zone5' : 5 }; // ]]> --></script>
<script type='text/javascript' src='http://www.adserverdomain.com/delivery/spcjs.php?id=1'></script>

Body block:

<script type='text/javascript'> OA_show('zone1-1');  </script>
<script type='text/javascript'> OA_show('zone1-2');  </script>
<script type='text/javascript'> OA_show('zone2'); </script>

Post a Comment

Your email address will not be published. Required fields are marked *

*

Copyright © AdserverOpenX.com, All Rights Reserved 2013.