Using of Asynchronous codes » Configure used ad server instance(s)

Configure used ad server instance(s)

Last modified by ZdVo on 2017/05/09 09:11
Comments (0) · Attachments (0)

In most cases, there will be only one instance of the ad server used in the page. You can define which one it is by using the following code:

var adserver = ibbAds.tag.useAdProvider('BbmEu');

The string BbmEu is the identifier of the instance you want to use. The actual configuration of it (what URL it can be reached on, how etc.) is made by us and you don't have to bother with that.
As you can also see, we are storing a "reference" to the instance into the variable called 'adserver'. This comes handy later.

Please refer to ad server support for figuring out which instance you should use if you were not told. 

You can define more instances just by calling the same multiple times, just using different names for instances. E.g:

var adserver2 = ibbAds.tag.useAdProvider('BbmPl');
Tags:
Created by ZdVo on 2017/03/21 10:11
Translated into en by ZdVo on 2017/05/09 09:11

Navigation


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