diff --git a/adapters/adform/adformtest/params/race/banner.json b/adapters/adform/adformtest/params/race/banner.json new file mode 100644 index 00000000000..21a9140d7b9 --- /dev/null +++ b/adapters/adform/adformtest/params/race/banner.json @@ -0,0 +1,3 @@ +{ + "mid": "292063" +} diff --git a/adapters/adtelligent/adtelligenttest/params/race/banner.json b/adapters/adtelligent/adtelligenttest/params/race/banner.json new file mode 100644 index 00000000000..1d6658c71ab --- /dev/null +++ b/adapters/adtelligent/adtelligenttest/params/race/banner.json @@ -0,0 +1,3 @@ +{ + "aid": 350975 +} diff --git a/adapters/adtelligent/adtelligenttest/params/race/video.json b/adapters/adtelligent/adtelligenttest/params/race/video.json new file mode 100644 index 00000000000..fe4207ef05c --- /dev/null +++ b/adapters/adtelligent/adtelligenttest/params/race/video.json @@ -0,0 +1,3 @@ +{ + "aid": 331133 +} diff --git a/adapters/audienceNetwork/audienceNetworktest/params/race/banner.json b/adapters/audienceNetwork/audienceNetworktest/params/race/banner.json new file mode 100644 index 00000000000..6b8bd390da7 --- /dev/null +++ b/adapters/audienceNetwork/audienceNetworktest/params/race/banner.json @@ -0,0 +1,3 @@ +{ + "placementId": "555555555555555_555555555555555" +} diff --git a/adapters/conversant/conversanttest/params/race/banner.json b/adapters/conversant/conversanttest/params/race/banner.json new file mode 100644 index 00000000000..0f2e61d99b7 --- /dev/null +++ b/adapters/conversant/conversanttest/params/race/banner.json @@ -0,0 +1,3 @@ +{ + "site_id": "108060" +} diff --git a/adapters/conversant/conversanttest/params/race/video.json b/adapters/conversant/conversanttest/params/race/video.json new file mode 100644 index 00000000000..5695507225f --- /dev/null +++ b/adapters/conversant/conversanttest/params/race/video.json @@ -0,0 +1,7 @@ +{ + "site_id": "88563", + "api": [2], + "protocols": [1, 2], + "mimes": ["video/mp4"], + "maxduration": 5000 +} diff --git a/adapters/indexExchange/indexExchangetest/params/race/banner.json b/adapters/indexExchange/indexExchangetest/params/race/banner.json new file mode 100644 index 00000000000..e90050ef4a9 --- /dev/null +++ b/adapters/indexExchange/indexExchangetest/params/race/banner.json @@ -0,0 +1,3 @@ +{ + "siteId": 500 +} diff --git a/adapters/indexExchange/indexExchangetest/params/race/video.json b/adapters/indexExchange/indexExchangetest/params/race/video.json new file mode 100644 index 00000000000..e90050ef4a9 --- /dev/null +++ b/adapters/indexExchange/indexExchangetest/params/race/video.json @@ -0,0 +1,3 @@ +{ + "siteId": 500 +} diff --git a/adapters/lifestreet/lifestreettest/params/race/banner.json b/adapters/lifestreet/lifestreettest/params/race/banner.json new file mode 100644 index 00000000000..c746cc15630 --- /dev/null +++ b/adapters/lifestreet/lifestreettest/params/race/banner.json @@ -0,0 +1,3 @@ +{ + "slot_tag": "slot166704" +} diff --git a/adapters/lifestreet/lifestreettest/params/race/video.json b/adapters/lifestreet/lifestreettest/params/race/video.json new file mode 100644 index 00000000000..7103cf63631 --- /dev/null +++ b/adapters/lifestreet/lifestreettest/params/race/video.json @@ -0,0 +1,3 @@ +{ + "slot_tag": "slot1227631" +} diff --git a/adapters/pubmatic/pubmatictest/params/race/banner.json b/adapters/pubmatic/pubmatictest/params/race/banner.json new file mode 100644 index 00000000000..77cdc66fbd3 --- /dev/null +++ b/adapters/pubmatic/pubmatictest/params/race/banner.json @@ -0,0 +1,4 @@ +{ + "publisherId": "156209", + "adSlot": "pubmatic_test2@300x250" +} diff --git a/adapters/pubmatic/pubmatictest/params/race/video.json b/adapters/pubmatic/pubmatictest/params/race/video.json new file mode 100644 index 00000000000..77cdc66fbd3 --- /dev/null +++ b/adapters/pubmatic/pubmatictest/params/race/video.json @@ -0,0 +1,4 @@ +{ + "publisherId": "156209", + "adSlot": "pubmatic_test2@300x250" +} diff --git a/adapters/pulsepoint/pulsepointtest/params/race/banner.json b/adapters/pulsepoint/pulsepointtest/params/race/banner.json new file mode 100644 index 00000000000..1f2e34df47c --- /dev/null +++ b/adapters/pulsepoint/pulsepointtest/params/race/banner.json @@ -0,0 +1,5 @@ +{ + "cf": "300X250", + "cp": 512379, + "ct": 486653 +} diff --git a/adapters/rubicon/rubicon.go b/adapters/rubicon/rubicon.go index 58e743d541f..a837f4cdd45 100644 --- a/adapters/rubicon/rubicon.go +++ b/adapters/rubicon/rubicon.go @@ -609,8 +609,10 @@ func (a *RubiconAdapter) MakeRequests(request *openrtb.BidRequest) ([]*adapters. } if thisImp.Video != nil { + videoCopy := *thisImp.Video videoExt := rubiconVideoExt{Skip: rubiconExt.Video.Skip, SkipDelay: rubiconExt.Video.SkipDelay, RP: rubiconVideoExtRP{SizeID: rubiconExt.Video.VideoSizeID}} - thisImp.Video.Ext, err = json.Marshal(&videoExt) + videoCopy.Ext, err = json.Marshal(&videoExt) + thisImp.Video = &videoCopy } else { primarySizeID, altSizeIDs, err := parseRubiconSizes(thisImp.Banner.Format) if err != nil { diff --git a/adapters/rubicon/rubicontest/params/race/video.json b/adapters/rubicon/rubicontest/params/race/video.json new file mode 100644 index 00000000000..9a698379b23 --- /dev/null +++ b/adapters/rubicon/rubicontest/params/race/video.json @@ -0,0 +1,5 @@ +{ + "accountId": 1001, + "siteId": 113932, + "zoneId": 535510 +} diff --git a/adapters/sovrn/sovrntest/params/banner.json b/adapters/sovrn/sovrntest/params/banner.json new file mode 100644 index 00000000000..c921b82b3b8 --- /dev/null +++ b/adapters/sovrn/sovrntest/params/banner.json @@ -0,0 +1,3 @@ +{ + "tagId": "403370" +} diff --git a/exchange/exchange_test.go b/exchange/exchange_test.go index 3717d212afc..a335f3aae13 100644 --- a/exchange/exchange_test.go +++ b/exchange/exchange_test.go @@ -90,6 +90,24 @@ func newRaceCheckingRequest(t *testing.T) *openrtb.BidRequest { ID: "some-publisher-id", }, }, + Device: &openrtb.Device{ + UA: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36", + IFA: "ifa", + IP: "132.173.230.74", + DNT: 1, + Language: "EN", + }, + Source: &openrtb.Source{ + TID: "61018dc9-fa61-4c41-b7dc-f90b9ae80e87", + }, + User: &openrtb.User{ + ID: "our-id", + BuyerUID: "their-id", + Ext: openrtb.RawJSON(`{"consent":"BONciguONcjGKADACHENAOLS1rAHDAFAAEAASABQAMwAeACEAFw","digitrust":{"id":"digi-id","keyv":1,"pref":1}}`), + }, + Regs: &openrtb.Regs{ + Ext: openrtb.RawJSON(`{"gdpr":1}`), + }, Imp: []openrtb.Imp{{ ID: "some-imp-id", Banner: &openrtb.Banner{