Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Currency: Intermediate rate logic #4205

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sigma-software-prebid
Copy link

🔧 Type of changes

  • new bid adapter
  • update bid adapter
  • new feature
  • new analytics adapter
  • new module
  • bugfix
  • documentation
  • configuration
  • technical debt (test coverage, refactoring, etc.)

✨ What's the context?

#3566

🧠 Rationale behind the change

The Prebid.js currency module is able to cross convert currencies using USD (or GBP) as an intermediate. This feature is not currently implemented in PBS Go, so the following error exists:
Unable to convert from currency NOK to desired ad server currency SEK.

In this PR we implement the cross currency conversion logic through an intermediate currency as a part of the GetRate method in the currency package.

Related change in PBS Java

🧪 Test plan

New functionality is covered by TestGetRate_IntermediateConversion unit test in currency/rates_test.go.

Closes prebid#3566

The Prebid.js currency module is able to cross convert currencies using USD (or GBP) as an intermediate.
This feature is not currently implemented in PBS Go, so the following error exists:
 'Unable to convert from currency NOK to desired ad server currency SEK'.
In this PR we implement the cross currency conversion logic through
an intermediate currency as a part of the GetRate method in the currency package.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant