forked from prebid/prebid-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BlueSea: Add site capability (prebid#3910)
Co-authored-by: prebid-bluesea <[email protected]>
- Loading branch information
Showing
4 changed files
with
435 additions
and
0 deletions.
There are no files selected for viewing
133 changes: 133 additions & 0 deletions
133
adapters/bluesea/blueseatest/exemplary/site-banner.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
133
adapters/bluesea/blueseatest/exemplary/site-native.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.