Skip to content

Commit

Permalink
fix bigoad updater
Browse files Browse the repository at this point in the history
  • Loading branch information
linzhucheng committed Jul 1, 2024
1 parent fccd9b7 commit 2baaaa3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion adapters/bigoad/bigoad.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func getImpExt(imp *openrtb2.Imp) (*openrtb_ext.ExtImpBigoAd, error) {
}

func (a *adapter) buildEndpointURL(params *openrtb_ext.ExtImpBigoAd) (string, error) {
endpointParams := macros.EndpointTemplateParams{Host: params.Host, SspId: params.SspId}
endpointParams := macros.EndpointTemplateParams{SspId: params.SspId}
return macros.ResolveMacros(a.endpoint, endpointParams)
}

Expand Down
2 changes: 1 addition & 1 deletion adapters/bigoad/param_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ var invalidParams = []string{
`null`,
`[]`,
`{}`,
`{"host": "baidu.com"}`,
`{"xxx": "baidu.com"}`,
}
2 changes: 1 addition & 1 deletion openrtb_ext/bidders.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ var coreBidderNames []BidderName = []BidderName{
BidderBidmyadz,
BidderBidsCube,
BidderBidstack,
BidderBigoAd,
BidderBizzclick,
BidderBliink,
BidderBlue,
Expand Down Expand Up @@ -222,7 +223,6 @@ var coreBidderNames []BidderName = []BidderName{
BidderZeroClickFraud,
BidderZetaGlobalSsp,
BidderZmaticoo,
BidderBigoAd,
}

func GetAliasBidderToParent() map[BidderName]BidderName {
Expand Down
1 change: 0 additions & 1 deletion openrtb_ext/imp_bigoad.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package openrtb_ext

type ExtImpBigoAd struct {
Host string `json:"host"`
SspId string `json:"sspid"`
}

0 comments on commit 2baaaa3

Please sign in to comment.