Single Page Call Invocation Code

posted in: Blog | 0

Serving ads quickly with Revive Adserver 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.

 

Revive Adserver Single Page Call Tag
Revive Adserver Single Page Call Tag

 

 

Get Single Page Call Invocation Code :

→ Go to Website level of the Revive Adserver 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 fro list of array created. And use below code wherever need to display :

<script type=’text/javascript’><!–// <![CDATA

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.reviveadserverdomain.com/delivery/spcjs.php?id=1′></script>

Body block:

<script type=’text/javascript’><!–// <![CDATA[ OA_show(‘zone1-1’);  // ]]> –></script>

<script type=’text/javascript’><!–// <![CDATA[ OA_show(‘zone1-2’);  // ]]> –></script>

<script type=’text/javascript’><!–// <![CDATA[ OA_show(‘zone2’);  // ]]> –></script>

Share Button

Leave a Reply