GoogleMobileAds Framework Reference

GADMediaView

@interface GADMediaView : UIView

Displays native ad media content.

To display media content in GADUnifiedNativeAdView instances, add a GADMediaView subview, assign the native ad view’s mediaView property, and set the native ad’s mediaContent property to the media view.

If the native ad contains video content, the media view displays the video content.

If the native ad doesn’t have video content and image loading is enabled, the media view displays the first image from the native ad’s |images| property.

If the native ad doesn’t have video content and image loading is disabled, the media view is empty.

  • The media content displayed in the media view.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, nullable) GADMediaContent *mediaContent;

Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.

Updated Nov 1, 2022

Firebase Authentication lets you add an end-to-end identity solution to your app for easy user authentication, sign-in, and onboarding in just a few lines of code.

Updated Feb 21, 2025

Firebase Authentication lets you add an end-to-end identity solution to your app for easy user authentication, sign-in, and onboarding in just a few lines of code.

Updated Feb 21, 2025