commit | author | age
|
96fe76
|
1 |
// |
L |
2 |
// GADCustomEventNativeAdDelegate.h |
|
3 |
// Google Mobile Ads SDK |
|
4 |
// |
|
5 |
// Copyright 2015 Google LLC. All rights reserved. |
|
6 |
// |
|
7 |
|
|
8 |
#import <Foundation/Foundation.h> |
|
9 |
#import <GoogleMobileAds/GADCustomEventNativeAd.h> |
|
10 |
#import <GoogleMobileAds/Mediation/GADMediatedUnifiedNativeAd.h> |
|
11 |
|
|
12 |
/// The delegate of the GADCustomEventNativeAd object must adopt the GADCustomEventNativeAdDelegate |
|
13 |
/// protocol. Methods in this protocol are used for native ad's custom event communication with the |
|
14 |
/// Google Mobile Ads SDK. |
|
15 |
GAD_DEPRECATED_MSG_ATTRIBUTE("Use GADMediationNativeAdEventDelegate instead.") |
|
16 |
@protocol GADCustomEventNativeAdDelegate <NSObject> |
|
17 |
|
|
18 |
/// Tells the delegate that the custom event ad request failed. |
|
19 |
- (void)customEventNativeAd:(nonnull id<GADCustomEventNativeAd>)customEventNativeAd |
|
20 |
didFailToLoadWithError:(nonnull NSError *)error; |
|
21 |
|
|
22 |
/// Tells the delegate that the custom event ad request succeeded and loaded a unified native ad. |
|
23 |
- (void)customEventNativeAd:(nonnull id<GADCustomEventNativeAd>)customEventNativeAd |
|
24 |
didReceiveMediatedUnifiedNativeAd: |
|
25 |
(nonnull id<GADMediatedUnifiedNativeAd>)mediatedUnifiedNativeAd; |
|
26 |
|
|
27 |
@end |