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

BannerAdUnit ignores width and height #722

Closed
ValentinPostindustria opened this issue Dec 8, 2023 · 0 comments · Fixed by #723
Closed

BannerAdUnit ignores width and height #722

ValentinPostindustria opened this issue Dec 8, 2023 · 0 comments · Fixed by #723
Assignees

Comments

@ValentinPostindustria
Copy link
Collaborator

ValentinPostindustria commented Dec 8, 2023

Describe the bug
Starts from version 2.1.7. When you create BannerAdUnit with BannerParameters, it ignores the ad size passed in the constructor.

adUnit = new BannerAdUnit(CONFIG_ID, WIDTH, HEIGHT);

BannerParameters parameters = new BannerParameters();
parameters.setApi(Arrays.asList(Signals.Api.MRAID_2, Signals.Api.OMID_1));
adUnit.setBannerParameters(parameters);

As a result, the response will be:

Invalid request format: request.imp[0].banner has no sizes. Define "w" and "h", or include "format" elements

Expected behavior
The ad size must be set up by the constructor if there is no ad sizes in BannerParameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant