-
Notifications
You must be signed in to change notification settings - Fork 749
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eplanning: new prioritization metric for adunit sizes (#1648)
* Eplanning: new prioritization metric for adunit sizes
- Loading branch information
chino117
authored
Jan 26, 2021
1 parent
56672f8
commit d61f2d5
Showing
6 changed files
with
459 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81 changes: 81 additions & 0 deletions
81
adapters/eplanning/eplanningtest/supplemental/banner-2-sizes-in-priority-list-mobile.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"device": { | ||
"devicetype": 4 | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
{ | ||
"w": 1, | ||
"h": 1 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"ci": "12345" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
|
||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"uri": "http://rtb.e-planning.net/pbs/1/12345/1/FILE/ROS?e=300x250%3A300x250&ncb=1&ur=FILE", | ||
"body": {} | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"sI": { "k": "12345" }, | ||
"sec": "ROS", | ||
"sp": [ | ||
{ | ||
"k": "300x250", | ||
"a": [{ | ||
"i": "123456789abcdef", | ||
"pr": "0.5", | ||
"adm": "<div>test</div>", | ||
"crid": "abcdef123456789", | ||
"id": "adid12345", | ||
"w": 300, | ||
"h": 250 | ||
}] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
|
||
"expectedBidResponses": [ | ||
{ | ||
"currency": "USD", | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "123456789abcdef", | ||
"impid": "test-imp-id", | ||
"price": 0.5, | ||
"adm": "<div>test</div>", | ||
"adid": "adid12345", | ||
"crid": "abcdef123456789", | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
"type": "banner" | ||
} | ||
] | ||
} | ||
] | ||
} |
85 changes: 85 additions & 0 deletions
85
adapters/eplanning/eplanningtest/supplemental/banner-3-sizes-in-priority-list-desktop.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"device": { | ||
"devicetype": 2 | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 970, | ||
"h": 250 | ||
}, | ||
{ | ||
"w": 300, | ||
"h": 600 | ||
}, | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"ci": "12345" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
|
||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"uri": "http://rtb.e-planning.net/pbs/1/12345/1/FILE/ROS?e=300x250%3A300x250&ncb=1&ur=FILE", | ||
"body": {} | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"sI": { "k": "12345" }, | ||
"sec": "ROS", | ||
"sp": [ | ||
{ | ||
"k": "300x250", | ||
"a": [{ | ||
"i": "123456789abcdef", | ||
"pr": "0.5", | ||
"adm": "<div>test</div>", | ||
"crid": "abcdef123456789", | ||
"id": "adid12345", | ||
"w": 300, | ||
"h": 250 | ||
}] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
|
||
"expectedBidResponses": [ | ||
{ | ||
"currency": "USD", | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "123456789abcdef", | ||
"impid": "test-imp-id", | ||
"price": 0.5, | ||
"adm": "<div>test</div>", | ||
"adid": "adid12345", | ||
"crid": "abcdef123456789", | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
"type": "banner" | ||
} | ||
] | ||
} | ||
] | ||
} |
85 changes: 85 additions & 0 deletions
85
adapters/eplanning/eplanningtest/supplemental/banner-3-sizes-in-priority-list-mobile.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"device": { | ||
"devicetype": 4 | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 1, | ||
"h": 1 | ||
}, | ||
{ | ||
"w": 300, | ||
"h": 50 | ||
}, | ||
{ | ||
"w": 320, | ||
"h": 50 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"ci": "12345" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
|
||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"uri": "http://rtb.e-planning.net/pbs/1/12345/1/FILE/ROS?e=320x50%3A320x50&ncb=1&ur=FILE", | ||
"body": {} | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"sI": { "k": "12345" }, | ||
"sec": "ROS", | ||
"sp": [ | ||
{ | ||
"k": "320x50", | ||
"a": [{ | ||
"i": "123456789abcdef", | ||
"pr": "0.5", | ||
"adm": "<div>test</div>", | ||
"crid": "abcdef123456789", | ||
"id": "adid12345", | ||
"w": 320, | ||
"h": 50 | ||
}] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
|
||
"expectedBidResponses": [ | ||
{ | ||
"currency": "USD", | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "123456789abcdef", | ||
"impid": "test-imp-id", | ||
"price": 0.5, | ||
"adm": "<div>test</div>", | ||
"adid": "adid12345", | ||
"crid": "abcdef123456789", | ||
"w": 320, | ||
"h": 50 | ||
}, | ||
"type": "banner" | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.