We are showing a native ad. The issue is that sometimes the same ad doesn't get rendered. The logo, CTA, and headline are visible but MediaView doesn't play video.
After debugging, there's a common pattern that I figured out:
For ads not playing video:
- mediaContent.hasVideoContent() = false
- nativeAd.images = 0
- mediaContent.mainImage = null
- mediaContent.aspectRatio = 0.0
For ad playing video:
- mediaContent.hasVideoContent() = true
- nativeAd.images = 0
- mediContent.mainImage = null
- mediaContent.aspectRatio = 0.5611
Observation: Whenever the aspect ratio is 0. The media view does not render the media content.
Note: This is also happening with the same ad when both the Ad Unit and the ad returned are the same. I've attached screenshots of different properties I saw with the debugger for the same ad.
I also have the recorded Charles session. Will share if required