Example: Open Pair ID Integration

Shows how to integrate the Optable Web SDK with Prebid.js using the Open PAIR user module to automatically transmit Optable's cleanroom PAIR IDs in the bid stream.

This integration is ideal for publishers who only need to transmit PAIR IDs in the bid stream. With the following userId module configuration, PAIR IDs are read automatically from where Optable SDK's stores them. Those are automatically refreshed when targeting() is called on the SDK instance. No additional setup is required.

Prebid.js Configuration
pbjs.mergeConfig({
  userSync: {
    userIds: [
      {
        name: 'openPairId',
        inserter: window.location.hostname,
        matcher: 'optable.co',
        params: {
          optable: { storageKey: '_optable_pairId' }
        },
      },
    ]
  }
});
Demo Ad Slot