Skip to content

Commit

Permalink
Add integration test where default is ignored due to DSA on request
Browse files Browse the repository at this point in the history
  • Loading branch information
bsardo committed Apr 4, 2024
1 parent f216c82 commit bcf23f3
Showing 1 changed file with 147 additions and 0 deletions.
147 changes: 147 additions & 0 deletions exchange/exchangetest/dsa-default-ignored.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
{
"accountPrivacy": {
"dsa": {
"default": "{\"dsarequired\":2,\"pubrender\":1,\"datatopub\":2,\"transparency\":[{\"domain\":\"platform1domain.com\",\"dsaparams\":[1]},{\"domain\":\"SSP2domain.com\",\"dsaparams\":[1,2]}]}"
}
},
"incomingRequest": {
"ortbRequest": {
"id": "some-request-id",
"site": {
"page": "test.somepage.com"
},
"imp": [{
"id": "my-imp-id",
"video": {
"mimes": [
"video/mp4"
]
},
"ext": {
"prebid": {
"bidder": {
"appnexus": {
"placementId": 1
}
}
}
}
}],
"regs": {
"ext": {
"dsa": {
"dsarequired": 1,
"pubrender": 0,
"datatopub": 2,
"transparency": [{
"domain": "platform2domain.com",
"dsaparams": [1, 2, 3]
}]
}
}
}
}
},
"outgoingRequests": {
"appnexus": {
"expectRequest": {
"ortbRequest": {
"id": "some-request-id",
"site": {
"page": "test.somepage.com"
},
"imp": [{
"id": "my-imp-id",
"video": {
"mimes": [
"video/mp4"
]
},
"ext": {
"bidder": {
"placementId": 1
}
}
}],
"regs": {
"ext": {
"dsa": {
"dsarequired": 1,
"pubrender": 0,
"datatopub": 2,
"transparency": [{
"domain": "platform2domain.com",
"dsaparams": [1, 2, 3]
}]
}
}
}
}
},
"mockResponse": {
"pbsSeatBids": [{
"pbsBids": [{
"ortbBid": {
"id": "apn-bid",
"impid": "my-imp-id",
"price": 0.3,
"w": 200,
"h": 250,
"crid": "creative-1",
"ext": {
"someField": "someValue",
"origbidcpm": 0.3,
"dsa": {
"behalf": "Advertiser",
"paid": "Advertiser",
"transparency": [{
"domain": "dsp1domain.com",
"dsaparams": [1, 2]
}],
"adrender": 1
}
}
},
"bidType": "video"
}],
"seat": "appnexus"
}]
}
}
},
"response": {
"bids": {
"id": "some-request-id",
"seatbid": [{
"seat": "appnexus",
"bid": [{
"id": "apn-bid",
"impid": "my-imp-id",
"price": 0.3,
"w": 200,
"h": 250,
"crid": "creative-1",
"ext": {
"someField": "someValue",
"origbidcpm": 0.3,
"prebid": {
"meta": {
"adaptercode": "appnexus"
},
"type": "video"
},
"dsa": {
"behalf": "Advertiser",
"paid": "Advertiser",
"transparency": [{
"domain": "dsp1domain.com",
"dsaparams": [1, 2]
}],
"adrender": 1
}
}
}]
}]
}
}
}

0 comments on commit bcf23f3

Please sign in to comment.