-
Notifications
You must be signed in to change notification settings - Fork 765
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: Bidtheatre #4069
New Adapter: Bidtheatre #4069
Conversation
adapters/bidtheatre/bidtheatre.go
Outdated
var bidExt openrtb_ext.ExtBid | ||
err := jsonutil.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.
Code coverage summaryNote:
bidtheatreRefer here for heat map coverage report
|
@Rothalack can you please review? |
@pm-nikhil-vaidya can you please review? |
Sure @bsardo |
I have no additional feedback for this PR. Looks good to me. You'll probably want to flip pbs support to true on the docs whenever this goes out. |
Thank you all for your feedback, we will review your comments in detail and address them shortly. |
func getMediaTypeForBid(bid openrtb2.Bid) (openrtb_ext.BidType, error) { | ||
var bidExt openrtb_ext.ExtBid | ||
if err := jsonutil.Unmarshal(bid.Ext, &bidExt); 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.
Code coverage summaryNote:
bidtheatreRefer here for heat map coverage report
|
] | ||
} | ||
] | ||
} |
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.
what happend if we add muli-format, multi-imps ?
please add multi-format and multi-imp
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.
The mock impression already is multi-format, you want me to add mock impression requests that's multi-imp?
Hi @andreasgreen, since the review process is underway, instead of rebasing and force pushing, please push new commits when making changes or merge with master to resolve conflicts if they arise. This will expedite the process as it makes it much easier and less time consuming for reviewers since we can just check the delta. When your PR is merged, all commits will be squashed. Thanks! |
@bsardo , sorry, I thought you required the PR to be one-commit at all times, I will push the individual commits going forward. |
👍 No worries! |
@andreasgreen just want to point out that you'll need to run |
Code coverage summaryNote:
bidtheatreRefer here for heat map coverage report
|
adapters/bidtheatre/bidtheatretest/supplemental/bad_response_body.json
Outdated
Show resolved
Hide resolved
Code coverage summaryNote:
bidtheatreRefer here for heat map coverage report
|
Docs: prebid/prebid.github.io#5723
Prebid.js: prebid/Prebid.js#12485