Skip to content

Commit

Permalink
Use format=prebid on adserver requests. (prebid#3846)
Browse files Browse the repository at this point in the history
  • Loading branch information
antosarho authored Aug 13, 2024
1 parent 4d64623 commit 0e9b234
Show file tree
Hide file tree
Showing 21 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion adapters/adnuntius/adnuntius.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func makeEndpointUrl(ortbRequest openrtb2.BidRequest, a *adapter, noCookies bool
}

q.Set("tzo", fmt.Sprint(tzo))
q.Set("format", "json")
q.Set("format", "prebid")

url := endpointUrl + "?" + q.Encode()
return url, nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://whatever.url?format=json&tzo=0",
"uri": "http://whatever.url?format=prebid&tzo=0",
"body": {
"adUnits": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://whatever.url?format=json&tzo=0",
"uri": "http://whatever.url?format=prebid&tzo=0",
"body": {
"adUnits": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://gdpr.url?consentString=CONSENT_STRING&format=json&gdpr=1&tzo=0",
"uri": "http://gdpr.url?consentString=CONSENT_STRING&format=prebid&gdpr=1&tzo=0",
"body": {
"adUnits": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://whatever.url?format=json&tzo=0",
"uri": "http://whatever.url?format=prebid&tzo=0",
"body": {
"adUnits": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://whatever.url?format=json&tzo=0",
"uri": "http://whatever.url?format=prebid&tzo=0",
"body": {
"adUnits": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://whatever.url?format=json&noCookies=true&tzo=0",
"uri": "http://whatever.url?format=prebid&noCookies=true&tzo=0",
"body": {
"adUnits": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://whatever.url?format=json&noCookies=true&tzo=0",
"uri": "http://whatever.url?format=prebid&noCookies=true&tzo=0",
"body": {
"adUnits": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@
}
]
},

"httpCalls": [
{
"expectedRequest": {
"uri": "http://whatever.url?format=json&tzo=0",
"uri": "http://whatever.url?format=prebid&tzo=0",
"body": {
"adUnits": [
{
Expand Down Expand Up @@ -159,6 +159,6 @@
],
"currency": "NOK"
}

]
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://whatever.url?format=json&tzo=0",
"uri": "http://whatever.url?format=prebid&tzo=0",
"body": {
"adUnits": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://whatever.url?format=json&tzo=0",
"uri": "http://whatever.url?format=prebid&tzo=0",
"body": {
"adUnits": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://whatever.url?format=json&tzo=0",
"uri": "http://whatever.url?format=prebid&tzo=0",
"body": {
"adUnits": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://whatever.url?format=json&tzo=0",
"uri": "http://whatever.url?format=prebid&tzo=0",
"body": {
"adUnits": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
}
]
},

"httpCalls": [
{
"expectedRequest": {
"uri": "http://whatever.url?format=json&tzo=0",
"uri": "http://whatever.url?format=prebid&tzo=0",
"body": {
"adUnits": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"Mozilla/5.0 (Linux; Android 8.0; Pixel 2 Build/OPD3.170816.012) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Mobile Safari/537.36"
]
},
"uri": "http://whatever.url?format=json&tzo=0",
"uri": "http://whatever.url?format=prebid&tzo=0",
"body": {
"adUnits": [
{
Expand Down
4 changes: 2 additions & 2 deletions adapters/adnuntius/adnuntiustest/supplemental/site-ext.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://whatever.url?format=json&tzo=0",
"uri": "http://whatever.url?format=prebid&tzo=0",
"body": {
"adUnits": [
{
Expand Down Expand Up @@ -111,4 +111,4 @@
"currency": "NOK"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://whatever.url?format=json&noCookies=true&tzo=0",
"uri": "http://whatever.url?format=prebid&noCookies=true&tzo=0",
"body": {
"adUnits": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://whatever.url?format=json&tzo=0",
"uri": "http://whatever.url?format=prebid&tzo=0",
"body": {
"adUnits": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://whatever.url?format=json&tzo=0",
"uri": "http://whatever.url?format=prebid&tzo=0",
"body": {
"adUnits": [
{
Expand Down
10 changes: 5 additions & 5 deletions adapters/adnuntius/adnuntiustest/supplemental/user-ext.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"user": {
"ext":{
"eids" : [
{
"source": "idProvider",
{
"source": "idProvider",
"uids": [
{ "id": "userId", "atype": 1, "ext": { "stype": "ppuid" } }
]
]
}
]
}
Expand Down Expand Up @@ -39,7 +39,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://whatever.url?format=json&tzo=0",
"uri": "http://whatever.url?format=prebid&tzo=0",
"body": {
"adUnits": [
{
Expand Down Expand Up @@ -110,4 +110,4 @@
"currency": "NOK"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://whatever.url?format=json&tzo=0",
"uri": "http://whatever.url?format=prebid&tzo=0",
"body": {
"adUnits": [
{
Expand Down

0 comments on commit 0e9b234

Please sign in to comment.