Skip to content

Commit 5a0251a

Browse files
authored
Hoist GVL ID To Bidder Info (#1721)
1 parent c15c66c commit 5a0251a

File tree

231 files changed

+206
-259
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

231 files changed

+206
-259
lines changed

adapters/33across/usersync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ import (
88
)
99

1010
func New33AcrossSyncer(temp *template.Template) usersync.Usersyncer {
11-
return adapters.NewSyncer("33across", 58, temp, adapters.SyncTypeIframe)
11+
return adapters.NewSyncer("33across", temp, adapters.SyncTypeIframe)
1212
}

adapters/33across/usersync_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,5 @@ func Test33AcrossSyncer(t *testing.T) {
3030
assert.NoError(t, err)
3131
assert.Equal(t, "https://ic.tynt.com/r/d?m=xch&rt=html&gdpr=A&gdpr_consent=B&us_privacy=C&ru=%2Fsetuid%3Fbidder%3D33across%26uid%3D33XUSERID33X&id=zzz000000000002zzz", syncInfo.URL)
3232
assert.Equal(t, "iframe", syncInfo.Type)
33-
assert.EqualValues(t, 58, syncer.GDPRVendorID())
3433
assert.False(t, syncInfo.SupportCORS)
3534
}

adapters/acuityads/usersync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ import (
88
)
99

1010
func NewAcuityAdsSyncer(temp *template.Template) usersync.Usersyncer {
11-
return adapters.NewSyncer("acuityads", 231, temp, adapters.SyncTypeRedirect)
11+
return adapters.NewSyncer("acuityads", temp, adapters.SyncTypeRedirect)
1212
}

adapters/acuityads/usersync_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,5 @@ func TestAcuityAdsSyncer(t *testing.T) {
2929
assert.NoError(t, err)
3030
assert.Equal(t, "https://cs.admanmedia.com/sync/prebid?gdpr=0&gdpr_consent=ANDFJDS&us_privacy=1-YY&redir=http%3A%2F%2Flocalhost%3A8000%2Fsetuid%3Fbidder%3Dacuityads%26uid%3D%5BUID%5D", syncInfo.URL)
3131
assert.Equal(t, "redirect", syncInfo.Type)
32-
assert.EqualValues(t, 231, syncer.GDPRVendorID())
3332
assert.Equal(t, false, syncInfo.SupportCORS)
3433
}

adapters/adform/usersync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ import (
88
)
99

1010
func NewAdformSyncer(temp *template.Template) usersync.Usersyncer {
11-
return adapters.NewSyncer("adform", 50, temp, adapters.SyncTypeRedirect)
11+
return adapters.NewSyncer("adform", temp, adapters.SyncTypeRedirect)
1212
}

adapters/adform/usersync_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,5 @@ func TestAdformSyncer(t *testing.T) {
2727
assert.NoError(t, err)
2828
assert.Equal(t, "//cm.adform.net?return_url=localhost%2Fsetuid%3Fbidder%3Dadform%26gdpr%3D1%26gdpr_consent%3DBONciguONcjGKADACHENAOLS1rAHDAFAAEAASABQAMwAeACEAFw%26uid%3D%24UID", syncInfo.URL)
2929
assert.Equal(t, "redirect", syncInfo.Type)
30-
assert.EqualValues(t, 50, syncer.GDPRVendorID())
3130
assert.Equal(t, false, syncInfo.SupportCORS)
3231
}

adapters/adkernel/usersync.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import (
77
"github.com/prebid/prebid-server/usersync"
88
)
99

10-
const adkernelGDPRVendorID = uint16(14)
11-
1210
func NewAdkernelSyncer(temp *template.Template) usersync.Usersyncer {
13-
return adapters.NewSyncer("adkernel", 14, temp, adapters.SyncTypeRedirect)
11+
return adapters.NewSyncer("adkernel", temp, adapters.SyncTypeRedirect)
1412
}

adapters/adkernel/usersync_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,5 @@ func TestAdkernelAdnSyncer(t *testing.T) {
3030
assert.NoError(t, err)
3131
assert.Equal(t, "https://sync.adkernel.com/user-sync?t=image&gdpr=1&gdpr_consent=BONciguONcjGKADACHENAOLS1rAHDAFAAEAASABQAMwAeACEAFw&us_privacy=1NYN&r=https%3A%2F%2Flocalhost%3A8888%2Fsetuid%3Fbidder%3Dadkernel%26gdpr%3D1%26gdpr_consent%3DBONciguONcjGKADACHENAOLS1rAHDAFAAEAASABQAMwAeACEAFw%26uid%3D%7BUID%7D", syncInfo.URL)
3232
assert.Equal(t, "redirect", syncInfo.Type)
33-
assert.EqualValues(t, adkernelGDPRVendorID, syncer.GDPRVendorID())
3433
assert.Equal(t, false, syncInfo.SupportCORS)
3534
}

adapters/adkernelAdn/usersync.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import (
77
"github.com/prebid/prebid-server/usersync"
88
)
99

10-
const adkernelGDPRVendorID = uint16(14)
11-
1210
func NewAdkernelAdnSyncer(temp *template.Template) usersync.Usersyncer {
13-
return adapters.NewSyncer("adkernelAdn", 14, temp, adapters.SyncTypeRedirect)
11+
return adapters.NewSyncer("adkernelAdn", temp, adapters.SyncTypeRedirect)
1412
}

adapters/adkernelAdn/usersync_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,5 @@ func TestAdkernelAdnSyncer(t *testing.T) {
3030
assert.NoError(t, err)
3131
assert.Equal(t, "https://tag.adkernel.com/syncr?gdpr=1&gdpr_consent=BONciguONcjGKADACHENAOLS1rAHDAFAAEAASABQAMwAeACEAFw&us_privacy=1NYN&r=https%3A%2F%2Flocalhost%3A8888%2Fsetuid%3Fbidder%3DadkernelAdn%26gdpr%3D1%26gdpr_consent%3DBONciguONcjGKADACHENAOLS1rAHDAFAAEAASABQAMwAeACEAFw%26uid%3D%7BUID%7D", syncInfo.URL)
3232
assert.Equal(t, "redirect", syncInfo.Type)
33-
assert.EqualValues(t, adkernelGDPRVendorID, syncer.GDPRVendorID())
3433
assert.Equal(t, false, syncInfo.SupportCORS)
3534
}

adapters/adman/usersync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ import (
99

1010
// NewAdmanSyncer returns adman syncer
1111
func NewAdmanSyncer(temp *template.Template) usersync.Usersyncer {
12-
return adapters.NewSyncer("adman", 149, temp, adapters.SyncTypeRedirect)
12+
return adapters.NewSyncer("adman", temp, adapters.SyncTypeRedirect)
1313
}

adapters/adman/usersync_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,5 @@ func TestAdmanSyncer(t *testing.T) {
3030
assert.NoError(t, err)
3131
assert.Equal(t, "https://sync.admanmedia.com/pbs.gif?gdpr=0&gdpr_consent=ANDFJDS&us_privacy=1-YY&redir=http%3A%2F%2Flocalhost%3A8000%2Fsetuid%3Fbidder%3Dadman%26uid%3D%5BUID%5D", syncInfo.URL)
3232
assert.Equal(t, "redirect", syncInfo.Type)
33-
assert.EqualValues(t, 149, syncer.GDPRVendorID())
3433
assert.Equal(t, false, syncInfo.SupportCORS)
3534
}

adapters/admixer/usersync.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package admixer
22

33
import (
4+
"text/template"
5+
46
"github.com/prebid/prebid-server/adapters"
57
"github.com/prebid/prebid-server/usersync"
6-
"text/template"
78
)
89

910
func NewAdmixerSyncer(temp *template.Template) usersync.Usersyncer {
10-
return adapters.NewSyncer("admixer", 511, temp, adapters.SyncTypeRedirect)
11+
return adapters.NewSyncer("admixer", temp, adapters.SyncTypeRedirect)
1112
}

adapters/admixer/usersync_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ func TestAdmixerSyncer(t *testing.T) {
3030
assert.NoError(t, err)
3131
assert.Equal(t, "http://anyHost/anyPath", syncInfo.URL)
3232
assert.Equal(t, "redirect", syncInfo.Type)
33-
assert.EqualValues(t, 511, syncer.GDPRVendorID())
33+
3434
assert.Equal(t, false, syncInfo.SupportCORS)
3535
}

adapters/adocean/usersync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ import (
88
)
99

1010
func NewAdOceanSyncer(temp *template.Template) usersync.Usersyncer {
11-
return adapters.NewSyncer("adocean", 328, temp, adapters.SyncTypeRedirect)
11+
return adapters.NewSyncer("adocean", temp, adapters.SyncTypeRedirect)
1212
}

adapters/adocean/usersync_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,4 @@ func TestAdOceanSyncer(t *testing.T) {
3030
syncInfo.URL,
3131
)
3232
assert.Equal(t, "redirect", syncInfo.Type)
33-
assert.EqualValues(t, 328, syncer.GDPRVendorID())
3433
}

adapters/adpone/usersync.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ import (
77
"github.com/prebid/prebid-server/usersync"
88
)
99

10-
const adponeGDPRVendorID = uint16(799)
1110
const adponeFamilyName = "adpone"
1211

1312
func NewadponeSyncer(urlTemplate *template.Template) usersync.Usersyncer {
1413
return adapters.NewSyncer(
1514
adponeFamilyName,
16-
adponeGDPRVendorID,
1715
urlTemplate,
1816
adapters.SyncTypeRedirect,
1917
)

adapters/adpone/usersync_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@ func TestAdponeSyncer(t *testing.T) {
2020
assert.NoError(t, err)
2121
assert.Equal(t, "https://usersync.adpone.com/csync?t=p&ep=0&redir=localhost%2Fsetuid%3Fbidder%3Dadtelligent%26gdpr%3D%26gdpr_consent%3D%26uid%3D%7Buid%7D", syncInfo.URL)
2222
assert.Equal(t, "redirect", syncInfo.Type)
23-
assert.EqualValues(t, adponeGDPRVendorID, syncer.GDPRVendorID())
2423
}

adapters/adtarget/usersync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ import (
88
)
99

1010
func NewAdtargetSyncer(temp *template.Template) usersync.Usersyncer {
11-
return adapters.NewSyncer("adtarget", 0, temp, adapters.SyncTypeRedirect)
11+
return adapters.NewSyncer("adtarget", temp, adapters.SyncTypeRedirect)
1212
}

adapters/adtarget/usersync_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,5 @@ func TestAdtargetSyncer(t *testing.T) {
3333
assert.NoError(t, err)
3434
assert.Equal(t, "//sync.console.adtarget.com.tr/csync?t=p&ep=0&gdpr=0&gdpr_consent=123&us_privacy=1-YY&redir=localhost%2Fsetuid%3Fbidder%3Dadtarget%26gdpr%3D0%26gdpr_consent%3D123%26uid%3D%7Buid%7D", syncInfo.URL)
3535
assert.Equal(t, "redirect", syncInfo.Type)
36-
assert.EqualValues(t, 0, syncer.GDPRVendorID())
3736
assert.Equal(t, false, syncInfo.SupportCORS)
3837
}

adapters/adtelligent/usersync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ import (
88
)
99

1010
func NewAdtelligentSyncer(temp *template.Template) usersync.Usersyncer {
11-
return adapters.NewSyncer("adtelligent", 410, temp, adapters.SyncTypeRedirect)
11+
return adapters.NewSyncer("adtelligent", temp, adapters.SyncTypeRedirect)
1212
}

adapters/adtelligent/usersync_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,5 @@ func TestAdtelligentSyncer(t *testing.T) {
2525
assert.NoError(t, err)
2626
assert.Equal(t, "//sync.adtelligent.com/csync?t=p&ep=0&redir=localhost%2Fsetuid%3Fbidder%3Dadtelligent%26gdpr%3D0%26gdpr_consent%3D%26uid%3D%7Buid%7D", syncInfo.URL)
2727
assert.Equal(t, "redirect", syncInfo.Type)
28-
assert.EqualValues(t, 410, syncer.GDPRVendorID())
2928
assert.Equal(t, false, syncInfo.SupportCORS)
3029
}

adapters/advangelists/usersync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ import (
88
)
99

1010
func NewAdvangelistsSyncer(temp *template.Template) usersync.Usersyncer {
11-
return adapters.NewSyncer("advangelists", 0, temp, adapters.SyncTypeIframe)
11+
return adapters.NewSyncer("advangelists", temp, adapters.SyncTypeIframe)
1212
}

adapters/advangelists/usersync_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,5 @@ func TestAdvangelistsSyncer(t *testing.T) {
2626
assert.NoError(t, err)
2727
assert.Equal(t, "https://nep.advangelists.com/xp/user-sync?acctid={aid}&&redirect=localhost/setuid?bidder=advangelists&gdpr=1&gdpr_consent=BOPVK28OVJoTBABABAENBs-AAAAhuAKAANAAoACwAGgAPAAxAB0AHgAQAAiABOADkA&uid=$UID", syncInfo.URL)
2828
assert.Equal(t, "iframe", syncInfo.Type)
29-
assert.EqualValues(t, 0, syncer.GDPRVendorID())
3029
assert.Equal(t, false, syncInfo.SupportCORS)
3130
}

adapters/adyoulike/usersync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ import (
88
)
99

1010
func NewAdyoulikeSyncer(urlTemplate *template.Template) usersync.Usersyncer {
11-
return adapters.NewSyncer("adyoulike", 259, urlTemplate, adapters.SyncTypeRedirect)
11+
return adapters.NewSyncer("adyoulike", urlTemplate, adapters.SyncTypeRedirect)
1212
}

adapters/adyoulike/usersync_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,5 @@ func TestAdyoulikeSyncer(t *testing.T) {
3131
assert.NoError(t, err)
3232
assert.Equal(t, "//visitor.omnitagjs.com/visitor/bsync?uid=19340f4f097d16f41f34fc0274981ca4&name=PrebidServer&gdpr_consent_string=BONciguONcjGKADACHENAOLS1rAHDAFAAEAASABQAMwAeACEAFw&gdpr=1&us_privacy=1-YY", syncInfo.URL)
3333
assert.Equal(t, "redirect", syncInfo.Type)
34-
assert.EqualValues(t, 259, syncer.GDPRVendorID())
3534
assert.Equal(t, false, syncInfo.SupportCORS)
3635
}

adapters/aja/usersync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ import (
88
)
99

1010
func NewAJASyncer(temp *template.Template) usersync.Usersyncer {
11-
return adapters.NewSyncer("aja", 0, temp, adapters.SyncTypeRedirect)
11+
return adapters.NewSyncer("aja", temp, adapters.SyncTypeRedirect)
1212
}

adapters/aja/usersync_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,5 @@ func TestAJASyncer(t *testing.T) {
3131
assert.NoError(t, err)
3232
assert.Equal(t, "https://ad.as.amanad.adtdp.com/v1/sync/ssp?ssp=4&gdpr=1&us_privacy=C&redir=localhost/setuid?bidder=aja&gdpr=1&gdpr_consent=BOPVK28OVJoTBABABAENBs-AAAAhuAKAANAAoACwAGgAPAAxAB0AHgAQAAiABOADkA&uid=%s", syncInfo.URL)
3333
assert.Equal(t, "redirect", syncInfo.Type)
34-
assert.EqualValues(t, 0, syncer.GDPRVendorID())
3534
assert.Equal(t, false, syncInfo.SupportCORS)
3635
}

adapters/amx/usersync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ import (
99

1010
// NewAMXSyncer produces an AMX RTB usersyncer
1111
func NewAMXSyncer(temp *template.Template) usersync.Usersyncer {
12-
return adapters.NewSyncer("amx", 737, temp, adapters.SyncTypeRedirect)
12+
return adapters.NewSyncer("amx", temp, adapters.SyncTypeRedirect)
1313
}

adapters/amx/usersync_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,5 @@ func TestAMXSyncer(t *testing.T) {
1818
assert.NoError(t, err)
1919
assert.Equal(t, "http://pbs.amxrtb.com/cchain/0?gdpr=&gdpr_consent=&cb=localhost%2Fsetuid%3Fbidder%3Damx%26uid%3D", syncInfo.URL)
2020
assert.Equal(t, "redirect", syncInfo.Type)
21-
assert.EqualValues(t, 737, syncer.GDPRVendorID())
2221
assert.Equal(t, false, syncInfo.SupportCORS)
2322
}

adapters/appnexus/usersync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ import (
88
)
99

1010
func NewAppnexusSyncer(temp *template.Template) usersync.Usersyncer {
11-
return adapters.NewSyncer("adnxs", 32, temp, adapters.SyncTypeRedirect)
11+
return adapters.NewSyncer("adnxs", temp, adapters.SyncTypeRedirect)
1212
}

adapters/appnexus/usersync_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,5 @@ func TestAppNexusSyncer(t *testing.T) {
2020
assert.NoError(t, err)
2121
assert.Equal(t, "//ib.adnxs.com/getuid?https%3A%2F%2Fprebid.adnxs.com%2Fpbs%2Fv1%2Fsetuid%3Fbidder%3Dadnxs%26gdpr%3D%26gdpr_consent%3D%26uid%3D%24UID", syncInfo.URL)
2222
assert.Equal(t, "redirect", syncInfo.Type)
23-
assert.EqualValues(t, 32, syncer.GDPRVendorID())
2423
assert.Equal(t, false, syncInfo.SupportCORS)
2524
}

adapters/audienceNetwork/usersync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ import (
88
)
99

1010
func NewFacebookSyncer(temp *template.Template) usersync.Usersyncer {
11-
return adapters.NewSyncer("audienceNetwork", 0, temp, adapters.SyncTypeRedirect)
11+
return adapters.NewSyncer("audienceNetwork", temp, adapters.SyncTypeRedirect)
1212
}

adapters/audienceNetwork/usersync_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,5 @@ func TestFacebookSyncer(t *testing.T) {
2020
assert.NoError(t, err)
2121
assert.Equal(t, "https://www.facebook.com/audiencenetwork/idsync/?partner=partnerId&callback=localhost%2Fsetuid%3Fbidder%3DaudienceNetwork%26gdpr%3D%26gdpr_consent%3D%26uid%3D%24UID", syncInfo.URL)
2222
assert.Equal(t, "redirect", syncInfo.Type)
23-
assert.EqualValues(t, 0, syncer.GDPRVendorID())
2423
assert.Equal(t, false, syncInfo.SupportCORS)
2524
}

adapters/avocet/usersync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ import (
88
)
99

1010
func NewAvocetSyncer(temp *template.Template) usersync.Usersyncer {
11-
return adapters.NewSyncer("avocet", 63, temp, adapters.SyncTypeRedirect)
11+
return adapters.NewSyncer("avocet", temp, adapters.SyncTypeRedirect)
1212
}

adapters/avocet/usersync_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,5 @@ func TestAvocetSyncer(t *testing.T) {
3030
assert.NoError(t, err)
3131
assert.Equal(t, "https://ads.avct.cloud/getuid?&gdpr=1&gdpr_consent=ConsentString&us_privacy=PrivacyString&url=%2Fsetuid%3Fbidder%3Davocet%26gdpr%3D1%26gdpr_consent%3DConsentString%26uid%3D%7B%7BUUID%7D%7D", syncInfo.URL)
3232
assert.Equal(t, "redirect", syncInfo.Type)
33-
assert.EqualValues(t, 63, syncer.GDPRVendorID())
3433
assert.Equal(t, false, syncInfo.SupportCORS)
3534
}

adapters/beachfront/usersync.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@ import (
77
"github.com/prebid/prebid-server/usersync"
88
)
99

10-
var VENDOR_ID uint16 = 335
11-
1210
func NewBeachfrontSyncer(temp *template.Template) usersync.Usersyncer {
1311
return adapters.NewSyncer(
1412
"beachfront",
15-
VENDOR_ID,
1613
temp,
1714
adapters.SyncTypeIframe)
1815
}

adapters/beachfront/usersync_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,5 @@ func TestBeachfrontSyncer(t *testing.T) {
3030
assert.NoError(t, err)
3131
assert.Equal(t, "https://sync.bfmio.com/sync_s2s?gdpr=A&us_privacy=C&url=https%3A%2F%2Flocalhost%3A8888%2Fsetuid%3Fbidder%3Dbeachfront%26gdpr%3DA%26gdpr_consent%3DB%26uid%3D%5Bio_cid%5D", syncInfo.URL)
3232
assert.Equal(t, "iframe", syncInfo.Type)
33-
assert.EqualValues(t, uint16(335), syncer.GDPRVendorID())
3433
assert.Equal(t, false, syncInfo.SupportCORS)
3534
}

adapters/beintoo/usersync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ import (
88
)
99

1010
func NewBeintooSyncer(temp *template.Template) usersync.Usersyncer {
11-
return adapters.NewSyncer("Beintoo", 618, temp, adapters.SyncTypeIframe)
11+
return adapters.NewSyncer("Beintoo", temp, adapters.SyncTypeIframe)
1212
}

adapters/beintoo/usersync_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,5 @@ func TestBeintooSyncer(t *testing.T) {
3030
assert.NoError(t, err)
3131
assert.Equal(t, "https://ib.beintoo.com/um?ssp=pbs&gdpr=1&gdpr_consent=BOPVK28OVJoTBABABAENBs-AAAAhuAKAANAAoACwAGgAPAAxAB0AHgAQAAiABOADkA&us_privacy=1NYN&redirect=localhost%2Fsetuid%3Fbidder%3Dbeintoo%26uid%3D%24UID", syncInfo.URL)
3232
assert.Equal(t, "iframe", syncInfo.Type)
33-
assert.EqualValues(t, 618, syncer.GDPRVendorID())
3433
assert.Equal(t, false, syncInfo.SupportCORS)
3534
}

adapters/between/usersync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ import (
99

1010
// NewBetweenSyncer returns "between" syncer
1111
func NewBetweenSyncer(template *template.Template) usersync.Usersyncer {
12-
return adapters.NewSyncer("between", 724, template, adapters.SyncTypeRedirect)
12+
return adapters.NewSyncer("between", template, adapters.SyncTypeRedirect)
1313
}

adapters/between/usersync_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package between
22

33
import (
4-
"github.com/prebid/prebid-server/privacy"
5-
"github.com/stretchr/testify/assert"
64
"testing"
75
"text/template"
6+
7+
"github.com/prebid/prebid-server/privacy"
8+
"github.com/stretchr/testify/assert"
89
)
910

1011
func TestNewBetweenSyncerSyncer(t *testing.T) {
@@ -19,6 +20,5 @@ func TestNewBetweenSyncerSyncer(t *testing.T) {
1920
assert.NoError(t, err)
2021
assert.Equal(t, "https://ads.betweendigital.com/match?bidder_id=pbs&gdpr=&gdpr_consent=&us_privacy=&callback_url=localhost:8080%2Fsetuid%3Fbidder%3Dbetween%26gdpr%3D0%26gdpr_consent%3D%26uid%3D%24%7BUSER_ID%7D", syncInfo.URL)
2122
assert.Equal(t, "redirect", syncInfo.Type)
22-
assert.EqualValues(t, 724, syncer.GDPRVendorID())
2323
assert.Equal(t, false, syncInfo.SupportCORS)
2424
}

adapters/brightroll/usersync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ import (
88
)
99

1010
func NewBrightrollSyncer(temp *template.Template) usersync.Usersyncer {
11-
return adapters.NewSyncer("brightroll", 25, temp, adapters.SyncTypeRedirect)
11+
return adapters.NewSyncer("brightroll", temp, adapters.SyncTypeRedirect)
1212
}

adapters/brightroll/usersync_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,5 @@ func TestBrightrollSyncer(t *testing.T) {
2020
assert.NoError(t, err)
2121
assert.Equal(t, "http://test-bh.ybp.yahoo.com/sync/appnexuspbs?gdpr=&euconsent=&us_privacy=&url=localhost%2Fsetuid%3Fbidder%3Dbrightroll%26gdpr%3D%26gdpr_consent%3D%26uid%3D%24%7BUID%7D", syncInfo.URL)
2222
assert.Equal(t, "redirect", syncInfo.Type)
23-
assert.EqualValues(t, 25, syncer.GDPRVendorID())
2423
assert.Equal(t, false, syncInfo.SupportCORS)
2524
}

adapters/colossus/usersync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ import (
99

1010
// NewColossusSyncer returns colossus syncer
1111
func NewColossusSyncer(temp *template.Template) usersync.Usersyncer {
12-
return adapters.NewSyncer("colossus", 0, temp, adapters.SyncTypeRedirect)
12+
return adapters.NewSyncer("colossus", temp, adapters.SyncTypeRedirect)
1313
}

adapters/colossus/usersync_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,5 @@ func TestColossusSyncer(t *testing.T) {
3030
assert.NoError(t, err)
3131
assert.Equal(t, "https://sync.colossusssp.com/pbs.gif?gdpr=0&gdpr_consent=A&us_privacy=1-YY&redir=http%3A%2F%2Flocalhost%3A8000%2Fsetuid%3Fbidder%3Dcolossus%26uid%3D%5BUID%5D", syncInfo.URL)
3232
assert.Equal(t, "redirect", syncInfo.Type)
33-
assert.EqualValues(t, 0, syncer.GDPRVendorID())
3433
assert.Equal(t, false, syncInfo.SupportCORS)
3534
}

adapters/connectad/usersync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ import (
88
)
99

1010
func NewConnectAdSyncer(temp *template.Template) usersync.Usersyncer {
11-
return adapters.NewSyncer("connectad", 138, temp, adapters.SyncTypeIframe)
11+
return adapters.NewSyncer("connectad", temp, adapters.SyncTypeIframe)
1212
}

adapters/connectad/usersync_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,5 @@ func TestConnectAdSyncer(t *testing.T) {
3030
assert.NoError(t, err)
3131
assert.Equal(t, "https://cdn.connectad.io/connectmyusers.php?gdpr=1&consent=fakeconsent&us_privacy=fake&cb=localhost%2Fsetuid%3Fbidder%3Dconnectad%26gdpr%3D1%26gdpr_consent%3Dfakeconsent%26uid%3D%24UID", syncInfo.URL)
3232
assert.Equal(t, "iframe", syncInfo.Type)
33-
assert.EqualValues(t, 138, syncer.GDPRVendorID())
3433
assert.Equal(t, false, syncInfo.SupportCORS)
3534
}

adapters/consumable/usersync.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,9 @@ import (
77
"github.com/prebid/prebid-server/usersync"
88
)
99

10-
var VENDOR_ID uint16 = 591
11-
1210
func NewConsumableSyncer(temp *template.Template) usersync.Usersyncer {
13-
1411
return adapters.NewSyncer(
1512
"consumable",
16-
VENDOR_ID,
1713
temp,
1814
adapters.SyncTypeRedirect)
1915
}

adapters/consumable/usersync_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,5 @@ func TestConsumableSyncer(t *testing.T) {
3030
assert.NoError(t, err)
3131
assert.Equal(t, "//e.serverbid.com/udb/9969/match?gdpr=A&euconsent=B&us_privacy=C&redir=http%3A%2F%2Flocalhost%3A8000%2Fsetuid%3Fbidder%3Dconsumable%26gdpr%3DA%26gdpr_consent%3DB%26uid%3D", u.URL)
3232
assert.Equal(t, "redirect", u.Type)
33-
assert.Equal(t, uint16(591), syncer.GDPRVendorID())
3433
assert.Equal(t, false, u.SupportCORS)
3534
}

0 commit comments

Comments
 (0)