You are here: Demand Partners > Real-time bidding APIs > OpenRTB API > Pmp examples

Pmp examples

Last updated on May 17, 2017

The following sample PMPPrivate marketplace, the packaging, offering, and selling of high quality inventory to a limited set of buyers. bid requestWhen OpenX Ad Exchange receives an ad request, its communication to selected real-time bidders, which contains details about the impression and solicits bids for it. corresponds to the PMP bid response example below.

See also the PMP bid request object and deal bid request object.

BidRequest example


{
    "id": "29677753-3427-48b4-f6c2-6af1735d595e",
    "imp": [
        {
            "id": "29677753-3427-48b4-f6c2-6af1735d595e",
            "banner": {
                "h": 600,
                "w": 160
            },
            "pmp": {
                "private_auction": 1,
                "deals": [{
                    "id": "DEAL-ID_VAL",
                    "at": 2
			}]
            }
    }],
    "user": {
        "buyeruid": "89776897686798fwe878976sdfgfdgfsd7869678",
        "id": "55816b39711f9b5acf3b90e313ed29e51665623f",
        "gender": "M",
        "yob": 1975,
        "customdata": "some custom data string",
        "data": [{
            "id": "12qwer34134kjjkklj",
            "name": "data_name",
            "segment": [{
                "id" : "345qw245wfrtgwertrt56765wert",
                "name" : "segment_name",
                "value": "segment_value"
            }]
        }]
    },
    "device": {
        "dnt": 0,
        "dpimd5": "aasdfadsfwerqewr234",
        "dpidsha1" : "asdfasdfwererr",
        "macsha1": "asdf2345562ds",
        "macmd5" : "asdfaxcv2345243",
        "ua": "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0_4 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11B554a Safari/9537.53",
        "ip": "208.113.83.165",
        "geo": {
            "lat": 37.789,
            "lon": -122.394,
            "country": "USA",
            "city": "San Francisco",
            "region": "CA",
            "zip" : "94105",
            "type": 2
        },
        "ifa": "asdfdfwerasd2454",
        "carrier" : "310-560",
        "language": "en",
        "make" : "Apple",
        "model": "iPhone",
        "os" : "iOS",
        "osv": "7",
        "connectiontype": 0,
        "devicetype": 1
    },
    "site": {
        "id": "102855",
        "name": "some site name",
        "domain": "http://www.example.com",
        "cat" : "IAB3-1",
        "page": "http://easy.example.com/easycu=13824;cre=mu;target=_blank",
        "ref" : "http://refer+url",
        "publisher": {
            "id": "qqwer1234xgfd",
            "name": "example.com",
            "domain": "example.com"
        }
    }
}

The following sample PMP bid responseAfter evaluating a bid request, a real-time bidder’s communication to OpenX Ad Exchange, indicating if they’re interested in the impression, and if so, how much they’re willing to pay for it. corresponds to the PMP bid request example.

BidResponse example


{
    "id": "29677753-3427-48b4-f6c2-6af1735d595e",
    "seatbid" : [{
         "bid": [{
            "id": "bid1",
            "impid": "29677753-3427-48b4-f6c2-6af1735d595e",
            "dealid": "DEAL-ID_VAL",
            "price": 2.0,
            "crid": "crid_val",
            "adm" : "<div>Ad Creative<img src=\"http://example.com/myid/{winning_price}\" /></div>",
            "adomain": [           
                "http://www.bidder.com/clickthrough"
             ],
             "nurl": "http://example.com/winnoticeimpid=${AUCTION_IMP_ID}&auction=${AUCTION_ID}&price=${AUCTION_PRICE}&bidid=${AUCTION_BID_ID}",
             "ext" :{
                "brand_id": "brand_val",
                "buyer_id": "buyer_val"
             }
        }]
    }]
}

Feedback form