Question: About native ads, if I don't use MediaView, should I still enable video ads in configuration?

36 views
Skip to first unread message

Liran Barsisa

unread,
Aug 11, 2024, 3:47:50 PMAug 11
to Google Mobile Ads SDK Developers
On the website of Admob, when you create a new native ad ad-unit, it is said it's recommended to let the video be loaded there too:
https://youtu.be/AfCvQ4p_1y8?t=38

Also, when you uncheck it, you get a warning:
"Limiting media types may result in decreased revenue
"

But what if I don't use MediaView, so I'm not going to show the video, and only show a small native ad, in the size of a banner ad?

Should I still enable videos, despite the fact I'm not going to use it?


Mobile Ads SDK Forum Advisor

unread,
Aug 12, 2024, 5:33:45 AMAug 12
to lbl...@gmail.com, google-adm...@googlegroups.com

Hi, 

Thank you for contacting the Mobile Ads SDK Support team.

The MediaView is required to render the main video or image asset in an ad.  MediaView can be defined in an XML layout or constructed dynamically. It should be placed within the view hierarchy of a NativeAdView, just like any other asset view. Apps using a MediaView must register it with the NativeAdView. For more information, kindly refer to Register the MediaView.

If you didn't add MediaView. It may affect your earnings. It is important to Enable the Video media type when configuring native ads in the AdMob UI. Allowing video ads to compete for your inventory can significantly improve performance.

The view for displaying native advanced ad media content. Add this view to the layout hierarchy, and register it using NativeAdView.setMediaView(MediaView).

  1. If the returned ad contains a video element, the video will be automatically rendered on this MediaView. In the absence of MediaView, a fallback image will be returned in NativeAd.getImages(). Therefore, to render a video, MediaView must be present in the layout hierarchy, and must be registered.
  2. If the returned ad does not contain a video element and contains images, MediaView will be used to automatically render the image.

For native video ads, the main asset MediaView must be at least 120x120dp (Android) or 120x120pts (iOS). Video ads won't serve to implementations with main asset MediaViews smaller than 120dp in any dimension. 

For more information, Kindly refer to Register the MediaView, Native Ads and MediaView

This message is in relation to case "ref:!00D1U01174p.!5004Q02vEouh:ref" (ADR-00262813)

Thanks,
 
Google Logo Mobile Ads SDK Team


Liran Barsisa

unread,
Aug 12, 2024, 6:28:39 AMAug 12
to Google Mobile Ads SDK Developers
Reply all
Reply to author
Forward
0 new messages