Skip to content

Commit

Permalink
Rise: Update bidder info yaml (#4039)
Browse files Browse the repository at this point in the history
  • Loading branch information
zkosanovic authored Dec 10, 2024
1 parent 994ef5b commit f963cdb
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 0 deletions.
2 changes: 2 additions & 0 deletions adapters/rise/rise.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ func getMediaTypeForBid(bid openrtb2.Bid) (openrtb_ext.BidType, error) {
return openrtb_ext.BidTypeBanner, nil
case openrtb2.MarkupVideo:
return openrtb_ext.BidTypeVideo, nil
case openrtb2.MarkupNative:
return openrtb_ext.BidTypeNative, nil
default:
return "", fmt.Errorf("unsupported MType %d", bid.MType)
}
Expand Down
104 changes: 104 additions & 0 deletions adapters/rise/risetest/exemplary/simple-native.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
{
"mockBidRequest": {
"id": "test-request-id",
"imp": [
{
"id": "test-imp-id",
"native": {
"request": "{\"ver\":\"1.2\",\"context\":1,\"contextsubtype\":10,\"plcmttype\":1,\"assets\":[{\"id\":1,\"required\":1,\"title\":{\"len\":25}},{\"id\":2,\"required\":1,\"img\":{\"type\":3,\"wmin\":1200,\"hmin\":627}}]}"
},
"ext": {
"bidder": {
"org": "72720",
"publisher_id": "72721",
"path": "mvo",
"zone": "1r"
}
}
}
]
},
"httpCalls": [
{
"expectedRequest": {
"uri": "http://localhost/prebid_server?publisher_id=72720",
"body": {
"id": "test-request-id",
"imp": [
{
"id": "test-imp-id",
"native": {
"request": "{\"ver\":\"1.2\",\"context\":1,\"contextsubtype\":10,\"plcmttype\":1,\"assets\":[{\"id\":1,\"required\":1,\"title\":{\"len\":25}},{\"id\":2,\"required\":1,\"img\":{\"type\":3,\"wmin\":1200,\"hmin\":627}}]}"
},
"ext": {
"bidder": {
"org": "72720",
"publisher_id": "72721",
"zone": "1r",
"path": "mvo"
}
}
}
]
},
"impIDs": [
"test-imp-id"
]
},
"mockResponse": {
"status": 200,
"body": {
"id": "test-request-id",
"seatbid": [
{
"seat": "958",
"bid": [
{
"id": "7706636740145184841",
"impid": "test-imp-id",
"price": 0.5,
"adid": "29681110",
"adm": "some-test-ad",
"adomain": [
"yahoo.com"
],
"cid": "958",
"crid": "29681110",
"h": 250,
"w": 300,
"mtype": 4
}
]
}
],
"bidid": "5778926625248726496",
"cur": "USD"
}
}
}
],
"expectedBidResponses": [
{
"bids": [
{
"bid": {
"id": "7706636740145184841",
"impid": "test-imp-id",
"price": 0.5,
"adm": "some-test-ad",
"adid": "29681110",
"adomain": [
"yahoo.com"
],
"cid": "958",
"crid": "29681110",
"w": 300,
"h": 250,
"mtype": 4
},
"type": "native"
}
]
}
]
}
5 changes: 5 additions & 0 deletions static/bidder-info/rise.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
endpoint: "https://pbs.yellowblue.io/pbs"
endpointCompression: gzip
geoscope:
- global
maintainer:
email: [email protected]
gvlVendorID: 1043
Expand All @@ -8,10 +11,12 @@ capabilities:
mediaTypes:
- banner
- video
- native
site:
mediaTypes:
- banner
- video
- native
userSync:
iframe:
url: https://pbs-cs.yellowblue.io/pbs-iframe?gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&gpp={{.GPP}}&gpp_sid={{.GPPSID}}&redirect={{.RedirectURL}}
Expand Down

0 comments on commit f963cdb

Please sign in to comment.