prebid-server-java icon indicating copy to clipboard operation
prebid-server-java copied to clipboard

New Alvads Adapter

Open SamuelAlejandroNT opened this issue 3 months ago • 12 comments

🔧 Type of changes [ x] new bid adapter bid adapter update new feature new analytics adapter new module module update bugfix documentation configuration dependency update tech debt (test coverage, refactorings, etc.) ✨ What's the context? A new bid adapter AlvadsBidder has been implemented, and the bid type determination (BidType) logic has been corrected to properly distinguish between banner and video Imps. Test payloads were also updated to reflect separate banner and video Imps.

🧠 Rationale behind the change Previously, the getBidType method always returned banner, even when the Imp was a video. This caused test failures and incorrect bid type mapping. The changes include:

Mapping each Bid to its corresponding AlvaAdsImp using impId.

Returning BidType.video when the Imp has a video object.

Updating test payloads to include separate banner and video Imps.

Ensuring lambda variables are final to comply with Java requirements.

No significant trade-offs were involved; the change is internal logic and test improvements.

🔎 New Bid Adapter Checklist [x ] verify email contact works [ x] NO fully dynamic hostnames [ x] geographic host parameters are NOT required [ x] direct use of HTTP is prohibited - implement an existing Bidder interface that will do all the job [x ] if the ORTB is just forwarded to the endpoint, use the generic adapter - define the new adapter as the alias of the generic adapter [ x] cover an adapter configuration with an integration test 🧪 Test plan Bids were tested with both banner and video Imps. The results were verified to ensure:

Banner bids return BidType.banner.

Video bids return BidType.video.

Unit test makeBidsShouldReturnBidderBidsWithFullFields passes successfully.

🏎 Quality check [x ] Are your changes following our code style guidelines? [x ] Are there any breaking changes in your code? [x ] Does your test coverage exceed 90%? [x ] Are there any erroneous console logs, debuggers or leftover code in your changes?

SamuelAlejandroNT avatar Sep 18 '25 13:09 SamuelAlejandroNT

Hi @SamuelAlejandroNT why did you re-created the PR you've closed? Since you've done that the history of comments is left there, so please fix all the comments for the previous PR.

Thank you

AntoxaAntoxic avatar Sep 19 '25 12:09 AntoxaAntoxic

Hi @AntoxaAntoxic ,

The reason was an issue with branches caused by our team—apologies for that. We've also fixed the errors now.

Thank you.

SamuelAlejandroNT avatar Sep 24 '25 13:09 SamuelAlejandroNT

Hi @AntoxaAntoxic, the previous PR comments have been reviewed, addressed, and the changes have been pushed. Thanks for your feedback.

SamuelAlejandroNT avatar Sep 25 '25 14:09 SamuelAlejandroNT

@SamuelAlejandroNT please add an integration test for the bidder

AntoxaAntoxic avatar Sep 26 '25 07:09 AntoxaAntoxic

Added an integration test

SamuelAlejandroNT avatar Sep 29 '25 19:09 SamuelAlejandroNT

@SamuelAlejandroNT I can't send any request to the provided host helios-ads-qa-core.ssidevops.com due to SSL Connection failure because as I understand it has outdated certificates, so it's unable to check whether it's reachable, please double-check the provided url. It has to be reachable in order to merge the PR.

AntoxaAntoxic avatar Oct 06 '25 10:10 AntoxaAntoxic

Hi @AntoxaAntoxic I’ve added the integration test. Apologies for the delay. I was reviewing some SSL-related issues with another team.

SamuelAlejandroNT avatar Oct 16 '25 14:10 SamuelAlejandroNT

@SamuelAlejandroNT pls also fix checkstyle issue: https://github.com/prebid/prebid-server-java/actions/runs/18564291224/job/53734701335?pr=4194

osulzhenko avatar Oct 27 '25 09:10 osulzhenko

Fixed

SamuelAlejandroNT avatar Oct 27 '25 12:10 SamuelAlejandroNT

@SamuelAlejandroNT could you also fix checkstyle issue, please?

Error:  /home/runner/work/prebid-server-java/prebid-server-java/src/main/java/org/prebid/server/bidder/alvads/AlvadsBidder.java:167:5: 'METHOD_DEF' has more than 1 empty lines before. [EmptyLineSeparator]

osulzhenko avatar Nov 04 '25 14:11 osulzhenko

Hi @SamuelAlejandroNT, does the endpoint work right now?

AntoxaAntoxic avatar Nov 05 '25 09:11 AntoxaAntoxic

Hi @AntoxaAntoxic, yes, the endpoint is working right now.

SamuelAlejandroNT avatar Nov 05 '25 12:11 SamuelAlejandroNT

@SamuelAlejandroNT also pls fix checkstyle

osulzhenko avatar Nov 27 '25 12:11 osulzhenko