Appearance
Server Side Prebid Integration
Overview
Server-side prebid integration (S2S) offers several advantages over client-side integration, including:
- Improved page load performance
- Better user experience
- Reduced browser resource usage
- Enhanced privacy controls
- More reliable timeout management
Integration Steps
1. Configure Prebid.js
Add Missena to your Prebid.js S2S configuration:
javascript
pbjs.setConfig({
s2sConfig: [{
accountId: '1',
bidders: ['missena'], // Add Missena to bidders array
adapter: 'prebidServer',
enabled: true,
endpoint: 'https://prebid-server.example.com/openrtb2/auction',
syncEndpoint: 'https://prebid-server.example.com/cookie_sync',
timeout: 500
}]
});
2. Set Bid Parameters
Configure the bid parameters for Missena:
javascript
{
bidder: 'missena',
params: {
apiKey: 'PA-34745704', // Required: Your Missena publisher token
placement: 'sticky' // Optional: Placement type (defaults to 'sticky')
}
}
3. Bid Parameters Reference
Name | Scope | Description | Example | Type |
---|---|---|---|---|
apiKey | required | Missena's publisher token | 'PA-34745704' | string |
placement | optional | Placement Type, default: 'sticky' | 'sticky' | string |
4. Example Implementation
javascript
const adUnits = [{
code: 'div-1',
mediaTypes: {
banner: {
sizes: [[300, 250]]
}
},
bids: [{
bidder: 'missena',
params: {
apiKey: 'PA-34745704',
placement: 'sticky'
}
}]
}];
Support
For additional support or questions about Missena integration:
- Contact Missena support team
- Review the technical documentation
- Check the prebid.org documentation
Best Practices
- Always test the integration in a development environment first
- Monitor bid responses and performance
- Keep your apiKey secure
- Regularly update to the latest Prebid.js version
- Implement proper timeout settings