PubMatic: Passing Contextual Data

This details how to format the iris_context and iris_id KVPs in the PubMatic tag and OpenRTB integrations.

Tag Integration

The tag integration leverages the custom key-value pair formatting to pass in the iris_context and iris_id KVP. 

Here's the documentation from PubMatic on how to format custom KVPs in the ad tag: https://docs.prebid.org/dev-docs/bidders/pubmatic.html

OpenRTB Integration

The OpenRTB integration leverages the custom KVP object to pass in the iris_context and iris_id KVPs. Here is an example for how PubMatic requires publishers to format custom KVPs in OpenRTB:

var adUnits = [

{

    code: 'test-div',  

    sizes: [

        [300, 250],

        [728, 90]

    ],   

    bids: [{

      bidder: 'pubmatic',

      params: {

        publisherId: '123456',             

        adSlot: 'pubmatic_test2',          

        dctr: 'iris_context=IC_1234'

      }

    }]

}];

oRTB

    "site": {

        "ext": {

            "key_val": "iris_context=IC_1234"

        }

   },