Asynchronous tags for iBillboard Ad Server » Standard implementation of asyn codes

Standard implementation of asyn codes

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

Standard implementation of asynchronous codes. During loading of a page there is one call to AdServer which sends ads into all defined positions in its answer.

<!DOCTYPE html>
<html>
<head>
   <title>Test page iBB Support</title>
   <meta name="charset" content="utf-8"/>
   <link rel="stylesheet" type="text/css" media="all" href="style/styles.min.css" />
   <script id='ibbTagEngine' language='javascript' src='//bbcdn-static.bbelements.com/scripts/ibb-async/stable/tag.js'></script>
   <script>
    var adserver = ibbAds.tag.useAdProvider('BbmEu');
         adserver.manageAdSlot('leaderboard', '10452.10.1.3');
         adserver.manageAdSlot('square', '10452.10.1.2');

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

      adserver.attachData("ibbid",getIbbId);
      adserver.attachData("keywords","keyword1;keyword2");
     
      ibbAds.tag.requestAndPlaceAds();
   </script>
</head>
<body>
<div id='leaderboard'></div>
<div id='square'></div>

</body>

</html>
Tags:
Created by ZdVo on 2017/03/21 12:53
Translated into en by Pavlína Novotná on 2017/05/10 08:31

Navigation


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