Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rise: Update bidder info yaml #4039

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
SyntaxNode marked this conversation as resolved.
Show resolved Hide resolved
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
Loading