We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38d6d3a commit f62114dCopy full SHA for f62114d
src/adapters/prebidServer.js
@@ -31,7 +31,7 @@ function PrebidServer() {
31
timeout_millis : config.timeout,
32
url: utils.getTopWindowUrl(),
33
prebid_version : '$prebid.version$',
34
- ad_units : bidRequest.ad_units
+ ad_units : bidRequest.ad_units.filter(hasSizes)
35
};
36
37
const payload = JSON.stringify(requestJson);
@@ -41,6 +41,11 @@ function PrebidServer() {
41
});
42
43
44
+ // at this point ad units should have a size array either directly or mapped so filter for that
45
+ function hasSizes(unit) {
46
+ return unit.sizes && unit.sizes.length;
47
+ }
48
+
49
/* Notify Prebid of bid responses so bids can get in the auction */
50
function handleResponse(response) {
51
let result;
0 commit comments