Skip to content

Commit

Permalink
ConnectAd: String/int fix (#3925)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtuschkany committed Sep 19, 2024
1 parent 905b3a5 commit 93368cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion adapters/connectad/connectad.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func preprocess(request *openrtb2.BidRequest) []error {
}

func addImpInfo(imp *openrtb2.Imp, secure *int8, cadExt *openrtb_ext.ExtImpConnectAd) {
imp.TagID = strconv.Itoa(cadExt.SiteID)
imp.TagID = strconv.Itoa(int(cadExt.SiteID))
imp.Secure = secure

if cadExt.Bidfloor != 0 {
Expand Down
8 changes: 5 additions & 3 deletions openrtb_ext/imp_connectad.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package openrtb_ext

import "github.com/prebid/prebid-server/v2/util/jsonutil"

type ExtImpConnectAd struct {
NetworkID int `json:"networkId"`
SiteID int `json:"siteId"`
Bidfloor float64 `json:"bidfloor,omitempty"`
NetworkID jsonutil.StringInt `json:"networkId"`
SiteID jsonutil.StringInt `json:"siteId"`
Bidfloor float64 `json:"bidfloor,omitempty"`
}

0 comments on commit 93368cc

Please sign in to comment.