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

MType Support for the Adxcg Bidder #2891

Merged
merged 2 commits into from
Jan 18, 2024
Merged

MType Support for the Adxcg Bidder #2891

merged 2 commits into from
Jan 18, 2024

Conversation

AntoxaAntoxic
Copy link
Collaborator

No description provided.

final BidType bidType = getBidType(bid, bidRequest.getImp());
return BidderBid.of(bid, bidType, bidResponse.getCur());
final BidType bidType = getBidMediaType(bid);
return BidderBid.of(bid, bidType, currency);
Copy link
Collaborator

Choose a reason for hiding this comment

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

return BidderBid.of(bid, bidType, currency); this can be outside try/catch block

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

imho it doesn't make much sense moving it outside since we return a bid or null depending on the bid type, so it will require additional if-statement and so on... not a big deal, if you still think it's better to do, let me know

Copy link
Collaborator

Choose a reason for hiding this comment

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

Try/catch adds mutch logic under the hood, for performance reasons it is much better to use plain if

But for this case, we can go with existing solution

@SerhiiNahornyi SerhiiNahornyi merged commit e43a2ae into master Jan 18, 2024
2 checks passed
@SerhiiNahornyi SerhiiNahornyi deleted the adxcg-mtype branch January 18, 2024 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Port PR from PBS-Go: Adxcg: support for mType and bidResponse currency
2 participants