Download the Prebid Server Adapter (v0.82.0+ required)
You can download the most recent release of prebid on this page and select "Sharethrough" and "Prebid Server" as partners from the list and press "Get Prebid.js!". This will build a fresh version of Prebid with our adapter and Prebid Server integrated into it automatically.
For additional documentation on how to integrate Prebid Server, you can view this link from Prebid.org: Get Started with Prebid Server.
Prebid Server will have to be updated to be version 0.82.0 or newer in order for Sharethrough to be able to be included in your server-side wrapper. We always recommend that you have the most up to date versions to ensure you are maximizing revenue and minimizing discrepancy. Prebid is constantly updating and we are actively adding features and bug fixes.
Integrate Sharethrough Bidder with Prebid Server
In order for Sharethrough to start bidding server-to-server, you will need to add us to your s2sConfig as a bidder like the following example:
s2sConfig: {
enabled: true,
accountId: '12345',
bidders: ['sharethrough', 'bidder2', 'bidder3'],
defaultVendor: 'bidder2'
}
For additional documentation on how to configure bidders in Prebid Server, you can view this link from Prebid.org: Prebid Server for Header Bidding.
Configure the Sharethrough Bidder
You can find integration documentation specific to your placement(s) by navigating to the "Setup" section of SFP and going to the placement you are looking to integrate and pressing "Integration Docs or you can use the generic instructions here:
{ bidder: 'sharethrough', params: { pkey: 'enter-your-pkey-here' } }
If your inventory requires Sharethrough to serve inside a SafeFrame, please contact our support team for further consultation.
var adUnits = [
{
code: '<your ad unit code>', //example DFP ad unit ID
mediaTypes: {
banner: {
sizes: [
[728, 90],
[300, 250]
]; //example sizes
}
},
bids: [{
bidder: 'sharethrough',
params: {
pkey: 'enter-your-pkey-here',
iframe: false
}
},
{
bidder: 'another_bidder',
params: {
placementId: 'placement_id'
}
}
]
}];
Test the Sharethrough Header Bidder
Add Sharethrough to your Ads.txt File
In order to maximize revenue from Sharethrough, please add all relevant entries to your Ads.txt file. Click here for a guide on how to add the necessary info.
Comments
0 comments
Article is closed for comments.