# GoogleMobileAds Framework Reference

# 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.
- `


  ### [-customEventNativeAd:didFailToLoadWithError:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventNativeAdDelegate#/c:objc(pl)GADCustomEventNativeAdDelegate(im)customEventNativeAd:didFailToLoadWithError:)


  ` Deprecated

  Use GADMediationNativeAdEventDelegate instead.
  Tells the delegate that the custom event ad request failed.

  #### Declaration

  Swift

      func customEventNativeAd(_ customEventNativeAd: any https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventNativeAd.html, didFailToLoadWithError error: any Error)

  Objective-C

      - (void)customEventNativeAd:
                  (nonnull id<https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventNativeAd.html>)customEventNativeAd
           didFailToLoadWithError:(nonnull NSError *)error;

- `


  ### [-customEventNativeAd:didReceiveMediatedUnifiedNativeAd:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventNativeAdDelegate#/c:objc(pl)GADCustomEventNativeAdDelegate(im)customEventNativeAd:didReceiveMediatedUnifiedNativeAd:)


  ` 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 https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventNativeAd.html, didReceive mediatedUnifiedNativeAd: any MediatedUnifiedNativeAd)

  Objective-C

      - (void)customEventNativeAd:
                  (nonnull id<https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventNativeAd.html>)customEventNativeAd
          didReceiveMediatedUnifiedNativeAd:
              (nonnull id<https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADMediatedUnifiedNativeAd.html>)mediatedUnifiedNativeAd;