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.

  • Native ad object that contains the AdChoices asset. Set this property to populate this view’s content.

    Declaration

    Objective-C

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