-
Notifications
You must be signed in to change notification settings - Fork 181
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
Review PubmaticBidder #1371
Review PubmaticBidder #1371
Conversation
|
||
updateImpWithAdSlotParameters(impBuilder, impExt.getBidder().getAdSlot(), banner); | ||
if (banner != null) { | ||
impBuilder.banner(assignSizesIfMissing(impBuilder.build().getBanner())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pls take a look on this line, can this be used or updates should be prepared
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it looks kind of cryptic.
Can we do assignSizesIfMissing
actions in updateImpWithAdSlotParameters
?
|
||
updateImpWithAdSlotParameters(impBuilder, impExt.getBidder().getAdSlot(), banner); | ||
if (banner != null) { | ||
impBuilder.banner(assignSizesIfMissing(impBuilder.build().getBanner())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it looks kind of cryptic.
Can we do assignSizesIfMissing
actions in updateImpWithAdSlotParameters
?
} | ||
final Banner updatedBanner = banner.toBuilder().w(width).h(height).build(); | ||
modifiedImp.banner(updatedBanner); | ||
private void updateImpWithAdSlotParameters(Imp.ImpBuilder impBuilder, String adSlot, Banner banner) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally, this method should returm Imp
object.
No description provided.