Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dkornet-ad committed Jun 25, 2024
1 parent 4050dae commit 5189113
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions adapters/bidmatic/bidmatic.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ import (
"github.com/prebid/prebid-server/v2/openrtb_ext"
)

type Adapter struct {
type adapter struct {
endpoint string
}

type bidmaticImpExt struct {
Bidmatic openrtb_ext.ExtImpBidmatic `json:"bidmatic"`
}

func (a *Adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.ExtraRequestInfo) ([]*adapters.RequestData, []error) {
func (a *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.ExtraRequestInfo) ([]*adapters.RequestData, []error) {

totalImps := len(request.Imp)
errors := make([]error, 0, totalImps)
Expand Down Expand Up @@ -86,7 +86,7 @@ func (a *Adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E

}

func (a *Adapter) MakeBids(bidReq *openrtb2.BidRequest, unused *adapters.RequestData, httpRes *adapters.ResponseData) (*adapters.BidderResponse, []error) {
func (a *adapter) MakeBids(bidReq *openrtb2.BidRequest, unused *adapters.RequestData, httpRes *adapters.ResponseData) (*adapters.BidderResponse, []error) {

if httpRes.StatusCode == http.StatusNoContent {
return nil, nil
Expand Down Expand Up @@ -198,5 +198,5 @@ func validateImpression(imp *openrtb2.Imp) (int, error) {

// Builder builds a new instance of the bidmatic adapter for the given bidder with the given config.
func Builder(bidderName openrtb_ext.BidderName, config config.Adapter, server config.Server) (adapters.Bidder, error) {
return &Adapter{endpoint: config.Endpoint}, nil
return &adapter{endpoint: config.Endpoint}, nil
}

0 comments on commit 5189113

Please sign in to comment.