-
Notifications
You must be signed in to change notification settings - Fork 84
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
Android banner video request does not send width and height #768
Comments
@shinwan2 what is
|
@jsligh String var0 = "320x50_mb";
BANNER = new AdSize(320, 50, var0); Sorry I meant
I did set the size for both Android and iOS. Let's inline the size
Yes in iOS, if I'm correct, the request width and height is set by these lines.
Which is only equivalent to 1 } else if (!adConfiguration.getSizes().isEmpty()) {
for (AdSize size : adConfiguration.getSizes()) {
video.w = size.getWidth();
video.h = size.getHeight();
break;
} Proposed solutionSorry it's in Kotlin for conciseness. func getAdSize(): AdSize? {
return videoParams?.getAdSize() ?: adConfiguration.getSizes().firstOrNull()
}
val adSize = getAdSize()
if (adSize != null) {
video.w = adSize.getWidth()
video.h = adSize.getHeight()
} else if (resources != null) { … } |
@shinwan2 Thank you so much for your clarification and proposed solution. Apologies, I did not remember that |
Describe the bug
In Android, with the following code
Below JSON request is sent for the
imp.video
While in iOS
the
imp.video
sendsw
andh
Expected behavior
I think iOS is correct and
w
andh
should be sent inimp.video
.Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: