Open Neexol opened 11 months ago
Hi @Neexol
Can you provide a minimal sample? I am having trouble understanding the issue.
I see SampleUnifiedNAtiveAdMapper.java, but there are multiple MainActivities
Hello @NVentimiglia, I have attached the source code to the issue, here is the link again. You can laod a native ad and view info in Logcat. https://drive.google.com/file/d/1sia6eJC81yHZNVHI5jUcUU_9MlNXr5Vx/view
@Neexol
I replicated this on my end. Let me hand this off to the mediation team and I will get back to you.
@Neexol
Did some review, setHasVideoContent()
does not override the MediaContent
of the NativeAd
. You can call setMediaContent()
and include a MediaContent View Element to solve this problem.
That said, I will open an issue internally to get more information and possibly update this API.
Hello, If I use
UnifiedNativeAdMapper
when loading native ads and set the presence of video usingsetHasVideoContent()
it has no effect.Actual behavior: You can reproduce this bug in your example: 1) In the
SampleUnifiedNativeAdMapper.java
file, addsetHasVideoContent(true)
in the constructor; 2) In theMainActivity.java
file, in theonNativeAdLoaded()
callback,nativeAd.getMediaContent().hasVideoContent()
andnativeAd.getMediaContent().getVideoController().hasVideoContent()
will returnfalse
, although they should returntrue
.Expected behavior:
hasVideoContent()
returnstrue
Source: Here is the source code with my edits that reproduces the bug based on this repository example (too big for direct load).
I have set the use of custom event. Also call
setHasVideoContent(true)
atL70
inSampleUnifiedNativeAdMapper.java
and check it atL235
inMainActivity.java
.