Skip to content

Commit

Permalink
change oguryAdapter to adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
krdzo authored Nov 29, 2024
1 parent cfc66d0 commit 1125795
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions adapters/ogury/ogury.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,16 @@ import (
"github.com/prebid/prebid-server/v3/openrtb_ext"
)

type oguryAdapter struct {
type adapter struct {
endpoint string
}

func Builder(_ openrtb_ext.BidderName, config config.Adapter, _ config.Server) (adapters.Bidder, error) {
adapter := &oguryAdapter{
endpoint: config.Endpoint,
}
return adapter, nil
return &adapter{endpoint: config.Endpoint,}, nil

}

func (a oguryAdapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapters.ExtraRequestInfo) ([]*adapters.RequestData, []error) {
func (a adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapters.ExtraRequestInfo) ([]*adapters.RequestData, []error) {
headers := setHeaders(request)

request.Imp = filterValidImps(request)
Expand Down Expand Up @@ -193,7 +191,7 @@ func getMediaTypeForBid(impressions []openrtb2.Imp, bid openrtb2.Bid) (openrtb_e
}
}

func (a oguryAdapter) MakeBids(request *openrtb2.BidRequest, _ *adapters.RequestData, responseData *adapters.ResponseData) (*adapters.BidderResponse, []error) {
func (a adapter) MakeBids(request *openrtb2.BidRequest, _ *adapters.RequestData, responseData *adapters.ResponseData) (*adapters.BidderResponse, []error) {
if adapters.IsResponseStatusCodeNoContent(responseData) {
return nil, nil
}
Expand Down

0 comments on commit 1125795

Please sign in to comment.