GADCustomEventNativeAdDelegate
protocol GADCustomEventNativeAdDelegate : NSObjectProtocol
The delegate of the GADCustomEventNativeAd object must adopt the GADCustomEventNativeAdDelegate protocol. Methods in this protocol are used for native ad’s custom event communication with the Google Mobile Ads SDK.
-
Tells the delegate that the custom event ad request succeeded and loaded a native ad.
Declaration
Swift
func customEventNativeAd(_ customEventNativeAd: GADCustomEventNativeAd, didReceive mediatedNativeAd: GADMediatedNativeAd)
-
Tells the delegate that the custom event ad request failed.
Declaration
Swift
func customEventNativeAd(_ customEventNativeAd: GADCustomEventNativeAd, didFailToLoadWithError error: Error)
-
Tells the delegate that the custom event ad request succeeded and loaded a unified native ad.
Declaration
Swift
func customEventNativeAd(_ customEventNativeAd: GADCustomEventNativeAd, didReceive mediatedUnifiedNativeAd: GADMediatedUnifiedNativeAd)