Share your feedback and help shape the Google Mobile Ads SDK roadmap. Take the Google Mobile Ads SDK Annual Survey for 2023 before it closes on May 5th, 2023.

GoogleMobileAds Framework Reference

Stay organized with collections Save and categorize content based on your preferences.

GADMediaView

@interface GADMediaView : UIView

Displays native ad media content.

To display media content in GADNativeAdView 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.