Prebid.js and Prebid Server
Add Riptide to Prebid.js or Prebid Server as the riptide bidder (or your platform's own bidder code) with a publisher ID and a placement ID. Riptide bids over OpenRTB 2.6 for banner, instream and outstream video and native, honours TCF, US Privacy, GPP and COPPA, and syncs users through its sync host.
Release status
The riptide adapter is ready for Prebid.js, Prebid Server (Go) and Prebid Server
Java, but it isn't in a Prebid release yet, and no Prebid Server host company
has enabled it. Until it is released, build Prebid.js with the adapter module (below) or send
OpenRTB to Riptide directly (OpenRTB guide).
Contact us for the adapter module file. This page will say when the
adapter ships in a Prebid release.
1. Find your publisher and placement IDs
In the console, open Inventory › Publishers. The Public ID
column is your publisherId. Open the publisher's Placements tab: each
placement's Public ID is a placementId. Create one placement for each
Prebid ad unit, with the media the ad unit asks for (banner, video or native). See the
publisher guide to create them.
2. Add Riptide to Prebid.js
Bid parameters
| Name | Scope | Description | Example |
|---|---|---|---|
publisherId | required | The publisher's public ID in Riptide (sent as site.publisher.id). | 'pub1' |
placementId | required | The placement's public ID (sent as imp.tagid). | 'homepage-leaderboard' |
bidfloor | optional | Floor in USD CPM. A floor from the Prebid price floors module wins. | 0.25 |
Ad units: banner, instream and outstream video, and native
pbjs.que.push(function () {
pbjs.setConfig({
consentManagement: { gdpr: { cmpApi: 'iab', timeout: 3000 }, usp: { cmpApi: 'iab' }, gpp: { cmpApi: 'iab' } },
});
pbjs.addAdUnits([{
code: 'leaderboard',
mediaTypes: { banner: { sizes: [[728, 90], [970, 250]] } },
bids: [{ bidder: 'riptide', params: { publisherId: 'pub1', placementId: 'homepage-leaderboard', bidfloor: 0.25 } }],
}, {
code: 'preroll',
mediaTypes: { video: { context: 'instream', playerSize: [[640, 480]], mimes: ['video/mp4'], protocols: [2, 3, 7, 8], plcmt: 1 } },
bids: [{ bidder: 'riptide', params: { publisherId: 'pub1', placementId: 'article-preroll' } }],
}, {
code: 'in-article-video',
mediaTypes: { video: {
context: 'outstream', playerSize: [[640, 360]], mimes: ['video/mp4'], protocols: [2, 3, 7, 8],
// Your outstream player: Riptide returns the VAST markup (bid.vastXml) and no renderer.
renderer: {
url: 'https://cdn.example.com/your-outstream-player.js',
render: function (bid) {
bid.renderer.push(function () { window.YourOutstreamPlayer.play(bid.adUnitCode, bid.vastXml); });
},
},
} },
bids: [{ bidder: 'riptide', params: { publisherId: 'pub1', placementId: 'article-outstream' } }],
}, {
code: 'native-feed',
mediaTypes: { native: { ortb: { ver: '1.2', assets: [
{ id: 1, required: 1, title: { len: 90 } },
{ id: 2, required: 1, img: { type: 3, w: 1200, h: 627 } },
] } } },
bids: [{ bidder: 'riptide', params: { publisherId: 'pub1', placementId: 'feed-native' } }],
}]);
pbjs.requestBids({ bidsBackHandler: function () { /* send targeting to your ad server */ } });
});
Riptide bids on banner, instream and outstream video, and native. Bids come back typed by
OpenRTB mtype, priced in USD CPM, with VAST markup for video. An outstream ad
unit needs your own player as mediaTypes.video.renderer: Riptide returns the VAST
markup and no renderer, and Prebid drops an outstream bid that has none. The adapter sends
context: 'outstream' as plcmt 4 and 'instream' as 1,
unless the ad unit sets plcmt itself.
Build Prebid.js with the adapter until it's released
git clone https://github.com/prebid/Prebid.js.git && cd Prebid.js
cp /path/to/riptideBidAdapter.ts modules/
npm ci
npx gulp build --modules=riptideBidAdapter,consentManagementTcf,consentManagementUsp,consentManagementGpp
# use build/dist/prebid.js on your pages 3. User sync
Riptide asks for one image sync, or an iframe sync when your page allows only iframes, to
https://sync.riptideads.com/usersync, with the page's consent signals. Prebid.js
allows image syncs by default, so no userSync setting is needed. If you bid
under a platform's own bidder code (see white-label platforms), set
userSync: { aliasSyncEnabled: true }.
Bid requests carry cookies only when Prebid allows device access (TCF purpose 1 where GDPR
applies). IDs from Prebid user ID modules travel in user.eids.
4. Consent
- TCF (GDPR): the consent string and
gdprflag are sent at their OpenRTB 2.6 locations. Riptide has no IAB Global Vendor List ID yet, so where Prebid enforces TCF, EU traffic that needs consent is not sent to theriptidebidder until one is registered. - US Privacy and GPP: the USP string and the GPP string with its section IDs are sent with every request.
- COPPA: set
pbjs.setConfig({ coppa: true })on child-directed pages. Riptide then uses no identifiers.
How Riptide applies these signals is described in the privacy policy.
5. Prebid Server
In Prebid Server the bidder is also riptide, with the same parameters. No host
company runs it yet. If you host Prebid Server yourself, add the Riptide adapter to your build
(contact us for it). Then name the bidder in a stored request:
{
"id": "homepage",
"imp": [{
"id": "leaderboard",
"banner": { "format": [{ "w": 728, "h": 90 }] },
"ext": { "prebid": { "bidder": {
"riptide": { "publisherId": "pub1", "placementId": "homepage-leaderboard" }
} } }
}]
} Or send Prebid.js traffic through your Prebid Server:
pbjs.setConfig({
s2sConfig: [{
accountId: 'YOUR_PBS_ACCOUNT',
bidders: ['riptide'],
adapter: 'prebidServer',
enabled: true,
endpoint: 'https://YOUR_PBS_HOST/openrtb2/auction',
syncEndpoint: 'https://YOUR_PBS_HOST/cookie_sync',
}],
});
Prebid Server syncs users through Riptide's sync host, which redirects to your server's
/setuid. To have Riptide allow that redirect, add your Prebid Server host in the
console under Settings › Header bidding.
6. Check that it works
- Load the page with
?pbjs_debug=true. The browser console shows theriptidebid request and each bid or no-bid. A no-bid is an HTTP 204, or a response with annbrreason. - In the console, open the placement's Tags tab. Its live counter shows requests arriving for that placement.
- For a no-bid, open Diagnostics › Why isn't this serving? and pick the placement. Its decision funnel shows the last hour, step by step, and who won instead.
7. White-label platforms: your own bidder code
A platform running on Riptide under its own brand bids under its own bidder code, an alias of
riptide with the platform's own serving and sync hosts. Publishers then use that
code as bidder, with the same parameters. A page can't create the alias itself with
pbjs.aliasBidder, because only codes registered in the adapter have an endpoint.
To register an alias, set your bidder code and IAB Global Vendor List ID (if you have one) in
Settings › Header bidding and ask us. We add your code to the
adapter in Prebid.js and Prebid Server, each with its own bidder docs page whose front matter
carries aliasCode: riptide.
Get help connecting Prebid
Send us your ad unit configuration and a pbjs_debug log, and we'll check the request and the placement.