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

Review PubmaticBidder #1371

Merged
merged 4 commits into from
Jul 19, 2021
Merged

Review PubmaticBidder #1371

merged 4 commits into from
Jul 19, 2021

Conversation

SerhiiNahornyi
Copy link
Collaborator

No description provided.


updateImpWithAdSlotParameters(impBuilder, impExt.getBidder().getAdSlot(), banner);
if (banner != null) {
impBuilder.banner(assignSizesIfMissing(impBuilder.build().getBanner()));
Copy link
Collaborator Author

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

Copy link
Contributor

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()));
Copy link
Contributor

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) {
Copy link
Contributor

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.

@rpanchyk rpanchyk merged commit cd527af into master Jul 19, 2021
@rpanchyk rpanchyk deleted the pubmatic/rewrite branch July 19, 2021 13:44
@SerhiiNahornyi SerhiiNahornyi linked an issue Jul 19, 2021 that may be closed by this pull request
nickluck9 pushed a commit that referenced this pull request Aug 9, 2021
nickluck9 pushed a commit that referenced this pull request Aug 10, 2021
nickluck9 pushed a commit that referenced this pull request Aug 10, 2021
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.

Pubmatic adapter only uses adSlot param for banners
2 participants