Prebid.js icon indicating copy to clipboard operation
Prebid.js copied to clipboard

Currency handling question

Open dapsych0 opened this issue 10 years ago • 9 comments

Hi,

We've been looking through the various adaptors and have noticed that in some combinations, the currency returned from them is going to be different, but looking through the prebid code there doesnt seem to be a way to convert it... is this something we are expected to handle ourselves via the bidCpmAdjustment function?

e.g. Piximedia examples suggest EUR but most others we'd expect USD, or a currency provided in the response such as with Index or AOL

dapsych0 avatar Oct 14 '16 09:10 dapsych0

@dapsych0 It's expected that you would work with a single currency and we don't expect to implement any currency conversion process client side.

With that said, you could use the bidCpmAdjustment adjustment to make these conversions if you want to incorporate different bidders. I'll ask bidders to specify their default currency in the bidders param page on prebid.org going forward.

mkendall07 avatar Oct 17 '16 19:10 mkendall07

@prebid/prebid-bidder-adaptors Can you comment on this ticket with your default adapter currency please?

mkendall07 avatar Oct 17 '16 19:10 mkendall07

Adblade is in USD.

frazjp65 avatar Oct 17 '16 19:10 frazjp65

UnderdogMedia is always USD.

baragona avatar Oct 17 '16 21:10 baragona

J Carter Marketing is also USD only

JCarterGw avatar Oct 17 '16 21:10 JCarterGw

Brightcom is USD.

matan-ybrant avatar Oct 18 '16 06:10 matan-ybrant

Thanks guys, seems USD is the most widely used, though thats probably due to most adaptors being in the US.

dapsych0 avatar Oct 18 '16 08:10 dapsych0

Hello everyone, as you noticed our default currency for Piximedia is EUR. We also support bidding other currencies server-side, I submitted a PR to document the “currency” property to our bidder that allows sites to use USD if they wish.

Maybe it should be worth to have a standard property storing the currency (like the way “sizes” is working: you have a global value, that you can override from bidder to bidder).

In any case, I believe it would be difficult to adjust the currency in the browser, because the rates might be different across bidders.

Going close this out as I think Pixiemedia is the only bidder that is not USD, and they updated their documentation.

mkendall07 avatar Oct 24 '16 19:10 mkendall07