Skip to content

Latest commit

 

History

History
107 lines (87 loc) · 4.27 KB

silverpushBidAdapter.md

File metadata and controls

107 lines (87 loc) · 4.27 KB

Overview

Module Name: Silverpush OpenRTB Bidder Adapter
Module Type: Bidder Adapter
Maintainer: [email protected]

Description

Prebid.JS adapter that connects to the Chocolate Ad Exchange.

NOTE: The Silverpush Bidder Adapter requires setup and approval before use. Please reach out to [email protected] representative for more details.

Bid Parameters

Banner/Video

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

Name Scope Description Example Type
publisherId required Publisher id provided by silverpush "123456" String
bidFloor optional Minimum price in USD. bidFloor applies to a specific unit. For example, use the following value to set a $1.50 floor: 1.50.
1.50 Number

mediaTypes Parameters

mediaTypes.banner

The following banner parameters are supported here so publishers may fully declare their banner inventory:

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

Name Scope Description Example Type
sizes required Avalaible sizes supported for banner ad unit [ [300, 250], [300, 600] ] [[Integer, Integer], [Integer, Integer]]

mediaTypes.video

The following video parameters are supported here so publishers may fully declare their video inventory:

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

Name Scope Description Example Type
context required instream or outstream "outstream" string
playerSize required Avalaible sizes supported for video ad unit. [300, 250] [Integer, Integer]
mimes required List of content MIME types supported by the player. ["video/mp4"] [String]
protocols required Supported video bid response protocol values. [2,3,5,6] [integers]
api required Supported API framework values. [2] [integers]
maxduration required Maximum video ad duration in seconds. 30 Integer
minduration required Minimum video ad duration in seconds. 6 Integer
startdelay required Indicates the start delay in seconds for pre-roll, mid-roll, or post-roll ad placements. 0 Integer
placement required Placement type for the impression. 1 Integer
minbitrate optional Minimum bit rate in Kbps. 300 Integer
maxbitrate optional Maximum bit rate in Kbps. 9600 Integer
playbackmethod optional Playback methods that may be in use. Only one method is typically used in practice. [2] [Integers]
linearity optional OpenRTB2 linearity. in-strea,overlay... 1 Integer
skip optional Indicates if the player will allow the video to be skipped, where 0 = no, 1 = yes . 1 Integer
skipafter optional Number of seconds a video must play before skipping is enabled; only applicable if the ad is skippable. 5 Integer
delivery optional OpenRTB2 delivery. Supported delivery methods (e.g., streaming, progressive). If none specified, assume all are supported. 1 [Integer]

Example

  var adUnits = [{
    code: 'div-1',
    mediaTypes: {
        banner: {
            sizes: [ [300, 250], [300,600] ]
        }
    },
    bids: [{
      bidder: 'silverpush',
      params: {
          publisherId: "123456",
          bidFloor: 1.2
      }
    }]
  },{
    code: 'video-1',
    mediaTypes: {
        video: {
            api: [1, 2, 4, 6],
            mimes: ['video/mp4'],
            context: 'instream', // or 'outstream'
            playerSize: [ 640, 480 ],
            protocols: [4,5,6,7],
            placement: 1,
            minduration: 0,
            maxduration: 60,
            startdelay: 0
        }
    },
    bids: [
        {
            bidder: 'silverpush',
            params: {
                publisherId: "123456",
                bidfloor: 2.5
            }
        }
    ]
  }
];