Skip to content

Commit

Permalink
BlueSea: Add site capability (#3910)
Browse files Browse the repository at this point in the history
Co-authored-by: prebid-bluesea <[email protected]>
  • Loading branch information
blueseasx and prebid-bluesea authored Oct 16, 2024
1 parent 8134328 commit 451bc44
Show file tree
Hide file tree
Showing 4 changed files with 435 additions and 0 deletions.
133 changes: 133 additions & 0 deletions adapters/bluesea/blueseatest/exemplary/site-banner.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
{
"mockBidRequest":{
"id":"b655d86c-fdf6-4e68-a1e9-abc223f84a65",
"site":{
"id": "100",
"domain": "test.domain",
"page": "https://test.domain?target=_blank",
"keywords": "fashion"
},
"imp":[
{
"id":"1",
"banner":{
"w":300,
"h":250
},
"secure":1,
"ext":{
"bidder":{
"pubid":"test-pubid",
"token":"test-pub-token"
}
}
}
],
"device":{
"os":"android",
"ua":"Mozilla/5.0 (Linux; Android 8.0.0; SC-04J Build/R16NW; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/113.0.5672.162 Mobile Safari/537.36",
"ip":"101.101.101.101",
"h":1280,
"w":720
},
"at":1,
"tmax":1200,
"test":1
},
"httpCalls":[
{
"expectedRequest":{
"uri":"https://test.prebid.bluesea?pubid=test-pubid&token=test-pub-token",
"body":{
"id":"b655d86c-fdf6-4e68-a1e9-abc223f84a65",
"site":{
"id":"100",
"domain": "test.domain",
"page": "https://test.domain?target=_blank",
"keywords": "fashion"
},
"imp":[
{
"id":"1",
"banner":{
"w":300,
"h":250
},
"secure":1,
"ext":{
"bidder":{
"pubid":"test-pubid",
"token":"test-pub-token"
}
}
}
],
"device":{
"os":"android",
"ua":"Mozilla/5.0 (Linux; Android 8.0.0; SC-04J Build/R16NW; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/113.0.5672.162 Mobile Safari/537.36",
"ip":"101.101.101.101",
"h":1280,
"w":720
},
"at":1,
"tmax":1200,
"test":1
},
"impIDs":["1"]
},
"mockResponse":{
"status":200,
"body":{
"id":"b655d86c-fdf6-4e68-a1e9-abc223f84a65",
"seatbid":[
{
"bid":[
{
"price":0.01,
"adm":"test-adm",
"impid":"1",
"id":"test-bid-id",
"h":250,
"adomain":[
"adv.com"
],
"crid":"test-site-crid",
"w":300,
"ext":{
"mediatype":"banner"
}
}
],
"seat":"test-seat"
}
],
"cur":"USD"
}
}
}
],
"expectedBidResponses":[
{
"bids":[
{
"bid":{
"price":0.01,
"adm":"test-adm",
"impid":"1",
"id":"test-bid-id",
"h":250,
"adomain":[
"adv.com"
],
"crid":"test-site-crid",
"w":300,
"ext":{
"mediatype":"banner"
}
},
"type":"banner"
}
]
}
]
}
133 changes: 133 additions & 0 deletions adapters/bluesea/blueseatest/exemplary/site-native.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
{
"mockBidRequest":{
"id":"b655d86c-fdf6-4e68-a1e9-abc223f84a65",
"site":{
"id": "100",
"domain": "test.domain",
"page": "https://test.domain?target=_blank",
"keywords": "fashion"
},
"imp":[
{
"id":"1",
"native":{
"request":"{\"ver\":\"1.2\",\"context\":1,\"plcmttype\":4,\"plcmtcnt\":1,\"assets\":[{\"id\":1,\"required\":1,\"title\":{\"len\":150}},{\"id\":2,\"required\":1,\"img\":{\"type\":3,\"wmin\":100,\"hmin\":100}},{\"id\":3,\"required\":1,\"data\":{\"type\":2,\"len\":120}}]}",
"ver":"1.2"
},
"secure":1,
"ext":{
"bidder":{
"pubid":"test-pubid",
"token":"test-pub-token"
}
}
}
],
"device":{
"os":"android",
"ua":"Mozilla/5.0 (Linux; Android 8.0.0; SC-04J Build/R16NW; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/113.0.5672.162 Mobile Safari/537.36",
"ip":"101.101.101.101",
"h":1280,
"w":720
},
"at":1,
"tmax":1200,
"test":1
},
"httpCalls":[
{
"expectedRequest":{
"uri":"https://test.prebid.bluesea?pubid=test-pubid&token=test-pub-token",
"body":{
"id":"b655d86c-fdf6-4e68-a1e9-abc223f84a65",
"site":{
"id":"100",
"domain": "test.domain",
"page": "https://test.domain?target=_blank",
"keywords": "fashion"
},
"imp":[
{
"id":"1",
"native":{
"request":"{\"ver\":\"1.2\",\"context\":1,\"plcmttype\":4,\"plcmtcnt\":1,\"assets\":[{\"id\":1,\"required\":1,\"title\":{\"len\":150}},{\"id\":2,\"required\":1,\"img\":{\"type\":3,\"wmin\":100,\"hmin\":100}},{\"id\":3,\"required\":1,\"data\":{\"type\":2,\"len\":120}}]}",
"ver":"1.2"
},
"secure":1,
"ext":{
"bidder":{
"pubid":"test-pubid",
"token":"test-pub-token"
}
}
}
],
"device":{
"os":"android",
"ua":"Mozilla/5.0 (Linux; Android 8.0.0; SC-04J Build/R16NW; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/113.0.5672.162 Mobile Safari/537.36",
"ip":"101.101.101.101",
"h":1280,
"w":720
},
"at":1,
"tmax":1200,
"test":1
},
"impIDs":["1"]
},
"mockResponse":{
"status":200,
"body":{
"id":"b655d86c-fdf6-4e68-a1e9-abc223f84a65",
"seatbid":[
{
"bid":[
{
"price":0.01,
"adm":"test-native-adm",
"impid":"1",
"id":"test-bid-id",
"h":250,
"adomain":[
"adv.com"
],
"crid":"test-site-native-crid",
"w":300,
"ext":{
"mediatype":"native"
}
}
],
"seat":"test-seat"
}
],
"cur":"USD"
}
}
}
],
"expectedBidResponses":[
{
"bids":[
{
"bid":{
"price":0.01,
"adm":"test-native-adm",
"impid":"1",
"id":"test-bid-id",
"h":250,
"adomain":[
"adv.com"
],
"crid":"test-site-native-crid",
"w":300,
"ext":{
"mediatype":"native"
}
},
"type":"native"
}
]
}
]
}
Loading

0 comments on commit 451bc44

Please sign in to comment.