Bidder Code


Send All Bids Ad Server Keys

hb_pb_rubicon hb_adid_rubicon hb_size_rubicon


The Rubicon Project adapter requires setup and approval from the Rubicon Project team, even for existing Rubicon Project publishers. Please reach out to your account team or for more information.

bid params

Name Version Scope Description Example Type
accountId 0.6.0 required The publisher account ID '4934' string
siteId 0.6.0 required The site ID '13945' string
zoneId 0.6.0 required The zone ID '23948' string
sizes 0.6.0 optional Array of Rubicon Project size IDs. If not specified, the system will try to convert from bid.sizes. [15] Array<integer>
keywords 0.6.0 optional Array of page-specific keywords. May be referenced in Rubicon Project reports. ['travel', 'tourism'] Array<string>
inventory 0.6.0 optional An object defining arbitrary key-value pairs concerning the page for use in targeting. The values must be arrays. {'rating':['5-star'], 'prodtype':['tech','mobile']} object
visitor 0.6.0 optional An object defining arbitrary key-value pairs concerning the visitor for use in targeting. The values must be arrays. {'ucat':['new'], 'search':['iphone']} object
position 0.6.0 optional Set the page position. Valid values are “atf” and “btf”. 'atf' string
userId 0.6.0 optional Site-specific user ID may be reflected back in creatives for analysis. Note that userId needs to be the same for all slots. '12345abc' string
floor 0.19.0 optional Sets the global floor – no bids will be made under this value. 0.50 float
latLong 1.10.0 optional Sets the latitude and longitude for the visitor [40.7608, 111.8910] Array<float>
video 0.19.0 required for video Video targeting parameters. See the video section below. {'language': 'en', 'playerHeight': '360', 'playerWidth': '640', 'size_id': '201'} object


The following video parameters are supported as of 0.19.0:

Name Scope Description Example Type
playerWidth required for video Video player width in pixels '640' string
playerHeight required for video Video player height in pixels '360' string
size_id required for video Integer indicating the video ad format ID:

201: Pre-Roll
202: Interstitial
204: Mid-Roll
205: Post-Roll
207: Vertical Video
201 integer
language required for video Indicates the language of the content video, in ISO 639-1/alpha2. Highly recommended for successful monetization for pre-, mid-, and post-roll video ads. Not applicable for interstitial and outstream. 'en' string
aeParams optional Optional parameter that enables overriding of pre-defined video options in account setup. Some common samples are shown below. Additional options are available by contacting your account team.   object


Name Scope Description Example Type optional Defines whether the user can skip the ad. Defaults to non-skippable. Set to 1 to indicate skippable. 1 integer optional If the ad is skippable, this is an integer duration (in seconds) after which the user has the option to skip the ad. Default is 0. 15 integer optional Integer indicating maximum bitrate of video ad in kbps. 1200 integer optional Integer indicating minimum bitrate of video ad in kbps. 400 integer optional Integer indicating whether the seller permits letterboxing. The default is “1”, – letterboxing is permitted. “0” indicates it is not permitted. 1 integer


The Rubicon adapter has the ability to initiate user-sync requests that will improve DSP user ID match rate, with the aim of generating higher bid prices. By default, Rubicon Project sync requests are off. To improve monetization, we recommend firing user syncs 5 seconds after the auction is complete with a call to setConfig().

   userSync: {
    enabledBidders: ['rubicon'],
    iframeEnabled: true

Note: this config should be combined with any other UserSync config calls, as subsequent calls to setConfig for the same attribute overwrite each other.


There can only be one siteId and zoneId in an AdUnit. To get bids on multiple sitesIds or zoneIds, just add more ‘rubicon’ entries in the bids array.