GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GADCustomEventNativeAdDelegate
Deprecated
Use GADMediationNativeAdEventDelegate instead.
@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.
-
Deprecated
Use GADMediationNativeAdEventDelegate instead.
Tells the delegate that the custom event ad request failed.
Declaration
Swift
func customEventNativeAd(_ customEventNativeAd: any GADCustomEventNativeAd, didFailToLoadWithError error: any Error)
Objective-C
- (void)customEventNativeAd:
(nonnull id<GADCustomEventNativeAd>)customEventNativeAd
didFailToLoadWithError:(nonnull NSError *)error;
-
Deprecated
Use GADMediationNativeAdEventDelegate instead.
Tells the delegate that the custom event ad request succeeded and loaded a unified native ad.
Declaration
Swift
func customEventNativeAd(_ customEventNativeAd: any GADCustomEventNativeAd, didReceive mediatedUnifiedNativeAd: any MediatedUnifiedNativeAd)
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 2025-02-04 UTC.
[[["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 2025-02-04 UTC."],[[["`GADCustomEventNativeAdDelegate` is deprecated and developers should use `GADMediationNativeAdEventDelegate` instead."],["This protocol facilitates communication between native ad's custom events and the Google Mobile Ads SDK."],["It includes methods to inform the delegate about the success or failure of custom event ad requests."],["Upon success, the delegate receives a `GADMediatedUnifiedNativeAd` object."]]],["The `GADCustomEventNativeAdDelegate` protocol, now deprecated, handled communication between custom native ad events and the Google Mobile Ads SDK. It included two key methods: `customEventNativeAd:didFailToLoadWithError:`, informing the delegate of a failed ad request, and `customEventNativeAd:didReceiveMediatedUnifiedNativeAd:`, signaling a successful ad load. Both are replaced by methods within `GADMediationNativeAdEventDelegate`, and were used for swift or Objective-C to be implemented.\n"]]