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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-02-23 UTC."],[[["GADMediaView is a UIView subclass used to display native ad media content within GADNativeAdView instances."],["It automatically handles displaying video content if available, or the first image from the ad's images property if enabled and no video is present."],["When image loading is disabled and the ad lacks video content, the GADMediaView will appear empty."],["The mediaContent property is used to set and retrieve the media content displayed in the GADMediaView."]]],[]]