Skip to content

Commit

Permalink
rebase - UOE-5250: prebid-server upgrade to Prebid 0.116.0 (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
pm-nilesh-chate committed Jan 12, 2022
1 parent 9f1a9ec commit 9453dcb
Show file tree
Hide file tree
Showing 74 changed files with 238 additions and 102 deletions.
2 changes: 1 addition & 1 deletion adapters/adgeneration/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/prebid/prebid-server/openrtb_ext"
"github.com/PubMatic-OpenWrap/prebid-server/openrtb_ext"
)

func TestValidParams(t *testing.T) {
Expand Down
5 changes: 5 additions & 0 deletions adapters/adhese/adhese.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ import (
"strings"
"text/template"

"github.com/PubMatic-OpenWrap/openrtb"
"github.com/PubMatic-OpenWrap/prebid-server/adapters"
"github.com/PubMatic-OpenWrap/prebid-server/errortypes"
"github.com/PubMatic-OpenWrap/prebid-server/macros"
"github.com/PubMatic-OpenWrap/prebid-server/openrtb_ext"
"github.com/golang/glog"
"github.com/mxmCherry/openrtb/v15/openrtb2"
"github.com/prebid/prebid-server/adapters"
Expand Down
2 changes: 1 addition & 1 deletion adapters/adhese/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"testing"

"github.com/prebid/prebid-server/openrtb_ext"
"github.com/PubMatic-OpenWrap/prebid-server/openrtb_ext"
)

func TestValidParams(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion adapters/admixer/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package admixer

import (
"encoding/json"
"github.com/prebid/prebid-server/openrtb_ext"
"github.com/PubMatic-OpenWrap/prebid-server/openrtb_ext"
"testing"
)

Expand Down
2 changes: 1 addition & 1 deletion adapters/adocean/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/prebid/prebid-server/openrtb_ext"
"github.com/PubMatic-OpenWrap/prebid-server/openrtb_ext"
)

func TestValidParams(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions adapters/adocean/usersync.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package adocean
import (
"text/template"

"github.com/prebid/prebid-server/adapters"
"github.com/prebid/prebid-server/usersync"
"github.com/PubMatic-OpenWrap/prebid-server/adapters"
"github.com/PubMatic-OpenWrap/prebid-server/usersync"
)

func NewAdOceanSyncer(temp *template.Template) usersync.Usersyncer {
Expand Down
4 changes: 2 additions & 2 deletions adapters/adocean/usersync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"testing"
"text/template"

"github.com/prebid/prebid-server/privacy"
"github.com/prebid/prebid-server/privacy/gdpr"
"github.com/PubMatic-OpenWrap/prebid-server/privacy"
"github.com/PubMatic-OpenWrap/prebid-server/privacy/gdpr"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion adapters/adtarget/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/prebid/prebid-server/openrtb_ext"
"github.com/PubMatic-OpenWrap/prebid-server/openrtb_ext"
)

// This file actually intends to test static/bidder-params/adtarget.json
Expand Down
4 changes: 2 additions & 2 deletions adapters/adtarget/usersync.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package adtarget
import (
"text/template"

"github.com/prebid/prebid-server/adapters"
"github.com/prebid/prebid-server/usersync"
"github.com/PubMatic-OpenWrap/prebid-server/adapters"
"github.com/PubMatic-OpenWrap/prebid-server/usersync"
)

func NewAdtargetSyncer(temp *template.Template) usersync.Usersyncer {
Expand Down
4 changes: 2 additions & 2 deletions adapters/aja/usersync.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package aja
import (
"text/template"

"github.com/prebid/prebid-server/adapters"
"github.com/prebid/prebid-server/usersync"
"github.com/PubMatic-OpenWrap/prebid-server/adapters"
"github.com/PubMatic-OpenWrap/prebid-server/usersync"
)

func NewAJASyncer(temp *template.Template) usersync.Usersyncer {
Expand Down
4 changes: 2 additions & 2 deletions adapters/avocet/usersync.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package avocet
import (
"text/template"

"github.com/prebid/prebid-server/adapters"
"github.com/prebid/prebid-server/usersync"
"github.com/PubMatic-OpenWrap/prebid-server/adapters"
"github.com/PubMatic-OpenWrap/prebid-server/usersync"
)

func NewAvocetSyncer(temp *template.Template) usersync.Usersyncer {
Expand Down
6 changes: 3 additions & 3 deletions adapters/avocet/usersync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"testing"
"text/template"

"github.com/prebid/prebid-server/privacy"
"github.com/prebid/prebid-server/privacy/ccpa"
"github.com/prebid/prebid-server/privacy/gdpr"
"github.com/PubMatic-OpenWrap/prebid-server/privacy"
"github.com/PubMatic-OpenWrap/prebid-server/privacy/ccpa"
"github.com/PubMatic-OpenWrap/prebid-server/privacy/gdpr"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion adapters/beintoo/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/prebid/prebid-server/openrtb_ext"
"github.com/PubMatic-OpenWrap/prebid-server/openrtb_ext"
)

func TestValidParams(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions adapters/beintoo/usersync.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package beintoo
import (
"text/template"

"github.com/prebid/prebid-server/adapters"
"github.com/prebid/prebid-server/usersync"
"github.com/PubMatic-OpenWrap/prebid-server/adapters"
"github.com/PubMatic-OpenWrap/prebid-server/usersync"
)

func NewBeintooSyncer(temp *template.Template) usersync.Usersyncer {
Expand Down
6 changes: 3 additions & 3 deletions adapters/beintoo/usersync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"testing"
"text/template"

"github.com/prebid/prebid-server/privacy"
"github.com/prebid/prebid-server/privacy/ccpa"
"github.com/prebid/prebid-server/privacy/gdpr"
"github.com/PubMatic-OpenWrap/prebid-server/privacy"
"github.com/PubMatic-OpenWrap/prebid-server/privacy/ccpa"
"github.com/PubMatic-OpenWrap/prebid-server/privacy/gdpr"
"github.com/stretchr/testify/assert"
)

Expand Down
1 change: 1 addition & 0 deletions adapters/bidder.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ type TypedBid struct {
BidMeta *openrtb_ext.ExtBidPrebidMeta
BidType openrtb_ext.BidType
BidVideo *openrtb_ext.ExtBidPrebidVideo
BidTargets map[string]string
DealPriority int
}

Expand Down
2 changes: 1 addition & 1 deletion adapters/cpmstar/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/prebid/prebid-server/openrtb_ext"
"github.com/PubMatic-OpenWrap/prebid-server/openrtb_ext"
)

// This file actually intends to test static/bidder-params/cpmstar.json
Expand Down
4 changes: 2 additions & 2 deletions adapters/cpmstar/usersync.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package cpmstar
import (
"text/template"

"github.com/prebid/prebid-server/adapters"
"github.com/prebid/prebid-server/usersync"
"github.com/PubMatic-OpenWrap/prebid-server/adapters"
"github.com/PubMatic-OpenWrap/prebid-server/usersync"
)

//NewCpmstarSyncer :
Expand Down
2 changes: 1 addition & 1 deletion adapters/cpmstar/usersync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"text/template"

"github.com/prebid/prebid-server/privacy"
"github.com/PubMatic-OpenWrap/prebid-server/privacy"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions adapters/dmx/usersync.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package dmx
import (
"text/template"

"github.com/prebid/prebid-server/adapters"
"github.com/prebid/prebid-server/usersync"
"github.com/PubMatic-OpenWrap/prebid-server/adapters"
"github.com/PubMatic-OpenWrap/prebid-server/usersync"
)

func NewDmxSyncer(temp *template.Template) usersync.Usersyncer {
Expand Down
2 changes: 1 addition & 1 deletion adapters/kidoz/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/prebid/prebid-server/openrtb_ext"
"github.com/PubMatic-OpenWrap/prebid-server/openrtb_ext"
)

func TestValidParams(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion adapters/lunamedia/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package lunamedia

import (
"encoding/json"
"github.com/prebid/prebid-server/openrtb_ext"
"github.com/PubMatic-OpenWrap/prebid-server/openrtb_ext"
"testing"
)

Expand Down
4 changes: 2 additions & 2 deletions adapters/lunamedia/usersync.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package lunamedia
import (
"text/template"

"github.com/prebid/prebid-server/adapters"
"github.com/prebid/prebid-server/usersync"
"github.com/PubMatic-OpenWrap/prebid-server/adapters"
"github.com/PubMatic-OpenWrap/prebid-server/usersync"
)

func NewLunaMediaSyncer(temp *template.Template) usersync.Usersyncer {
Expand Down
4 changes: 2 additions & 2 deletions adapters/lunamedia/usersync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"testing"
"text/template"

"github.com/prebid/prebid-server/privacy"
"github.com/prebid/prebid-server/privacy/gdpr"
"github.com/PubMatic-OpenWrap/prebid-server/privacy"
"github.com/PubMatic-OpenWrap/prebid-server/privacy/gdpr"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion adapters/mobilefuse/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/prebid/prebid-server/openrtb_ext"
"github.com/PubMatic-OpenWrap/prebid-server/openrtb_ext"
)

func TestValidParams(test *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion adapters/nanointeractive/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/prebid/prebid-server/openrtb_ext"
"github.com/PubMatic-OpenWrap/prebid-server/openrtb_ext"
)

// This file actually intends to test static/bidder-params/nanointeractive.json
Expand Down
4 changes: 2 additions & 2 deletions adapters/nanointeractive/usersync.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package nanointeractive
import (
"text/template"

"github.com/prebid/prebid-server/adapters"
"github.com/prebid/prebid-server/usersync"
"github.com/PubMatic-OpenWrap/prebid-server/adapters"
"github.com/PubMatic-OpenWrap/prebid-server/usersync"
)

func NewNanoInteractiveSyncer(temp *template.Template) usersync.Usersyncer {
Expand Down
2 changes: 1 addition & 1 deletion adapters/ninthdecimal/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package ninthdecimal

import (
"encoding/json"
"github.com/prebid/prebid-server/openrtb_ext"
"github.com/PubMatic-OpenWrap/prebid-server/openrtb_ext"
"testing"
)

Expand Down
4 changes: 2 additions & 2 deletions adapters/ninthdecimal/usersync.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package ninthdecimal
import (
"text/template"

"github.com/prebid/prebid-server/adapters"
"github.com/prebid/prebid-server/usersync"
"github.com/PubMatic-OpenWrap/prebid-server/adapters"
"github.com/PubMatic-OpenWrap/prebid-server/usersync"
)

func NewNinthDecimalSyncer(temp *template.Template) usersync.Usersyncer {
Expand Down
4 changes: 2 additions & 2 deletions adapters/ninthdecimal/usersync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"testing"
"text/template"

"github.com/prebid/prebid-server/privacy"
"github.com/prebid/prebid-server/privacy/gdpr"
"github.com/PubMatic-OpenWrap/prebid-server/privacy"
"github.com/PubMatic-OpenWrap/prebid-server/privacy/gdpr"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion adapters/orbidder/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package orbidder

import (
"encoding/json"
"github.com/prebid/prebid-server/openrtb_ext"
"github.com/PubMatic-OpenWrap/prebid-server/openrtb_ext"
"testing"
)

Expand Down
1 change: 1 addition & 0 deletions adapters/rubicon/rubicon.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"strconv"
"strings"

"github.com/PubMatic-OpenWrap/prebid-server/pbs"
"github.com/golang/glog"
"github.com/mxmCherry/openrtb/v15/openrtb2"
"github.com/prebid/prebid-server/adapters"
Expand Down
4 changes: 2 additions & 2 deletions adapters/smartrtb/usersync.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package smartrtb
import (
"text/template"

"github.com/prebid/prebid-server/adapters"
"github.com/prebid/prebid-server/usersync"
"github.com/PubMatic-OpenWrap/prebid-server/adapters"
"github.com/PubMatic-OpenWrap/prebid-server/usersync"
)

func NewSmartRTBSyncer(temp *template.Template) usersync.Usersyncer {
Expand Down
2 changes: 1 addition & 1 deletion adapters/smartrtb/usersync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"text/template"

"github.com/prebid/prebid-server/privacy"
"github.com/PubMatic-OpenWrap/prebid-server/privacy"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions adapters/spotx/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func TestSpotxParams(t *testing.T) {

func testValidParams(t *testing.T) {

params := []string {
params := []string{
`{"channel_id": "12345", "ad_unit": "instream"}`,
`{"channel_id": "12345", "ad_unit": "instream", "secure": true}`,
`{"channel_id": "12345", "ad_unit": "instream", "secure": true, "ad_volume": 0.4}`,
Expand All @@ -35,7 +35,7 @@ func testValidParams(t *testing.T) {

// TestInvalidParams makes sure that the 33Across schema rejects all the imp.ext fields we don't support.
func testInvalidParams(t *testing.T) {
params := []string {
params := []string{
`{"channel_id": "1234", "ad_unit": "instream", "secure": true, "ad_volume": 0.4, "price_floor": 10, "hide_skin": false}`,
`{"channel_id": "12345", "ad_unit": "outstream1", "secure": true, "ad_volume": 0.4, "price_floor": 10, "hide_skin": false}`,
`{"ad_unit": "instream", "secure": true, "ad_volume": 0.4, "price_floor": 10, "hide_skin": false}`,
Expand Down
2 changes: 1 addition & 1 deletion adapters/spotx/spotx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func TestSpotxMakeBid(t *testing.T) {
request := &openrtb.BidRequest{
ID: "1559039248176",
Imp: []openrtb.Imp{
openrtb.Imp{
{
ID: "28635736ddc2bb",
Video: &openrtb.Video{
MIMEs: []string{"video/3gpp"},
Expand Down
2 changes: 1 addition & 1 deletion adapters/ucfunnel/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package ucfunnel

import (
"encoding/json"
"github.com/prebid/prebid-server/openrtb_ext"
"github.com/PubMatic-OpenWrap/prebid-server/openrtb_ext"
"testing"
)

Expand Down
4 changes: 2 additions & 2 deletions adapters/ucfunnel/usersync.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package ucfunnel
import (
"text/template"

"github.com/prebid/prebid-server/adapters"
"github.com/prebid/prebid-server/usersync"
"github.com/PubMatic-OpenWrap/prebid-server/adapters"
"github.com/PubMatic-OpenWrap/prebid-server/usersync"
)

func NewUcfunnelSyncer(temp *template.Template) usersync.Usersyncer {
Expand Down
Loading

0 comments on commit 9453dcb

Please sign in to comment.