GoogleMobileAds Framework Reference Stay organized with collections Save and categorize content based on your preferences.
GADMediaView
classGADMediaView:UIViewDisplays 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 tothe 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 viewdisplays 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 isempty.
The media content displayed in the media view.
Declaration
Swift
varmediaContent:GADMediaContent?{getset}
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-03-03 UTC.