Skip to content

Commit

Permalink
Zemanta bid adapter: reinstate Outbrain as alias (#6617)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rok Sušnik authored Apr 19, 2021
1 parent c1e3ee6 commit dc710b1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion modules/zemantaBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ const NATIVE_PARAMS = {
export const spec = {
code: BIDDER_CODE,
gvlid: GVLID,
aliases: [
{ code: 'outbrain', gvlid: GVLID }
],
supportedMediaTypes: [ NATIVE, BANNER ],
isBidRequestValid: (bid) => {
return (
Expand Down Expand Up @@ -164,7 +167,11 @@ export const spec = {
return syncs;
},
onBidWon: (bid) => {
ajax(utils.replaceAuctionPrice(bid.nurl, bid.originalCpm))
// for native requests we put the nurl as an imp tracker, otherwise if the auction takes place on prebid server
// the server JS adapter puts the nurl in the adm as a tracking pixel and removes the attribute
if (bid.nurl) {
ajax(utils.replaceAuctionPrice(bid.nurl, bid.originalCpm))
}
}
};

Expand Down

0 comments on commit dc710b1

Please sign in to comment.