Getting Blank Ads

69 views
Skip to first unread message

Ashutosh Gupta

unread,
Sep 19, 2023, 3:28:43 PM9/19/23
to Google Mobile Ads SDK Developers
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
Screenshot 2023-09-20 at 12.54.24 AM.png
Screenshot 2023-09-18 at 1.40.15 PM.png
Reply all
Reply to author
Forward
0 new messages