Skip to content

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

NameScopeDescriptionExampleType
apiKeyrequiredMissena's publisher token'PA-34745704'string
placementoptionalPlacement 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

  1. Always test the integration in a development environment first
  2. Monitor bid responses and performance
  3. Keep your apiKey secure
  4. Regularly update to the latest Prebid.js version
  5. Implement proper timeout settings