diff --git a/adapters/connectad/connectad.go b/adapters/connectad/connectad.go index 83023195c54..083d6830935 100644 --- a/adapters/connectad/connectad.go +++ b/adapters/connectad/connectad.go @@ -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 { diff --git a/openrtb_ext/imp_connectad.go b/openrtb_ext/imp_connectad.go index c4c7ab696f2..d530534cf4f 100644 --- a/openrtb_ext/imp_connectad.go +++ b/openrtb_ext/imp_connectad.go @@ -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"` }