diff --git a/config/adapter.go b/config/adapter.go index 8af938f452a..33fba81a557 100644 --- a/config/adapter.go +++ b/config/adapter.go @@ -13,4 +13,5 @@ type Adapter struct { // needed for Nova NovaScylla AdapterNovaScylla + NovaNebula AdapterNovaNebula } diff --git a/config/bidderinfo.go b/config/bidderinfo.go index 95ca74c3608..dcbc636649e 100644 --- a/config/bidderinfo.go +++ b/config/bidderinfo.go @@ -55,6 +55,7 @@ type BidderInfo struct { // For Nova Adapter only NovaScylla AdapterNovaScylla `yaml:"scylla" mapstructure:"scylla"` + NovaNebula AdapterNovaNebula `yaml:"nebula" mapstructure:"nebula"` } // BidderInfoExperiment specifies non-production ready feature config for a bidder @@ -192,6 +193,11 @@ type AdapterNovaScylla struct { TimeOut int32 `yaml:"query_timeout" mapstructure:"query_timeout"` } +// AdapterNovaNebula specifies the nebula config for Nova Adapter +type AdapterNovaNebula struct { + Endpoint string `yaml:"endpoint" mapstructure:"endpoint"` +} + func (bi BidderInfo) IsEnabled() bool { return !bi.Disabled } @@ -458,6 +464,9 @@ func applyBidderInfoConfigOverrides(configBidderInfos BidderInfos, fsBidderInfos if bidderInfo.NovaScylla.TimeOut == 0 && fsBidderCfg.NovaScylla.TimeOut > 0 { bidderInfo.NovaScylla.TimeOut = fsBidderCfg.NovaScylla.TimeOut } + if bidderInfo.NovaNebula.Endpoint == "" && fsBidderCfg.NovaNebula.Endpoint != "" { + bidderInfo.NovaNebula.Endpoint = fsBidderCfg.NovaNebula.Endpoint + } // validate and try to apply the legacy usersync_url configuration in attempt to provide // an easier upgrade path. be warned, this will break if the bidder adds a second syncer diff --git a/exchange/adapter_util.go b/exchange/adapter_util.go index b80945f62a0..9e0a6175261 100644 --- a/exchange/adapter_util.go +++ b/exchange/adapter_util.go @@ -68,6 +68,7 @@ func buildAdapterInfo(bidderInfo config.BidderInfo) config.Adapter { adapter.AppSecret = bidderInfo.AppSecret adapter.XAPI = bidderInfo.XAPI adapter.NovaScylla = bidderInfo.NovaScylla + adapter.NovaNebula = bidderInfo.NovaNebula return adapter }