GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
protocol GADMediatedNativeAdDelegate : NSObjectProtocol
GADMediatedNativeAdDelegate objects handle mediated native ad events.
-
Tells the delegate that the mediated native ad has rendered in |view| with clickable asset views
and nonclickable asset views. viewController should be used to present modal views if the ad
opens full screen.
-
Tells the delegate that the mediated native ad has recorded an impression. This method is called
only once per mediated native ad.
-
Tells the delegate that the mediated native ad has recorded a user click on the asset named
|assetName|. Full screen actions should be presented from |viewController|. This method is
called only if -[GADMAdNetworkAdapter handlesUserClicks] returns NO.
-
Tells the delegate that the mediated native ad has untracked |view|. This method is called
when the mediatedNativeAd is no longer rendered in the provided view and the delegate should
stop tracking the view’s impressions and clicks. The method may also be called with a nil view
when the view in which the mediated native ad has rendered is deallocated.
-
Tells the delegate that the mediated native ad has rendered in |view|. viewController should be
used to present modal views for the ad.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-03-03 UTC.
[null,null,["Last updated 2021-03-03 UTC."],[],[],null,["GADMediatedNativeAdDelegate \n\n protocol GADMediatedNativeAdDelegate : NSObjectProtocol\n\nGADMediatedNativeAdDelegate objects handle mediated native ad events.\n- `\n ``\n ``\n `\n\n [-mediatedNativeAd:didRenderInView:clickableAssetViews:nonclickableAssetViews:viewController:](#/c:objc(pl)GADMediatedNativeAdDelegate(im)mediatedNativeAd:didRenderInView:clickableAssetViews:nonclickableAssetViews:viewController:)`\n ` \n Tells the delegate that the mediated native ad has rendered in \\|view\\| with clickable asset views\n and nonclickable asset views. viewController should be used to present modal views if the ad\n opens full screen.\n- `\n ``\n ``\n `\n\n [-mediatedNativeAdDidRecordImpression:](#/c:objc(pl)GADMediatedNativeAdDelegate(im)mediatedNativeAdDidRecordImpression:)`\n ` \n Tells the delegate that the mediated native ad has recorded an impression. This method is called\n only once per mediated native ad.\n- `\n ``\n ``\n `\n\n [-mediatedNativeAd:didRecordClickOnAssetWithName:view:viewController:](#/c:objc(pl)GADMediatedNativeAdDelegate(im)mediatedNativeAd:didRecordClickOnAssetWithName:view:viewController:)`\n ` \n Tells the delegate that the mediated native ad has recorded a user click on the asset named\n \\|assetName\\|. Full screen actions should be presented from \\|viewController\\|. This method is\n called only if -\\[GADMAdNetworkAdapter handlesUserClicks\\] returns NO.\n- `\n ``\n ``\n `\n\n [-mediatedNativeAd:didUntrackView:](#/c:objc(pl)GADMediatedNativeAdDelegate(im)mediatedNativeAd:didUntrackView:)`\n ` \n Tells the delegate that the mediated native ad has untracked \\|view\\|. This method is called\n when the mediatedNativeAd is no longer rendered in the provided view and the delegate should\n stop tracking the view's impressions and clicks. The method may also be called with a nil view\n when the view in which the mediated native ad has rendered is deallocated.\n- `\n ``\n ``\n `\n\n [-mediatedNativeAd:didRenderInView:viewController:](#/c:objc(pl)GADMediatedNativeAdDelegate(im)mediatedNativeAd:didRenderInView:viewController:)`\n ` \n Tells the delegate that the mediated native ad has rendered in \\|view\\|. viewController should be\n used to present modal views for the ad."]]