How to buy traffic using Prebid

How to buy traffic using Prebid

Prebid is a set of open-source tools that enables publishers to add header bidding to their websites and apps. This helps advertisers to buy ads more efficiently and transparently. Adserver.Online provides all the necessary features for buying website traffic using Prebid or Prebid Server.

Important: Prebid is a programmatic technology. You must have certain programming skills and be familiar with JavaScript and JSON. Otherwise, you might experience problems trying to configure it.

Adserver.Online prebid adapter's name is "aso". We support both Prebid.js and Prebid Server adapters as well as banner, video, and native media types.

Documentation is available in the list of prebid adapters.

You can download the Prebid.js library, including our adapter, from the prebid download page or build it from the prebid source code.

On the panel, you will find a Prebid code for the banner and VAST zones to configure Prebid on your or your publisher's websites.

Integration example (postbid)

    <script async src="//"></script>


    var adUnits = [{
        code: 'postbid_iframe',
        mediaTypes: {
            banner: {
                sizes: [300, 250]
        bids: [{
            bidder: 'aso',
            params: {
                zone: 35954

    var pbjs = pbjs || {};
    pbjs.que = pbjs.que || [];

    pbjs.que.push(function () {
            bidsBackHandler: function () {
                var iframe = document.getElementById('postbid_iframe');
                var iframeDoc = iframe.contentWindow.document;
                var adServerTargeting = pbjs.getAdserverTargetingForAdUnitCode('postbid_iframe');

                // If any bidders return any creatives
                if (adServerTargeting && adServerTargeting['hb_adid']) {
                    pbjs.renderAd(iframeDoc, adServerTargeting['hb_adid']);
                } else {
                    iframe.width = sizes[0][0];
                    iframe.height = sizes[0][1];
                    iframeDoc.write('<head></head><body>' + passbackTagHtml + '</body>');

    // Define the passback HTML tag here.
    // Note that this tag is usually in either Script tag form or iFrame form.
    var passbackTagHtml = 'TO ADD';

<iframe id='postbid_iframe'

Try it in action

You can find more examples on our demo page.