You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we enable the currency module, the currency module adds originalCurrency and originalCpm properties to the bid object. But these properties are not added when bid.currency is same as config.currency.adServerCurrency. This makes some bid objects inconsistent with other bid objects. This makes it difficult for the bid object consuming codes like bidResponse event handler or analytics handlers to consume this information. Due to this in-consistency, the consuming codes need to handle these bid objects separately and may need to set value for these properties on own with some logic. Better if we make the bid objects consistently in the presence of the currency module by adding these missing properties even if bid.currency matches config.currency.adserverCurrency
Steps to reproduce
Example:
PreBid Config.currency.adServerCurrency = 'SEK'
PubMatic bidder bids with currency USD
AdForm bidder bids with currency SEK
then pubmaticBid.originalCurrency = 'USD' and pubmaticBid.originalCpm = 5
but adformBid.originalCurrency and adform.originalCpm are UNDEFINED
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Type of issue
BUG
Description
When we enable the currency module, the currency module adds originalCurrency and originalCpm properties to the bid object. But these properties are not added when bid.currency is same as config.currency.adServerCurrency. This makes some bid objects inconsistent with other bid objects. This makes it difficult for the bid object consuming codes like bidResponse event handler or analytics handlers to consume this information. Due to this in-consistency, the consuming codes need to handle these bid objects separately and may need to set value for these properties on own with some logic. Better if we make the bid objects consistently in the presence of the currency module by adding these missing properties even if bid.currency matches config.currency.adserverCurrency
Steps to reproduce
Example:
PreBid Config.currency.adServerCurrency = 'SEK'
PubMatic bidder bids with currency USD
AdForm bidder bids with currency SEK
then pubmaticBid.originalCurrency = 'USD' and pubmaticBid.originalCpm = 5
but adformBid.originalCurrency and adform.originalCpm are UNDEFINED
Refer: https://github.com/prebid/Prebid.js/blob/master/modules/currency.js#L192
The text was updated successfully, but these errors were encountered: