Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ type Adapter struct {

// needed for Nova
NovaScylla AdapterNovaScylla
NovaNebula AdapterNovaNebula
}
9 changes: 9 additions & 0 deletions config/bidderinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions exchange/adapter_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
Loading