Yieldbot, adapter param configs using the same slot name
Type of issue
- Bug
Description
For adUnits where the same Yieldbot bidder params slot name is used ( slot: <slotName> ), the Yieldbot adapter would add a bid, addBidResponse(adUnitCode, bid).
Yieldbot bids for a single slot and dimension only. Therefore, each Yieldbot bid response slot shall be considered to be fore a single adUnit declaration.
e.g. this kind of config
var adUnits = [
{
code: 'div-gpt-ad-1438287399331-1',
sizes: [[300, 250], [300, 600]],
bids: [
{
bidder: 'yieldbot',
params: {
psn: '1234',
slot: 'test_slot'
}
}
]
},
{
code: 'div-gpt-ad-1438287399331-2',
sizes: [[300, 250]],
bids: [
{
bidder: 'yieldbot',
params: {
psn: '1234',
slot: 'test_slot'
}
}
]
}
]
Steps to reproduce
- Open https://fiddle.jshell.net/ybelljoh/4zbdtrox/show/#enable
- Edit the Fiddle if you wish
- Hit the link "Enable - Yieldbot Test Bids"
- Close the newly focused tab that enables Yieldbot testing mode
- Open devtools; or your preferred browser console so you can see network request/response
- Refresh / re-run the Fiddle
- Observe
5.1 Yieldbot response; filter network requests by "yldbt" and look at the request for init Preview tab
- You'll see two bids
5.2 DFP response; filter network requests by "gamp" and look at the request for ads Preview tab
- You'll see three creatives returned
Note: You will not see the DFP creative rendered. This is NOT a bug, just haven't figured out how to get DFP 1x1 creatives with "Override" set to render in the JSFiddle cross-origin frames.
Expected results
Yieldbot Response
"slots": [{
"slot": "leaderboard",
"cpm": "800",
"size": "728x90"
}, {
"slot": "test_slot",
"cpm": "200",
"size": "300x250"
}]
DFP Response
googletag.impl.pubads.callbackProxy1([{
"/2476204/leaderboard": {
...
"_html_": "\x3c Creative code here \x3e",
"_snippet_": true,
"_height_": 1,
"_width_": 1,
"_empty_": false,
...
}
}, {
"/2476204/multi-size": {
...
"_html_": "\x3c Creative code here \x3e",
"_snippet_": true,
"_height_": 1,
"_width_": 1,
"_empty_": false,
...
}
}, {
"/2476204/multi-size": {
...
"_html_": "",
"_snippet_": false,
"_height_": 250,
"_width_": 300,
"_empty_": true,
}
}]);
Actual results
Note the additional /2476204/multi-size response element "_html_": "\x3c Creative code here \x3e"
DFP Response
googletag.impl.pubads.callbackProxy1([{
"/2476204/leaderboard": {
...
"_html_": "\x3c Creative code here \x3e",
"_snippet_": true,
"_height_": 1,
"_width_": 1,
"_empty_": false,
...
}
}, {
"/2476204/multi-size": {
...
"_html_": "\x3c Creative code here \x3e",
"_snippet_": true,
"_height_": 1,
"_width_": 1,
"_empty_": false,
...
}
}, {
"/2476204/multi-size": {
...
"_html_": "\x3c Creative code here \x3e",
"_snippet_": true,
"_height_": 1,
"_width_": 1,
"_empty_": false,
...
}
}]);
Platform details
- Prebid.js: <=
0.26.0 - Node:
7.0.0
Other information
Creating this bug for the record related to a pull request to come for resolution of this bug.
- You can assign to
@elljoh