Skip to content

Commit

Permalink
fix: BannerAdUnit size problem #722
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinPostindustria committed Dec 8, 2023
1 parent 85a5dda commit 5e86702
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,12 +340,9 @@ private void setBannerImpValues(Imp imp) {
}

BannerParameters bannerParameters = adConfiguration.getBannerParameters();
if (bannerParameters != null) {
Set<AdSize> adSizes = bannerParameters.getAdSizes();
if (adSizes != null) {
for (AdSize size : adSizes) {
banner.addFormat(size.getWidth(), size.getHeight());
}
if (bannerParameters != null && bannerParameters.getAdSizes() != null && !bannerParameters.getAdSizes().isEmpty()) {
for (AdSize size : bannerParameters.getAdSizes()) {
banner.addFormat(size.getWidth(), size.getHeight());
}
} else if (adConfiguration.isAdType(AdFormat.BANNER)) {
for (AdSize size : adConfiguration.getSizes()) {
Expand Down

0 comments on commit 5e86702

Please sign in to comment.