GADMediaView

@interface GADMediaView

Displays native ad media assets.

To display media assets in GADNativeAppInstallAdView instances, add a GADMediaView subview and assign the native ad view’s mediaView property.

If the native ad doesn’t contain a video and image loading is enabled, the GADMediaView displays the native ad’s |images| asset’s first image.

If the native ad doesn’t contain a video and image loading is disabled, the GADMediaView object is empty.

  • The associated native ad. Setting this property displays the native ad’s media assets in this view.

    Declaration

    Swift

    weak var nativeAd: GADNativeAd? { get set }

    Objective-C

    @property (readwrite, nonatomic) GADNativeAd *_Nullable nativeAd;