diff --git a/adapters/zemanta/zemanta.go b/adapters/outbrain/outbrain.go similarity index 86% rename from adapters/zemanta/zemanta.go rename to adapters/outbrain/outbrain.go index ae547eb91aa..c270dcf2e84 100644 --- a/adapters/zemanta/zemanta.go +++ b/adapters/outbrain/outbrain.go @@ -1,4 +1,4 @@ -package zemanta +package outbrain import ( "encoding/json" @@ -16,7 +16,7 @@ type adapter struct { endpoint string } -// Builder builds a new instance of the Zemanta adapter for the given bidder with the given config. +// Builder builds a new instance of the Outbrain adapter for the given bidder with the given config. func Builder(bidderName openrtb_ext.BidderName, config config.Adapter) (adapters.Bidder, error) { bidder := &adapter{ endpoint: config.Endpoint, @@ -28,7 +28,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte reqCopy := *request var errs []error - var zemantaExt openrtb_ext.ExtImpZemanta + var outbrainExt openrtb_ext.ExtImpOutbrain for i := 0; i < len(reqCopy.Imp); i++ { imp := reqCopy.Imp[i] @@ -37,18 +37,18 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte errs = append(errs, err) continue } - if err := json.Unmarshal(bidderExt.Bidder, &zemantaExt); err != nil { + if err := json.Unmarshal(bidderExt.Bidder, &outbrainExt); err != nil { errs = append(errs, err) continue } - imp.TagID = zemantaExt.TagId + imp.TagID = outbrainExt.TagId reqCopy.Imp[i] = imp } publisher := &openrtb2.Publisher{ - ID: zemantaExt.Publisher.Id, - Name: zemantaExt.Publisher.Name, - Domain: zemantaExt.Publisher.Domain, + ID: outbrainExt.Publisher.Id, + Name: outbrainExt.Publisher.Name, + Domain: outbrainExt.Publisher.Domain, } if reqCopy.Site != nil { siteCopy := *reqCopy.Site @@ -60,11 +60,11 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte reqCopy.App = &appCopy } - if zemantaExt.BCat != nil { - reqCopy.BCat = zemantaExt.BCat + if outbrainExt.BCat != nil { + reqCopy.BCat = outbrainExt.BCat } - if zemantaExt.BAdv != nil { - reqCopy.BAdv = zemantaExt.BAdv + if outbrainExt.BAdv != nil { + reqCopy.BAdv = outbrainExt.BAdv } requestJSON, err := json.Marshal(reqCopy) diff --git a/adapters/zemanta/zemanta_test.go b/adapters/outbrain/outbrain_test.go similarity index 69% rename from adapters/zemanta/zemanta_test.go rename to adapters/outbrain/outbrain_test.go index e63eb51005c..533bad388ce 100644 --- a/adapters/zemanta/zemanta_test.go +++ b/adapters/outbrain/outbrain_test.go @@ -1,4 +1,4 @@ -package zemanta +package outbrain import ( "testing" @@ -9,12 +9,12 @@ import ( ) func TestJsonSamples(t *testing.T) { - bidder, buildErr := Builder(openrtb_ext.BidderZemanta, config.Adapter{ + bidder, buildErr := Builder(openrtb_ext.BidderOutbrain, config.Adapter{ Endpoint: "http://example.com/bid"}) if buildErr != nil { t.Fatalf("Builder returned unexpected error %v", buildErr) } - adapterstest.RunJSONBidderTest(t, "zemantatest", bidder) + adapterstest.RunJSONBidderTest(t, "outbraintest", bidder) } diff --git a/adapters/zemanta/zemantatest/exemplary/banner.json b/adapters/outbrain/outbraintest/exemplary/banner.json similarity index 100% rename from adapters/zemanta/zemantatest/exemplary/banner.json rename to adapters/outbrain/outbraintest/exemplary/banner.json diff --git a/adapters/zemanta/zemantatest/exemplary/native.json b/adapters/outbrain/outbraintest/exemplary/native.json similarity index 100% rename from adapters/zemanta/zemantatest/exemplary/native.json rename to adapters/outbrain/outbraintest/exemplary/native.json diff --git a/adapters/zemanta/zemantatest/params/race/banner.json b/adapters/outbrain/outbraintest/params/race/banner.json similarity index 100% rename from adapters/zemanta/zemantatest/params/race/banner.json rename to adapters/outbrain/outbraintest/params/race/banner.json diff --git a/adapters/zemanta/zemantatest/params/race/native.json b/adapters/outbrain/outbraintest/params/race/native.json similarity index 100% rename from adapters/zemanta/zemantatest/params/race/native.json rename to adapters/outbrain/outbraintest/params/race/native.json diff --git a/adapters/zemanta/zemantatest/supplemental/app_request.json b/adapters/outbrain/outbraintest/supplemental/app_request.json similarity index 100% rename from adapters/zemanta/zemantatest/supplemental/app_request.json rename to adapters/outbrain/outbraintest/supplemental/app_request.json diff --git a/adapters/zemanta/zemantatest/supplemental/optional_params.json b/adapters/outbrain/outbraintest/supplemental/optional_params.json similarity index 100% rename from adapters/zemanta/zemantatest/supplemental/optional_params.json rename to adapters/outbrain/outbraintest/supplemental/optional_params.json diff --git a/adapters/zemanta/zemantatest/supplemental/status_204.json b/adapters/outbrain/outbraintest/supplemental/status_204.json similarity index 100% rename from adapters/zemanta/zemantatest/supplemental/status_204.json rename to adapters/outbrain/outbraintest/supplemental/status_204.json diff --git a/adapters/zemanta/zemantatest/supplemental/status_400.json b/adapters/outbrain/outbraintest/supplemental/status_400.json similarity index 100% rename from adapters/zemanta/zemantatest/supplemental/status_400.json rename to adapters/outbrain/outbraintest/supplemental/status_400.json diff --git a/adapters/zemanta/zemantatest/supplemental/status_418.json b/adapters/outbrain/outbraintest/supplemental/status_418.json similarity index 100% rename from adapters/zemanta/zemantatest/supplemental/status_418.json rename to adapters/outbrain/outbraintest/supplemental/status_418.json diff --git a/adapters/zemanta/params_test.go b/adapters/outbrain/params_test.go similarity index 87% rename from adapters/zemanta/params_test.go rename to adapters/outbrain/params_test.go index 54e67c57bf1..a8d81d6234d 100644 --- a/adapters/zemanta/params_test.go +++ b/adapters/outbrain/params_test.go @@ -1,4 +1,4 @@ -package zemanta +package outbrain import ( "encoding/json" @@ -14,7 +14,7 @@ func TestValidParams(t *testing.T) { } for _, p := range validParams { - if err := validator.Validate(openrtb_ext.BidderZemanta, json.RawMessage(p)); err != nil { + if err := validator.Validate(openrtb_ext.BidderOutbrain, json.RawMessage(p)); err != nil { t.Errorf("Schema rejected valid params: %s", p) } } @@ -27,7 +27,7 @@ func TestInvalidParams(t *testing.T) { } for _, p := range invalidParams { - if err := validator.Validate(openrtb_ext.BidderZemanta, json.RawMessage(p)); err == nil { + if err := validator.Validate(openrtb_ext.BidderOutbrain, json.RawMessage(p)); err == nil { t.Errorf("Schema allowed invalid params: %s", p) } } diff --git a/adapters/outbrain/usersync.go b/adapters/outbrain/usersync.go new file mode 100644 index 00000000000..7dd60306c60 --- /dev/null +++ b/adapters/outbrain/usersync.go @@ -0,0 +1,12 @@ +package outbrain + +import ( + "text/template" + + "github.com/prebid/prebid-server/adapters" + "github.com/prebid/prebid-server/usersync" +) + +func NewOutbrainSyncer(temp *template.Template) usersync.Usersyncer { + return adapters.NewSyncer("outbrain", temp, adapters.SyncTypeRedirect) +} diff --git a/adapters/zemanta/usersync_test.go b/adapters/outbrain/usersync_test.go similarity index 93% rename from adapters/zemanta/usersync_test.go rename to adapters/outbrain/usersync_test.go index e56851be821..f531834fc48 100644 --- a/adapters/zemanta/usersync_test.go +++ b/adapters/outbrain/usersync_test.go @@ -1,4 +1,4 @@ -package zemanta +package outbrain import ( "testing" @@ -16,7 +16,7 @@ func TestSyncer(t *testing.T) { template.New("sync-template").Parse(syncURL), ) - syncer := NewZemantaSyncer(syncURLTemplate) + syncer := NewOutbrainSyncer(syncURLTemplate) syncInfo, err := syncer.GetUsersyncInfo(privacy.Policies{ GDPR: gdpr.Policy{ Signal: "A", diff --git a/adapters/zemanta/usersync.go b/adapters/zemanta/usersync.go deleted file mode 100644 index fec8a2feda8..00000000000 --- a/adapters/zemanta/usersync.go +++ /dev/null @@ -1,12 +0,0 @@ -package zemanta - -import ( - "text/template" - - "github.com/prebid/prebid-server/adapters" - "github.com/prebid/prebid-server/usersync" -) - -func NewZemantaSyncer(temp *template.Template) usersync.Usersyncer { - return adapters.NewSyncer("zemanta", temp, adapters.SyncTypeRedirect) -} diff --git a/config/config.go b/config/config.go index bda531f2460..b300bc58e49 100644 --- a/config/config.go +++ b/config/config.go @@ -622,6 +622,7 @@ func (cfg *Configuration) setDerivedDefaults() { setDefaultUsersync(cfg.Adapters, openrtb_ext.BidderNoBid, "https://ads.servenobid.com/getsync?tek=pbs&ver=1&gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&redirect="+url.QueryEscape(externalURL)+"%2Fsetuid%3Fbidder%3Dnobid%26uid%3D%24UID") setDefaultUsersync(cfg.Adapters, openrtb_ext.BidderOpenx, "https://rtb.openx.net/sync/prebid?gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&r="+url.QueryEscape(externalURL)+"%2Fsetuid%3Fbidder%3Dopenx%26gdpr%3D{{.GDPR}}%26gdpr_consent%3D{{.GDPRConsent}}%26uid%3D%24%7BUID%7D") setDefaultUsersync(cfg.Adapters, openrtb_ext.BidderOneTag, "https://onetag-sys.com/usync/?redir="+url.QueryEscape(externalURL)+"%2Fsetuid%3Fbidder%3Donetag%26gdpr%3D{{.GDPR}}%26gdpr_consent%3D{{.GDPRConsent}}%26uid%3D%24%7BUSER_TOKEN%7D") + setDefaultUsersync(cfg.Adapters, openrtb_ext.BidderOutbrain, "https://prebidtest.zemanta.com/usersync/prebidtest?gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&cb="+url.QueryEscape(externalURL)+"%2Fsetuid%3Fbidder%3Doutbrain%26uid%3D__ZUID__") setDefaultUsersync(cfg.Adapters, openrtb_ext.BidderPubmatic, "https://ads.pubmatic.com/AdServer/js/user_sync.html?gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&predirect="+url.QueryEscape(externalURL)+"%2Fsetuid%3Fbidder%3Dpubmatic%26gdpr%3D{{.GDPR}}%26gdpr_consent%3D{{.GDPRConsent}}%26uid%3D") setDefaultUsersync(cfg.Adapters, openrtb_ext.BidderPulsepoint, "https://bh.contextweb.com/rtset?pid=561205&ev=1&rurl="+url.QueryEscape(externalURL)+"%2Fsetuid%3Fbidder%3Dpulsepoint%26gdpr%3D{{.GDPR}}%26gdpr_consent%3D{{.GDPRConsent}}%26uid%3D%25%25VGUID%25%25") setDefaultUsersync(cfg.Adapters, openrtb_ext.BidderRhythmone, "https://sync.1rx.io/usersync2/rmphb?gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&redir="+url.QueryEscape(externalURL)+"%2Fsetuid%3Fbidder%3Drhythmone%26gdpr%3D{{.GDPR}}%26gdpr_consent%3D{{.GDPRConsent}}%26uid%3D%5BRX_UUID%5D") @@ -649,7 +650,6 @@ func (cfg *Configuration) setDerivedDefaults() { setDefaultUsersync(cfg.Adapters, openrtb_ext.BidderYieldlab, "https://ad.yieldlab.net/mr?t=2&pid=9140838&gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&r="+url.QueryEscape(externalURL)+"%2Fsetuid%3Fbidder%3Dyieldlab%26gdpr%3D{{.GDPR}}%26gdpr_consent%3D{{.GDPRConsent}}%26uid%3D%25%25YL_UID%25%25") setDefaultUsersync(cfg.Adapters, openrtb_ext.BidderYieldmo, "https://ads.yieldmo.com/pbsync?gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&redirectUri="+url.QueryEscape(externalURL)+"%2Fsetuid%3Fbidder%3Dyieldmo%26gdpr%3D{{.GDPR}}%26gdpr_consent%3D{{.GDPRConsent}}%26uid%3D%24UID") setDefaultUsersync(cfg.Adapters, openrtb_ext.BidderYieldone, "https://y.one.impact-ad.jp/hbs_cs?gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&redirectUri="+url.QueryEscape(externalURL)+"%2Fsetuid%3Fbidder%3Dyieldone%26gdpr%3D{{.GDPR}}%26gdpr_consent%3D{{.GDPRConsent}}%26uid%3D%24UID") - setDefaultUsersync(cfg.Adapters, openrtb_ext.BidderZemanta, "http://prebidtest.zemanta.com/usersync/prebidtest?gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&cb="+url.QueryEscape(externalURL)+"%2Fsetuid%3Fbidder%3Dzemanta%26uid%3D__ZUID__") setDefaultUsersync(cfg.Adapters, openrtb_ext.BidderZeroClickFraud, "https://s.0cf.io/sync?gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&r="+url.QueryEscape(externalURL)+"%2Fsetuid%3Fbidder%3Dzeroclickfraud%26gdpr%3D{{.GDPR}}%26gdpr_consent%3D{{.GDPRConsent}}%26uid%3D%24%7Buid%7D") setDefaultUsersync(cfg.Adapters, openrtb_ext.BidderBetween, "https://ads.betweendigital.com/match?bidder_id=pbs&gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&callback_url="+url.QueryEscape(externalURL)+"%2Fsetuid%3Fbidder%3Dbetween%26gdpr%3D0%26gdpr_consent%3D{{.GDPRConsent}}%26uid%3D%24%7BUSER_ID%7D") } @@ -876,6 +876,7 @@ func SetupViper(v *viper.Viper, filename string) { v.SetDefault("adapters.onetag.endpoint", "https://prebid-server.onetag-sys.com/prebid-server/{{.PublisherID}}") v.SetDefault("adapters.openx.endpoint", "http://rtb.openx.net/prebid") v.SetDefault("adapters.orbidder.endpoint", "https://orbidder.otto.de/openrtb2") + v.SetDefault("adapters.outbrain.endpoint", "https://prebidtest.zemanta.com/api/bidder/prebidtest/bid/") v.SetDefault("adapters.pangle.disabled", true) v.SetDefault("adapters.pubmatic.endpoint", "https://hbopenbid.pubmatic.com/translator?source=prebid-server") v.SetDefault("adapters.pubnative.endpoint", "http://dsp.pubnative.net/bid/v1/request") @@ -913,7 +914,6 @@ func SetupViper(v *viper.Viper, filename string) { v.SetDefault("adapters.yieldlab.endpoint", "https://ad.yieldlab.net/yp/") v.SetDefault("adapters.yieldmo.endpoint", "https://ads.yieldmo.com/exchange/prebid-server") v.SetDefault("adapters.yieldone.endpoint", "https://y.one.impact-ad.jp/hbs_imp") - v.SetDefault("adapters.zemanta.endpoint", "https://prebidtest.zemanta.com/api/bidder/prebidtest/bid/") v.SetDefault("adapters.zeroclickfraud.endpoint", "http://{{.Host}}/openrtb2?sid={{.SourceId}}") v.SetDefault("max_request_size", 1024*256) diff --git a/exchange/adapter_builders.go b/exchange/adapter_builders.go index 801d4023d02..307a07fafd7 100755 --- a/exchange/adapter_builders.go +++ b/exchange/adapter_builders.go @@ -70,6 +70,7 @@ import ( "github.com/prebid/prebid-server/adapters/onetag" "github.com/prebid/prebid-server/adapters/openx" "github.com/prebid/prebid-server/adapters/orbidder" + "github.com/prebid/prebid-server/adapters/outbrain" "github.com/prebid/prebid-server/adapters/pangle" "github.com/prebid/prebid-server/adapters/pubmatic" "github.com/prebid/prebid-server/adapters/pubnative" @@ -103,7 +104,6 @@ import ( "github.com/prebid/prebid-server/adapters/yieldlab" "github.com/prebid/prebid-server/adapters/yieldmo" "github.com/prebid/prebid-server/adapters/yieldone" - "github.com/prebid/prebid-server/adapters/zemanta" "github.com/prebid/prebid-server/adapters/zeroclickfraud" "github.com/prebid/prebid-server/openrtb_ext" ) @@ -182,6 +182,7 @@ func newAdapterBuilders() map[openrtb_ext.BidderName]adapters.Builder { openrtb_ext.BidderOneTag: onetag.Builder, openrtb_ext.BidderOpenx: openx.Builder, openrtb_ext.BidderOrbidder: orbidder.Builder, + openrtb_ext.BidderOutbrain: outbrain.Builder, openrtb_ext.BidderPangle: pangle.Builder, openrtb_ext.BidderPubmatic: pubmatic.Builder, openrtb_ext.BidderPubnative: pubnative.Builder, @@ -216,7 +217,6 @@ func newAdapterBuilders() map[openrtb_ext.BidderName]adapters.Builder { openrtb_ext.BidderYieldlab: yieldlab.Builder, openrtb_ext.BidderYieldmo: yieldmo.Builder, openrtb_ext.BidderYieldone: yieldone.Builder, - openrtb_ext.BidderZemanta: zemanta.Builder, openrtb_ext.BidderZeroClickFraud: zeroclickfraud.Builder, } } diff --git a/openrtb_ext/bidders.go b/openrtb_ext/bidders.go index 8cc1bbd9547..f48cb23047a 100755 --- a/openrtb_ext/bidders.go +++ b/openrtb_ext/bidders.go @@ -143,6 +143,7 @@ const ( BidderOneTag BidderName = "onetag" BidderOpenx BidderName = "openx" BidderOrbidder BidderName = "orbidder" + BidderOutbrain BidderName = "outbrain" BidderPangle BidderName = "pangle" BidderPubmatic BidderName = "pubmatic" BidderPubnative BidderName = "pubnative" @@ -177,7 +178,6 @@ const ( BidderYieldlab BidderName = "yieldlab" BidderYieldmo BidderName = "yieldmo" BidderYieldone BidderName = "yieldone" - BidderZemanta BidderName = "zemanta" BidderZeroClickFraud BidderName = "zeroclickfraud" ) @@ -254,6 +254,7 @@ func CoreBidderNames() []BidderName { BidderOneTag, BidderOpenx, BidderOrbidder, + BidderOutbrain, BidderPangle, BidderPubmatic, BidderPubnative, @@ -288,7 +289,6 @@ func CoreBidderNames() []BidderName { BidderYieldlab, BidderYieldmo, BidderYieldone, - BidderZemanta, BidderZeroClickFraud, } } diff --git a/openrtb_ext/imp_outbrain.go b/openrtb_ext/imp_outbrain.go new file mode 100644 index 00000000000..634f29481c1 --- /dev/null +++ b/openrtb_ext/imp_outbrain.go @@ -0,0 +1,15 @@ +package openrtb_ext + +// ExtImpOutbrain defines the contract for bidrequest.imp[i].ext.outbrain +type ExtImpOutbrain struct { + Publisher ExtImpOutbrainPublisher `json:"publisher"` + TagId string `json:"tagid"` + BCat []string `json:"bcat"` + BAdv []string `json:"badv"` +} + +type ExtImpOutbrainPublisher struct { + Id string `json:"id"` + Name string `json:"name"` + Domain string `json:"domain"` +} diff --git a/openrtb_ext/imp_zemanta.go b/openrtb_ext/imp_zemanta.go deleted file mode 100644 index 5baab6d2fd4..00000000000 --- a/openrtb_ext/imp_zemanta.go +++ /dev/null @@ -1,15 +0,0 @@ -package openrtb_ext - -// ExtImpZemanta defines the contract for bidrequest.imp[i].ext.zemanta -type ExtImpZemanta struct { - Publisher ExtImpZemantaPublisher `json:"publisher"` - TagId string `json:"tagid"` - BCat []string `json:"bcat"` - BAdv []string `json:"badv"` -} - -type ExtImpZemantaPublisher struct { - Id string `json:"id"` - Name string `json:"name"` - Domain string `json:"domain"` -} diff --git a/static/bidder-info/zemanta.yaml b/static/bidder-info/outbrain.yaml similarity index 100% rename from static/bidder-info/zemanta.yaml rename to static/bidder-info/outbrain.yaml diff --git a/static/bidder-params/zemanta.json b/static/bidder-params/outbrain.json similarity index 92% rename from static/bidder-params/zemanta.json rename to static/bidder-params/outbrain.json index b122c7dea4b..8cfb8bbdf28 100644 --- a/static/bidder-params/zemanta.json +++ b/static/bidder-params/outbrain.json @@ -1,7 +1,7 @@ { "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Zemanta Adapter Params", - "description": "A schema which validates params accepted by the Zemanta adapter", + "title": "Outbrain Adapter Params", + "description": "A schema which validates params accepted by the Outbrain adapter", "type": "object", "properties": { diff --git a/usersync/usersyncers/syncer.go b/usersync/usersyncers/syncer.go index 30c0ebf5f37..104312cc164 100644 --- a/usersync/usersyncers/syncer.go +++ b/usersync/usersyncers/syncer.go @@ -60,6 +60,7 @@ import ( "github.com/prebid/prebid-server/adapters/nobid" "github.com/prebid/prebid-server/adapters/onetag" "github.com/prebid/prebid-server/adapters/openx" + "github.com/prebid/prebid-server/adapters/outbrain" "github.com/prebid/prebid-server/adapters/pubmatic" "github.com/prebid/prebid-server/adapters/pulsepoint" "github.com/prebid/prebid-server/adapters/rhythmone" @@ -87,7 +88,6 @@ import ( "github.com/prebid/prebid-server/adapters/yieldlab" "github.com/prebid/prebid-server/adapters/yieldmo" "github.com/prebid/prebid-server/adapters/yieldone" - "github.com/prebid/prebid-server/adapters/zemanta" "github.com/prebid/prebid-server/adapters/zeroclickfraud" "github.com/prebid/prebid-server/config" "github.com/prebid/prebid-server/openrtb_ext" @@ -153,6 +153,7 @@ func NewSyncerMap(cfg *config.Configuration) map[openrtb_ext.BidderName]usersync insertIntoMap(cfg, syncers, openrtb_ext.BidderNinthDecimal, ninthdecimal.NewNinthDecimalSyncer) insertIntoMap(cfg, syncers, openrtb_ext.BidderNoBid, nobid.NewNoBidSyncer) insertIntoMap(cfg, syncers, openrtb_ext.BidderOneTag, onetag.NewSyncer) + insertIntoMap(cfg, syncers, openrtb_ext.BidderOutbrain, outbrain.NewOutbrainSyncer) insertIntoMap(cfg, syncers, openrtb_ext.BidderOpenx, openx.NewOpenxSyncer) insertIntoMap(cfg, syncers, openrtb_ext.BidderPubmatic, pubmatic.NewPubmaticSyncer) insertIntoMap(cfg, syncers, openrtb_ext.BidderPulsepoint, pulsepoint.NewPulsepointSyncer) @@ -181,7 +182,6 @@ func NewSyncerMap(cfg *config.Configuration) map[openrtb_ext.BidderName]usersync insertIntoMap(cfg, syncers, openrtb_ext.BidderYieldlab, yieldlab.NewYieldlabSyncer) insertIntoMap(cfg, syncers, openrtb_ext.BidderYieldmo, yieldmo.NewYieldmoSyncer) insertIntoMap(cfg, syncers, openrtb_ext.BidderYieldone, yieldone.NewYieldoneSyncer) - insertIntoMap(cfg, syncers, openrtb_ext.BidderZemanta, zemanta.NewZemantaSyncer) insertIntoMap(cfg, syncers, openrtb_ext.BidderZeroClickFraud, zeroclickfraud.NewZeroClickFraudSyncer) insertIntoMap(cfg, syncers, openrtb_ext.BidderBetween, between.NewBetweenSyncer) diff --git a/usersync/usersyncers/syncer_test.go b/usersync/usersyncers/syncer_test.go index 325fd9b551c..e0dc3dd2896 100755 --- a/usersync/usersyncers/syncer_test.go +++ b/usersync/usersyncers/syncer_test.go @@ -69,6 +69,7 @@ func TestNewSyncerMap(t *testing.T) { string(openrtb_ext.BidderNoBid): syncConfig, string(openrtb_ext.BidderOneTag): syncConfig, string(openrtb_ext.BidderOpenx): syncConfig, + string(openrtb_ext.BidderOutbrain): syncConfig, string(openrtb_ext.BidderPubmatic): syncConfig, string(openrtb_ext.BidderPulsepoint): syncConfig, string(openrtb_ext.BidderRhythmone): syncConfig, @@ -96,7 +97,6 @@ func TestNewSyncerMap(t *testing.T) { string(openrtb_ext.BidderYieldlab): syncConfig, string(openrtb_ext.BidderYieldmo): syncConfig, string(openrtb_ext.BidderYieldone): syncConfig, - string(openrtb_ext.BidderZemanta): syncConfig, string(openrtb_ext.BidderZeroClickFraud): syncConfig, }, }