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

Yieldmo: Add bid floor currency conversion #3697

Conversation

ym-winston
Copy link
Contributor

This change adds bid floor currency conversion for the Yieldmo adapter. I didn't see any documentation around this functionality, so I largely based this change on the implementations I saw across other adapters. If anyone reviewing this is aware of any documentation or known issues/edge cases with this feature, I would love to hear about them. Thanks!

Copy link

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, 8837dd1

yieldmo

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/yieldmo/yieldmo.go:38:	MakeRequests		70.0%
github.com/prebid/prebid-server/v2/adapters/yieldmo/yieldmo.go:65:	preprocess		66.7%
github.com/prebid/prebid-server/v2/adapters/yieldmo/yieldmo.go:118:	MakeBids		70.6%
github.com/prebid/prebid-server/v2/adapters/yieldmo/yieldmo.go:160:	Builder			100.0%
github.com/prebid/prebid-server/v2/adapters/yieldmo/yieldmo.go:168:	getMediaTypeForImp	62.5%
total:									(statements)		68.9%

@ym-winston
Copy link
Contributor Author

I'm not sure why the validate merge failed. When I run ./validate.sh --nofmt --cov locally I see a handful of warnings but no errors or failures. Please let me know if you have any advice on what to do about that.

}
imp.BidFloorCur = "USD"
imp.BidFloor = floor
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add json test case for this change.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been done and it actually did help catch a mistake, so thank you for requesting.

@bsardo bsardo changed the title Yieldmo Adapter: Add bid floor currency conversion Yieldmo: Add bid floor currency conversion May 23, 2024
…ete the preprocess step regardless of whether or not the currency conversion fails, fixed an issue where the currency conversion results were not being applied
Copy link

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, b726769

yieldmo

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/yieldmo/yieldmo.go:38:	MakeRequests		80.0%
github.com/prebid/prebid-server/v2/adapters/yieldmo/yieldmo.go:65:	preprocess		88.0%
github.com/prebid/prebid-server/v2/adapters/yieldmo/yieldmo.go:121:	MakeBids		76.5%
github.com/prebid/prebid-server/v2/adapters/yieldmo/yieldmo.go:163:	Builder			100.0%
github.com/prebid/prebid-server/v2/adapters/yieldmo/yieldmo.go:171:	getMediaTypeForImp	62.5%
total:									(statements)		80.6%

@Sonali-More-Xandr Sonali-More-Xandr merged commit 2b8e8cd into prebid:master Jun 2, 2024
5 checks passed
mefjush pushed a commit to adhese/prebid-server that referenced this pull request Jul 19, 2024
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.

3 participants