Skip to content

Commit

Permalink
Merge pull request #142 from BartVB/patch-1
Browse files Browse the repository at this point in the history
Don't return empty zones (Criteo adapter)
  • Loading branch information
mkendall07 committed Feb 1, 2016
2 parents 80bae86 + e1c5010 commit af11c0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adapters/criteo.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ var CriteoAdapter = function CriteoAdapter() {
adResponse = bidfactory.createBid(1);
adResponse.bidderCode = 'criteo';

adResponse.keys = content.split(';');
adResponse.keys = content.replace(/\;$/, '').split(';');
} else {
// Indicate an ad was not returned
adResponse = bidfactory.createBid(2);
Expand All @@ -71,4 +71,4 @@ var CriteoAdapter = function CriteoAdapter() {
};
};

module.exports = CriteoAdapter;
module.exports = CriteoAdapter;

0 comments on commit af11c0e

Please sign in to comment.