Skip to content

Files

Latest commit

 

History

History
67 lines (53 loc) · 2.18 KB

1plusXRtdProvider.md

File metadata and controls

67 lines (53 loc) · 2.18 KB
layout title display_name description page_type module_type module_code enable_download vendor_specific sidebarType
page_v2
1plusX RTD Module
1plusX RTD Module
1plusX Real Time Data Module
module
rtd
1plusXRtdProvider
true
true
1

1plusX RTD Module

{:.no_toc}

  • TOC {:toc}

Description

The 1plusX RTD module appends User and Contextual segments to the bidding object.

Integration

  1. Compile the 1plusX RTD Module along with your bid adapter and other modules into your Prebid build:

    gulp build --modules="rtdModule,1plusXRtdProvider,appnexusBidAdapter,..."  
  2. Use setConfig to instruct Prebid.js to initilize the 1plusX RTD module, as specified below.

Configuration

This module is configured as part of the realTimeData.dataProviders

var TIMEOUT = 1000;
pbjs.setConfig({
    realTimeData: {
        auctionDelay: TIMEOUT,
        dataProviders: [{
            name: '1plusX',
            waitForIt: true,
            params: {
                customerId: 'acme',
                bidders: ['appnexus', 'rubicon'],
                timeout: TIMEOUT
            }
        }]
    }
});

Parameters

{: .table .table-bordered .table-striped }

Name Type Description Default
name String Real time data module name Always '1plusX'
waitForIt Boolean Should be true if there's an auctionDelay defined (optional) false
params Object
params.customerId String Your 1plusX customer id
params.bidders Array List of bidders for which you would like data to be set
params.timeout Integer timeout (ms) 1000ms