Stay organized with collections
Save and categorize content based on your preferences.
GADMediaView
@interfaceGADMediaView:UIView
Displays 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 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-03-03 UTC."],[],[],null,["# GoogleMobileAds Framework Reference\n\nGADMediaView\n============\n\n @interface GADMediaView : UIView\n\nDisplays native ad media content.\n\nTo display media content in GADUnifiedNativeAdView instances, add a GADMediaView subview,\nassign the native ad view's mediaView property, and set the native ad's mediaContent property to\nthe media view.\n\nIf the native ad contains video content, the media view displays the video content.\n\nIf the native ad doesn't have video content and image loading is enabled, the media view\ndisplays the first image from the native ad's \\|images\\| property.\n\nIf the native ad doesn't have video content and image loading is disabled, the media view is\nempty.\n- `\n ``\n ``\n `\n\n ### [mediaContent](#/c:objc(cs)GADMediaView(py)mediaContent)\n\n `\n ` \n The media content displayed in the media view. \n\n #### Declaration\n\n Objective-C \n\n @property (assign, readwrite, nonatomic, nullable) ../Classes/GADMediaContent.html *mediaContent;"]]