You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
If I use UnifiedNativeAdMapper when loading native ads and set the presence of video using setHasVideoContent() it has no effect.
Actual behavior:
You can reproduce this bug in your example:
In the SampleUnifiedNativeAdMapper.java file, add setHasVideoContent(true) in the constructor;
In the MainActivity.java file, in the onNativeAdLoaded() callback, nativeAd.getMediaContent().hasVideoContent() and nativeAd.getMediaContent().getVideoController().hasVideoContent() will return false, although they should return true.
Expected behavior: hasVideoContent() returns true
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) at L70 in SampleUnifiedNativeAdMapper.java and check it at L235 in MainActivity.java.
The text was updated successfully, but these errors were encountered:
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:
SampleUnifiedNativeAdMapper.java
file, addsetHasVideoContent(true)
in the constructor;MainActivity.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
.The text was updated successfully, but these errors were encountered: