Server to Server Integration
This documentation is for using the PWBID from the JavaScript client in S2S config. You can use your Prebid server or ours.
The config consists of two parts. The first is the client side JS config. The most important elements are the Account ID and the Endpoint. All other config is prebid defaults or standard.
Client Side JS Config
Using the PubWise Prebid Server
Endpoint: https://pbs.pubwise.io/openrtb2/auction
pbjs.setConfig({
s2sConfig: {
accountId : '<YOUR_PUBWISE_ACCOUNT_ID>',
bidders : ['pwbid'],
endpoint: 'https://pbs.pubwise.io/openrtb2/auction',
timeout: 300
}
});
Using You Own Prebid Server
Endpoint: Your URL
pbjs.setConfig({
s2sConfig: {
accountId : '<YOUR_PUBWISE_ACCOUNT_ID>',
bidders : ['pwbid'],
endpoint: '<YOUR_URL>',
timeout: 300
}
});
Prebid Server Config
PWBID is supported in Prebid server Version 0.249.0 and higher. v0.256.0+ is preferred.
Using the PubWise Prebid Server
No additional server config is neccesary.
Using your Own Prebid Server
Versions AFTER v0.255.0
No changes necessary.
v0.255.0 and Before
Set the follwing environment variable:
PBS_ADAPTERS_PWBID_ENDPOINT = https://bidder.east2.pubwise.io/bid/pubwisedirect