GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GADCustomEventNativeAdDelegate
@protocol GADCustomEventNativeAdDelegate <NSObject>
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.
-
Tells the delegate that the custom event ad request failed.
Declaration
Objective-C
- (void)customEventNativeAd:
(nonnull id<GADCustomEventNativeAd>)customEventNativeAd
didFailToLoadWithError:(nonnull NSError *)error;
-
Tells the delegate that the custom event ad request succeeded and loaded a unified native 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,["# GoogleMobileAds Framework Reference\n\nGADCustomEventNativeAdDelegate\n==============================\n\n @protocol GADCustomEventNativeAdDelegate \u003cNSObject\u003e\n\nThe delegate of the GADCustomEventNativeAd object must adopt the GADCustomEventNativeAdDelegate\nprotocol. Methods in this protocol are used for native ad's custom event communication with the\nGoogle Mobile Ads SDK.\n- `\n ``\n ``\n `\n\n ### [-customEventNativeAd:didReceiveMediatedNativeAd:](#/c:objc(pl)GADCustomEventNativeAdDelegate(im)customEventNativeAd:didReceiveMediatedNativeAd:)\n\n `\n ` \n Tells the delegate that the custom event ad request succeeded and loaded a native ad. \n\n #### Declaration\n\n Objective-C \n\n - (void)customEventNativeAd:\n (nonnull id\u003c../Protocols/GADCustomEventNativeAd.html\u003e)customEventNativeAd\n didReceiveMediatedNativeAd:\n (nonnull id\u003c../Protocols/GADMediatedNativeAd.html\u003e)mediatedNativeAd;\n\n- `\n ``\n ``\n `\n\n ### [-customEventNativeAd:didFailToLoadWithError:](#/c:objc(pl)GADCustomEventNativeAdDelegate(im)customEventNativeAd:didFailToLoadWithError:)\n\n `\n ` \n Tells the delegate that the custom event ad request failed. \n\n #### Declaration\n\n Objective-C \n\n - (void)customEventNativeAd:\n (nonnull id\u003c../Protocols/GADCustomEventNativeAd.html\u003e)customEventNativeAd\n didFailToLoadWithError:(nonnull NSError *)error;\n\n- `\n ``\n ``\n `\n\n ### [-customEventNativeAd:didReceiveMediatedUnifiedNativeAd:](#/c:objc(pl)GADCustomEventNativeAdDelegate(im)customEventNativeAd:didReceiveMediatedUnifiedNativeAd:)\n\n `\n ` \n Tells the delegate that the custom event ad request succeeded and loaded a unified native ad. \n\n #### Declaration\n\n Objective-C \n\n - (void)customEventNativeAd:\n (nonnull id\u003c../Protocols/GADCustomEventNativeAd.html\u003e)customEventNativeAd\n didReceiveMediatedUnifiedNativeAd:\n (nonnull id\u003c../Protocols/GADMediatedUnifiedNativeAd.html\u003e)mediatedUnifiedNativeAd;"]]