Skip to content

Latest commit

 

History

History
60 lines (54 loc) · 1.27 KB

adspendBidAdapter.md

File metadata and controls

60 lines (54 loc) · 1.27 KB

Overview

Module Name: AdSpend Bidder Adapter
Module Type: Bidder Adapter
Maintainer: gaffoonster@gmail.com

Description

Connects to AdSpend bidder. AdSpend adapter supports only Banner at the moment. Video and Native will be add soon.

Test Parameters

var adUnits = [
    // Banner
    {
        code: 'div-gpt-ad-1460505748561-0',
        mediaTypes: {
            banner: {
                // You can choose one of them
                sizes: [
                  [300, 250],
                  [300, 600],
                  [240, 400],
                  [728, 90],
                ]
            }
        },
        bids: [
            {
                bidder: "adspend",
                params: {
                    bidfloor: 1,
                    placement: 'test',
                    tagId: 'test-ad',
                }
            }
        ]
    }
];

pbjs.que.push(() => {
  pbjs.setConfig({
    userSync: {
      syncEnabled: true,
      enabledBidders: ['adspend'],
      pixelEnabled: true,
      syncsPerBidder: 200,
      syncDelay: 100,
    },
    currency: {
      adServerCurrency: 'RUB' // We work only with rubles for now
    }
  });
});

It's a test banner, so you'll see some errors in console cause it will be trying to call our system's events.