Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UOE-6319: Prebid-server version upgrade to 0.157.0 #148

Merged
merged 93 commits into from
Apr 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
67b9c25
Tappx User Syncer + Site Update (#1674)
prebidtappx Feb 11, 2021
56dfc60
Beachfront Additional tests (#1679)
muncha Feb 11, 2021
e93a781
New Adapter: Onetag (#1695)
onetag-dev Feb 11, 2021
7ada266
Pubmatic: Trimming publisher ID before passing (#1685)
sachin-pubmatic Feb 11, 2021
bd61dcd
Fix typos in nobid.json (#1704)
agilfix Feb 16, 2021
42ab0d6
Fix Typo In Adform Bidder Params (#1705)
agilfix Feb 16, 2021
cda3f0f
Don't Load GVL v1 for TCF2 (+ TCF1 Cleanup) (#1693)
SyntaxNode Feb 16, 2021
e87c43d
Typo fix for connectad bidder params (#1706)
agilfix Feb 16, 2021
e75df55
Typo fix for invibes bidder params (#1707)
agilfix Feb 16, 2021
af466fd
Typo fix nanointeractive bidder params (#1708)
agilfix Feb 16, 2021
60622de
Isolate /info/bidders Data Model + Add Uses HTTPS Flag (#1692)
SyntaxNode Feb 18, 2021
30b5b9a
New Adapter: Epom (#1680)
epomrnd Feb 18, 2021
ad943a7
New Adapter: Pangle (#1697)
chshpra Feb 18, 2021
0fd24ef
Fix Merge Conflict (#1714)
SyntaxNode Feb 18, 2021
bc808a4
GumGum: adds pubId and irisid properties/parameters (#1664)
susyt Feb 24, 2021
b74d7c0
Accommodate Apple iOS LMT bug (#1718)
SyntaxNode Feb 25, 2021
fc4bb44
New Adapter: jixie (#1698)
jxdeveloper1 Feb 25, 2021
e0c1ac5
Fix Regs Nil Condition (#1723)
SyntaxNode Feb 25, 2021
f3893c3
Mobfox: Add rout to adexcange (#1702)
mobfxoHB Feb 25, 2021
dc14698
New Adapter: TrustX (#1726)
TheMediaGrid Mar 3, 2021
ee2ec39
New Adapter: UNICORN (#1719)
faithnh Mar 4, 2021
87277e1
Fixes GDPR bug about being overly strict on publisher restrictions (#…
hhhjort Mar 4, 2021
a3cc810
33Across: Updated exchange endpoint (#1738)
curlyblueeagle Mar 5, 2021
c15c66c
New Adapter: Adyoulike (#1700)
guiann Mar 7, 2021
5a0251a
Hoist GVL ID To Bidder Info (#1721)
SyntaxNode Mar 9, 2021
49d84cc
Improve Digital adapter: add support for native ads (#1746)
jbartek25 Mar 11, 2021
849a311
Add Support For SkAdN + Refactor Split Imps (#1741)
SyntaxNode Mar 11, 2021
e53fd87
No Longer Move bid.ext To bid.ext.bidder (#1742)
SyntaxNode Mar 11, 2021
549d4b2
Typo fix: adyoulike bidder param debug description (#1755)
agilfix Mar 16, 2021
5b1a919
Aliases: Better Error Message For Disabled Bidder (#1751)
SyntaxNode Mar 17, 2021
fc87d1d
beachfront: Changes to support real 204 (#1737)
muncha Mar 17, 2021
bdf1e7b
Fix race condition in 33across.go (#1757)
guscarreon Mar 18, 2021
f7df258
Revert "Fix race condition in 33across.go (#1757)" (#1763)
SyntaxNode Mar 18, 2021
eb6c0e6
Replace TravisCI With GitHub Actions (#1754)
SyntaxNode Mar 18, 2021
a04d5e1
Debug warnings (#1724)
VeronikaSolovei9 Mar 18, 2021
c675c18
Rubicon: Support sending segments to XAPI (#1752)
SerhiiNahornyi Mar 19, 2021
ca53bd5
validateNativeContextTypes function test cases (#1743)
guscarreon Mar 22, 2021
7c8148e
Applogy: Fix Shared Memory Overwriting (#1758)
guscarreon Mar 22, 2021
07aabef
Pubmatic: Fix Shared Memory Overwriting (#1759)
guscarreon Mar 22, 2021
2f1a0e0
Beachfront: Fix Shared Memory Overwriting (#1762)
guscarreon Mar 22, 2021
080843b
FPD: Allow imp.ext.data To Passthrough To Adapters (#1765)
SyntaxNode Mar 23, 2021
8760bae
Smaato: Add support for app (#1767)
el-chuck Mar 23, 2021
bea52c6
Update sync types (#1770)
GeneGenie Mar 23, 2021
b9d28e7
33across: Fix Shared Memory Overwriting (#1764)
guscarreon Mar 24, 2021
ef32c8b
Fix race condition in Yeahmobi adapter (#1761)
guscarreon Mar 25, 2021
bcfe9f2
Pubnative: Fix Shared Memory Overwriting (#1760)
guscarreon Mar 25, 2021
6a3a8b8
Add request for registration (#1780)
bretg Mar 25, 2021
192f55b
Update OpenRTB Library (#1733)
SyntaxNode Mar 26, 2021
690fe2d
Tappx changes - Backward compatible change of version (#1777)
prebidtappx Mar 30, 2021
056b7cc
DMX: Enforcing w and h in imp (#1778)
stevealliance Mar 31, 2021
cbc3e84
Remove Authorization Headers From Debug Response (#1779)
SyntaxNode Apr 1, 2021
6fa5771
New Adapter: Bidmachine (#1769)
meeeeeepo Apr 1, 2021
8193e30
New Adapter: Criteo (#1775)
benjaminch Apr 1, 2021
7cf60db
Fix shared memory issue when stripping authorization header from bid …
bsardo Apr 6, 2021
245accf
RTB House: update parameters (#1785)
piwanczak Apr 7, 2021
5708943
Generate seatbid[].bid[].ext.prebid.bidid (#1772)
VeronikaSolovei9 Apr 8, 2021
adb4044
Basic GDPR enforcement for specific publisher-vendors. (#1782)
hhhjort Apr 8, 2021
28de9fd
New Adapter: Zemanta (#1774)
rokostik Apr 8, 2021
aad9798
Zemanta: Rename Adapter To Outbrain (#1797)
Apr 9, 2021
c0a85f7
Update openrtb library to v15 (#1802)
Apr 14, 2021
cc84f02
IX: Set bidVideo when category and duration is available (#1794)
ixjohnny Apr 14, 2021
22191e6
Update IX defaults (#1799)
mlb7687 Apr 14, 2021
bdfbc32
Update Adyoulike endpoint to hit production servers (#1805)
guiann Apr 14, 2021
5bec86b
Openx: use bidfloor if set - prebid.js adapter behavior (#1795)
laurb9 Apr 14, 2021
398e1ca
[ORBIDDER] add gvlVendorID and set bid response currency (#1798)
arneschulz1984 Apr 14, 2021
1628e1a
New Adapter: ADXCG (#1803)
adxcgcom Apr 15, 2021
b3b6099
Update kidoz properties to type string (#1808)
agilfix Apr 15, 2021
51822e1
Update bidmachine properties to type string (#1809)
agilfix Apr 15, 2021
c7b6463
transform native eventtrackers to imptrackers and jstracker (#1811)
Apr 16, 2021
d384e91
TheMediaGrid: Added processing of imp[].ext.data (#1807)
TheMediaGrid Apr 20, 2021
d8fa9d6
Renaming package github.com/PubMatic-OpenWrap/openrtb to github.com/m…
sachin-pubmatic Apr 25, 2021
b40c4a4
Rename package github.com/PubMatic-OpenWrap/prebid-server to github.c…
sachin-pubmatic Apr 26, 2021
b29c645
Merged prebid-0.157.0
sachin-pubmatic Apr 27, 2021
28d9cfa
UOE-6196: OpenWrap S2S: Remove adpod_id from AppNexus adapter
sachin-pubmatic Apr 28, 2021
7d0afbc
Refactored code and fixed indentation
sachin-pubmatic Apr 28, 2021
bff555c
Fixed indentation for json files
sachin-pubmatic Apr 28, 2021
ba43f62
Fixed indentation for json files
sachin-pubmatic Apr 28, 2021
f62cd27
Fixed import in adapters/gumgum/gumgum.go
sachin-pubmatic Apr 28, 2021
af9a43a
Reverted unwanted changes in test json files
sachin-pubmatic Apr 28, 2021
c2ed9d8
Fixed unwanted git merge changes
sachin-pubmatic Apr 28, 2021
1efc3bf
Added missing field SkipDedup in ExtIncludeBrandCategory
sachin-pubmatic Apr 28, 2021
2273d69
Added missing Bidder field in ExtBid type
sachin-pubmatic Apr 28, 2021
b202980
Exposing CookieSyncRequest for header-bidding
sachin-pubmatic Apr 28, 2021
bccd2fa
Temporary path change for static folder
sachin-pubmatic Apr 28, 2021
4a85a11
Fixed static folder paths
sachin-pubmatic Apr 28, 2021
57db5c2
Fixed default value in config for usersync_if_ambiguous
sachin-pubmatic Apr 28, 2021
c1c7f1b
Fixed config after upgrade
sachin-pubmatic Apr 28, 2021
bdb4996
Updated router.go to uncomment defaultRequest validation
sachin-pubmatic Apr 28, 2021
21f070d
Fixed path for accounts.filesystem.directorypath
sachin-pubmatic Apr 28, 2021
01597f2
Fixed diff with OW
sachin-pubmatic Apr 28, 2021
7d1e416
Added DMX default usersync URL
sachin-pubmatic Apr 29, 2021
5f98e43
Merged ci
sachin-pubmatic Apr 29, 2021
d4bba53
Reverted Dmx default usersync url, Will add it in properties file
sachin-pubmatic Apr 29, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
change-template: '* $TITLE (#$NUMBER)'
template: |
## Changes

$CHANGES

## Contributors

$CONTRIBUTORS
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release

on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'

jobs:
release:
name: Create Release
if: github.event.base_ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: Get Version
id: get_version
run: echo ::set-output name=version::${GITHUB_REF/refs\/tags\//}

- name: Create & Publish Release
uses: release-drafter/release-drafter@v5.12.1
with:
name: ${{ steps.get_version.outputs.version }}
tag: ${{ steps.get_version.outputs.version }}
version: ${{ steps.get_version.outputs.version }}
publish: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ vendor
prebid-server
build
debug
__debug_bin

# config files
pbs.*
Expand Down
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test: deps
ifeq "$(adapter)" ""
./validate.sh
else
go test github.com/PubMatic-OpenWrap/prebid-server/adapters/$(adapter) -bench=.
go test github.com/prebid/prebid-server/adapters/$(adapter) -bench=.
endif

# build will ensure all of our tests pass and then build the go binary
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[![Build Status](https://travis-ci.org/prebid/prebid-server.svg?branch=master)](https://travis-ci.org/prebid/prebid-server)
[![Go Report Card](https://goreportcard.com/badge/github.com/PubMatic-OpenWrap/prebid-server?style=flat-square)](https://goreportcard.com/report/github.com/PubMatic-OpenWrap/prebid-server)
[![Build](https://img.shields.io/github/workflow/status/prebid/prebid-server/Validate/master?style=flat-square)](https://github.com/prebid/prebid-server/actions/workflows/validate.yml)
[![Go Report Card](https://goreportcard.com/badge/github.com/prebid/prebid-server?style=flat-square)](https://goreportcard.com/report/github.com/prebid/prebid-server)
![Go Version](https://img.shields.io/github/go-mod/go-version/prebid/prebid-server?style=flat-square)

# Prebid Server

Expand All @@ -16,6 +17,8 @@ For more information, see:
- [Prebid Server Overview](https://docs.prebid.org/prebid-server/overview/prebid-server-overview.html)
- [Current Bidders](http://prebid.org/dev-docs/pbs-bidders.html)

Please consider [registering your Prebid Server](https://docs.prebid.org/prebid-server/hosting/pbs-hosting.html#optional-registration) to get on the mailing list for updates, etc.

## Installation

First install [Go](https://golang.org/doc/install) version 1.14 or newer.
Expand Down
8 changes: 4 additions & 4 deletions account/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"encoding/json"
"fmt"

"github.com/PubMatic-OpenWrap/prebid-server/config"
"github.com/PubMatic-OpenWrap/prebid-server/errortypes"
"github.com/PubMatic-OpenWrap/prebid-server/metrics"
"github.com/PubMatic-OpenWrap/prebid-server/stored_requests"
jsonpatch "github.com/evanphx/json-patch"
"github.com/prebid/prebid-server/config"
"github.com/prebid/prebid-server/errortypes"
"github.com/prebid/prebid-server/metrics"
"github.com/prebid/prebid-server/stored_requests"
)

// GetAccount looks up the config.Account object referenced by the given accountID, with access rules applied
Expand Down
8 changes: 4 additions & 4 deletions account/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"fmt"
"testing"

"github.com/PubMatic-OpenWrap/prebid-server/config"
"github.com/PubMatic-OpenWrap/prebid-server/errortypes"
"github.com/PubMatic-OpenWrap/prebid-server/metrics"
"github.com/PubMatic-OpenWrap/prebid-server/stored_requests"
"github.com/prebid/prebid-server/config"
"github.com/prebid/prebid-server/errortypes"
"github.com/prebid/prebid-server/metrics"
"github.com/prebid/prebid-server/stored_requests"
"github.com/stretchr/testify/assert"
)

Expand Down
32 changes: 16 additions & 16 deletions adapters/33across/33across.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"fmt"
"net/http"

"github.com/PubMatic-OpenWrap/openrtb"
"github.com/PubMatic-OpenWrap/prebid-server/adapters"
"github.com/PubMatic-OpenWrap/prebid-server/config"
"github.com/PubMatic-OpenWrap/prebid-server/errortypes"
"github.com/PubMatic-OpenWrap/prebid-server/openrtb_ext"
"github.com/mxmCherry/openrtb/v15/openrtb2"
"github.com/prebid/prebid-server/adapters"
"github.com/prebid/prebid-server/config"
"github.com/prebid/prebid-server/errortypes"
"github.com/prebid/prebid-server/openrtb_ext"
)

type TtxAdapter struct {
Expand Down Expand Up @@ -51,7 +51,7 @@ type bidTtxExt struct {
}

// MakeRequests create the object for TTX Reqeust.
func (a *TtxAdapter) MakeRequests(request *openrtb.BidRequest, reqInfo *adapters.ExtraRequestInfo) ([]*adapters.RequestData, []error) {
func (a *TtxAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.ExtraRequestInfo) ([]*adapters.RequestData, []error) {
var errs []error
var adapterRequests []*adapters.RequestData

Expand All @@ -77,14 +77,14 @@ func (a *TtxAdapter) MakeRequests(request *openrtb.BidRequest, reqInfo *adapters
return adapterRequests, errs
}

func (a *TtxAdapter) makeRequest(request openrtb.BidRequest, imp openrtb.Imp) (*adapters.RequestData, error) {
func (a *TtxAdapter) makeRequest(request openrtb2.BidRequest, imp openrtb2.Imp) (*adapters.RequestData, error) {
impCopy, err := makeImps(imp)

if err != nil {
return nil, err
}

request.Imp = []openrtb.Imp{*impCopy}
request.Imp = []openrtb2.Imp{*impCopy}

// Last Step
reqJSON, err := json.Marshal(request)
Expand All @@ -103,7 +103,7 @@ func (a *TtxAdapter) makeRequest(request openrtb.BidRequest, imp openrtb.Imp) (*
}, nil
}

func makeImps(imp openrtb.Imp) (*openrtb.Imp, error) {
func makeImps(imp openrtb2.Imp) (*openrtb2.Imp, error) {
if imp.Banner == nil && imp.Video == nil {
return nil, &errortypes.BadInput{
Message: fmt.Sprintf("Imp ID %s must have at least one of [Banner, Video] defined", imp.ID),
Expand Down Expand Up @@ -158,7 +158,7 @@ func makeImps(imp openrtb.Imp) (*openrtb.Imp, error) {
return &imp, nil
}

func makeReqExt(request *openrtb.BidRequest) ([]byte, error) {
func makeReqExt(request *openrtb2.BidRequest) ([]byte, error) {
var reqExt reqExt

if len(request.Ext) > 0 {
Expand All @@ -181,7 +181,7 @@ func makeReqExt(request *openrtb.BidRequest) ([]byte, error) {
}

// MakeBids make the bids for the bid response.
func (a *TtxAdapter) MakeBids(internalRequest *openrtb.BidRequest, externalRequest *adapters.RequestData, response *adapters.ResponseData) (*adapters.BidderResponse, []error) {
func (a *TtxAdapter) MakeBids(internalRequest *openrtb2.BidRequest, externalRequest *adapters.RequestData, response *adapters.ResponseData) (*adapters.BidderResponse, []error) {
if response.StatusCode == http.StatusNoContent {
return nil, nil
}
Expand All @@ -198,7 +198,7 @@ func (a *TtxAdapter) MakeBids(internalRequest *openrtb.BidRequest, externalReque
}}
}

var bidResp openrtb.BidResponse
var bidResp openrtb2.BidResponse

if err := json.Unmarshal(response.Body, &bidResp); err != nil {
return nil, []error{err}
Expand Down Expand Up @@ -227,8 +227,8 @@ func (a *TtxAdapter) MakeBids(internalRequest *openrtb.BidRequest, externalReque

}

func validateVideoParams(video *openrtb.Video, prod string) (*openrtb.Video, error) {
videoCopy := video
func validateVideoParams(video *openrtb2.Video, prod string) (*openrtb2.Video, error) {
videoCopy := *video
if videoCopy.W == 0 ||
videoCopy.H == 0 ||
videoCopy.Protocols == nil ||
Expand All @@ -248,11 +248,11 @@ func validateVideoParams(video *openrtb.Video, prod string) (*openrtb.Video, err
videoCopy.Placement = 1

if videoCopy.StartDelay == nil {
videoCopy.StartDelay = openrtb.StartDelay.Ptr(0)
videoCopy.StartDelay = openrtb2.StartDelay.Ptr(0)
}
}

return videoCopy, nil
return &videoCopy, nil
}

func getBidType(ext bidExt) openrtb_ext.BidType {
Expand Down
6 changes: 3 additions & 3 deletions adapters/33across/33across_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package ttx
import (
"testing"

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

func TestJsonSamples(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion adapters/33across/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/PubMatic-OpenWrap/prebid-server/openrtb_ext"
"github.com/prebid/prebid-server/openrtb_ext"
)

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

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

func New33AcrossSyncer(temp *template.Template) usersync.Usersyncer {
return adapters.NewSyncer("33across", 58, temp, adapters.SyncTypeIframe)
return adapters.NewSyncer("33across", temp, adapters.SyncTypeIframe)
}
7 changes: 3 additions & 4 deletions adapters/33across/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/PubMatic-OpenWrap/prebid-server/privacy"
"github.com/PubMatic-OpenWrap/prebid-server/privacy/ccpa"
"github.com/PubMatic-OpenWrap/prebid-server/privacy/gdpr"
"github.com/prebid/prebid-server/privacy"
"github.com/prebid/prebid-server/privacy/ccpa"
"github.com/prebid/prebid-server/privacy/gdpr"
"github.com/stretchr/testify/assert"
)

Expand All @@ -30,6 +30,5 @@ func Test33AcrossSyncer(t *testing.T) {
assert.NoError(t, err)
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)
assert.Equal(t, "iframe", syncInfo.Type)
assert.EqualValues(t, 58, syncer.GDPRVendorID())
assert.False(t, syncInfo.SupportCORS)
}
24 changes: 12 additions & 12 deletions adapters/acuityads/acuityads.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import (
"net/http"
"text/template"

"github.com/PubMatic-OpenWrap/openrtb"
"github.com/PubMatic-OpenWrap/prebid-server/adapters"
"github.com/PubMatic-OpenWrap/prebid-server/config"
"github.com/PubMatic-OpenWrap/prebid-server/errortypes"
"github.com/PubMatic-OpenWrap/prebid-server/macros"
"github.com/PubMatic-OpenWrap/prebid-server/openrtb_ext"
"github.com/mxmCherry/openrtb/v15/openrtb2"
"github.com/prebid/prebid-server/adapters"
"github.com/prebid/prebid-server/config"
"github.com/prebid/prebid-server/errortypes"
"github.com/prebid/prebid-server/macros"
"github.com/prebid/prebid-server/openrtb_ext"
)

type AcuityAdsAdapter struct {
Expand All @@ -31,7 +31,7 @@ func Builder(bidderName openrtb_ext.BidderName, config config.Adapter) (adapters
return bidder, nil
}

func getHeaders(request *openrtb.BidRequest) http.Header {
func getHeaders(request *openrtb2.BidRequest) http.Header {
headers := http.Header{}
headers.Add("Content-Type", "application/json;charset=utf-8")
headers.Add("Accept", "application/json")
Expand All @@ -55,7 +55,7 @@ func getHeaders(request *openrtb.BidRequest) http.Header {
}

func (a *AcuityAdsAdapter) MakeRequests(
openRTBRequest *openrtb.BidRequest,
openRTBRequest *openrtb2.BidRequest,
reqInfo *adapters.ExtraRequestInfo,
) (
requestsToBidder []*adapters.RequestData,
Expand Down Expand Up @@ -87,7 +87,7 @@ func (a *AcuityAdsAdapter) MakeRequests(
}}, nil
}

func (a *AcuityAdsAdapter) getImpressionExt(imp *openrtb.Imp) (*openrtb_ext.ExtAcuityAds, error) {
func (a *AcuityAdsAdapter) getImpressionExt(imp *openrtb2.Imp) (*openrtb_ext.ExtAcuityAds, error) {
var bidderExt adapters.ExtImpBidder
if err := json.Unmarshal(imp.Ext, &bidderExt); err != nil {
return nil, &errortypes.BadInput{
Expand Down Expand Up @@ -136,7 +136,7 @@ func (a *AcuityAdsAdapter) checkResponseStatusCodes(response *adapters.ResponseD
}

func (a *AcuityAdsAdapter) MakeBids(
openRTBRequest *openrtb.BidRequest,
openRTBRequest *openrtb2.BidRequest,
requestToBidder *adapters.RequestData,
bidderRawResponse *adapters.ResponseData,
) (
Expand All @@ -153,7 +153,7 @@ func (a *AcuityAdsAdapter) MakeBids(
}

responseBody := bidderRawResponse.Body
var bidResp openrtb.BidResponse
var bidResp openrtb2.BidResponse
if err := json.Unmarshal(responseBody, &bidResp); err != nil {
return nil, []error{&errortypes.BadServerResponse{
Message: "Bad Server Response",
Expand All @@ -178,7 +178,7 @@ func (a *AcuityAdsAdapter) MakeBids(
return bidResponse, nil
}

func getMediaTypeForImp(impId string, imps []openrtb.Imp) openrtb_ext.BidType {
func getMediaTypeForImp(impId string, imps []openrtb2.Imp) openrtb_ext.BidType {
mediaType := openrtb_ext.BidTypeBanner
for _, imp := range imps {
if imp.ID == impId {
Expand Down
6 changes: 3 additions & 3 deletions adapters/acuityads/acuityads_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package acuityads
import (
"testing"

"github.com/PubMatic-OpenWrap/prebid-server/adapters/adapterstest"
"github.com/PubMatic-OpenWrap/prebid-server/config"
"github.com/PubMatic-OpenWrap/prebid-server/openrtb_ext"
"github.com/prebid/prebid-server/adapters/adapterstest"
"github.com/prebid/prebid-server/config"
"github.com/prebid/prebid-server/openrtb_ext"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion adapters/acuityads/acuityadstest/exemplary/banner-app.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,4 @@
]
}
]
}
}
1 change: 0 additions & 1 deletion adapters/acuityads/acuityadstest/exemplary/native-app.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,3 @@
}
]
}

Loading