Skip to content

Commit

Permalink
Tappx :: Adtypes bug :: solved
Browse files Browse the repository at this point in the history
  • Loading branch information
agrandes-tappx committed Jan 5, 2022
1 parent b7c2bfb commit 28e5801
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion modules/tappxBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,14 @@ export const spec = {
* @return boolean True if this is a valid bid, and false otherwise.
*/
isBidRequestValid: function(bid) {
return validBasic(bid) && validMediaType(bid)
//bid.params.host
if ((new RegExp(`^(vz.*|zz.*)\\.*$`, 'i')).test(bid.params.host)) { //New endpoint
if((new RegExp(`^(zz.*)\\.*$`, 'i')).test(bid.params.host)) return validBasic(bid)
else return validBasic(bid) && validMediaType(bid)
} else { //This is backward compatible feature. It will be remove in the future
if((new RegExp(`^(ZZ.*)\\.*$`, 'i')).test(bid.params.endpoint)) return validBasic(bid)
else return validBasic(bid) && validMediaType(bid)
}
},

/**
Expand Down

0 comments on commit 28e5801

Please sign in to comment.