Data provider plugins

Last modified by ZdVo on 2018/02/19 10:38
Comments (0) · Attachments (0)

In some cases functions which recommended/set data prifiles for specific user are complicated. Their usage with attachData function and their recording into every page would therefore be uncomfortable.
For that reason asynchronous codes offer option to use “plugin”. Plugins are external javascript files which contain a function for specific data provider. These plugins are prepared by iBB and are saved on iBB part.
Plugin can inicialize through useDataProvider();

var somePlugin = ibbAds.tag.useDataProvider('nameOfPlugin', {
            url: '//bbcdn-static.bbelements.com/scripts/ibb-async/stable/plugins/nameOfPlugin.js',
        });

Afterwards it is necessary to ensure that data which were get through the plugin are added to Ad Server showit request call. Therefore use attachData:

var somePlugin = ibbAds.tag.useDataProvider('nameOfPlugin', {
            url: '//bbcdn-static.bbelements.com/scripts/ibb-async/stable/plugins/nameOfPlugin.js',
        });
adserver.attachData(somePlugin);

BBnautId data provider

Plugin which is necessary to have inserted together with standard asynchronous code definition. It sets to each user unique so-called IBBID, through which are counted, unique users.

Example of use:


var getIbbId = ibbAds.tag.useDataProvider('BbnautIdDataProvider', {
           url : '//bbcdn-static.bbelements.com/scripts/ibb-async/stable/plugins/BbnautIdDataProvider.js'
       });
adserver.attachData("ibbid",getIbbId);
Tags:
Created by ZdVo on 2017/04/04 08:23
Translated into en by Pavlína Novotná on 2017/04/26 10:34

Navigation


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