-
Notifications
You must be signed in to change notification settings - Fork 749
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: Pixfuture #4105
base: master
Are you sure you want to change the base?
New Adapter: Pixfuture #4105
Conversation
|
||
// Builder builds a new instance of the Pixfuture adapter. | ||
func Builder(bidderName openrtb_ext.BidderName, config config.Adapter, server config.Server) (adapters.Bidder, error) { | ||
bidder := &PixfutureAdapter{ |
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.
You can call this simply "adapter", the PixfutureAdapter
identification is already supplied by the package name. As you have it, referencing your adapter from outside the package would be PixfutureAdapter.PixfutureAdapter
which looks a little redundant. See example below:
package foo
type adapter struct {
endpoint string
}
func Builder(bidderName openrtb_ext.BidderName, config config.Adapter, server config.Server) (adapters.Bidder, error) {
return &adapter{endpoint: "https://www.foo.com"}, nil
}
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:
pixfutureRefer here for heat map coverage report
|
Summary
We have developed a new Prebid Server adapter and are proposing its addition to the master branch for review.
Changes
Implemented a new Prebid Server adapter.
Added unit tests to ensure functionality.
Updated documentation with usage instructions and parameters.
Reason for Change
This new adapter will allow for more robust and flexible bidding options, enhancing our server-side header bidding capabilities.
Testing
Passed all unit tests.
Successfully integrated with our test environment and confirmed expected behavior.
No breaking changes detected in existing functionality.
Request
Please review the code changes and provide feedback. Once approved, we will merge this adapter into the master branch.