-
Notifications
You must be signed in to change notification settings - Fork 750
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
New Adapter: oms #3264
New Adapter: oms #3264
Conversation
adapters/oms/oms.go
Outdated
var bidExt openrtb_ext.ExtBid | ||
err := json.Unmarshal(bid.Ext, &bidExt) | ||
if err == nil && bidExt.Prebid != nil { | ||
return openrtb_ext.ParseBidType(string(bidExt.Prebid.Type)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider this as a suggestion. Prebid server expects the media type to be explicitly set in the adapter response. Therefore, recommends implementing a pattern where the adapter server sets the MType field in the response to accurately determine the media type for the impression.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@m6yf requesting to address above comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@onkarvhanumante thanks for the feedback and sorry for late response.
I accept your suggestion, since we support only banners at the moment I've changed it to place the literal :
for _, seatBid := range response.SeatBid {
for i := range seatBid.Bid {
bidResponse.Bids = append(bidResponse.Bids, &adapters.TypedBid{
Bid: &seatBid.Bid[i],
BidType: openrtb_ext.BidTypeBanner,
})
}
}
Code coverage summaryNote:
omsRefer here for heat map coverage report
|
@@ -0,0 +1,11 @@ | |||
endpoint: "http://rt.marphezis.com/pbs" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
endpoint is reachable
@m6yf should open docs PR in https://github.com/prebid/prebid.github.io repo docs pr helps publishers to prepare request for adapters |
Related docs PR: prebid/prebid.github.io#4954 |
@m6yf requesting to address PR comments |
Code coverage summaryNote:
omsRefer here for heat map coverage report
|
Code coverage summaryNote:
omsRefer here for heat map coverage report
|
@@ -0,0 +1,11 @@ | |||
endpoint: "http://rt.marphezis.com/pbs" | |||
maintainer: | |||
email: "[email protected]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@m6yf Prebid team has sent an verification email on above address. Requesting to respond email with "received" message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
received response from OMS
Co-authored-by: yfcr <[email protected]>
Golang code (including tests) for Online media solutions(OMS) server adaptor.