commit | author | age
|
96fe76
|
1 |
// |
L |
2 |
// GADCustomNativeAdDelegate.h |
|
3 |
// Google Mobile Ads SDK |
|
4 |
// |
|
5 |
// Copyright 2015 Google LLC. All rights reserved. |
|
6 |
// |
|
7 |
|
|
8 |
#import <Foundation/Foundation.h> |
|
9 |
|
|
10 |
@class GADCustomNativeAd; |
|
11 |
|
|
12 |
/// Identifies native ad assets. |
|
13 |
@protocol GADCustomNativeAdDelegate <NSObject> |
|
14 |
|
|
15 |
@optional |
|
16 |
|
|
17 |
#pragma mark Ad Lifecycle Events |
|
18 |
|
|
19 |
/// Called when an impression is recorded for a custom native ad. |
|
20 |
- (void)customNativeAdDidRecordImpression:(nonnull GADCustomNativeAd *)nativeAd; |
|
21 |
|
|
22 |
/// Called when a click is recorded for a custom native ad. |
|
23 |
- (void)customNativeAdDidRecordClick:(nonnull GADCustomNativeAd *)nativeAd; |
|
24 |
|
|
25 |
#pragma mark Click-Time Lifecycle Notifications |
|
26 |
|
|
27 |
/// Called just before presenting the user a full screen view, such as a browser, in response to |
|
28 |
/// clicking on an ad. Use this opportunity to stop animations, time sensitive interactions, etc. |
|
29 |
/// |
|
30 |
/// Normally the user looks at the ad, dismisses it, and control returns to your application with |
|
31 |
/// the customNativeAdDidDismissScreen: message. However, if the user hits the Home button or clicks |
|
32 |
/// on an App Store link, your application will end. The next method called will be the |
|
33 |
/// applicationWillResignActive: of your UIApplicationDelegate object. |
|
34 |
- (void)customNativeAdWillPresentScreen:(nonnull GADCustomNativeAd *)nativeAd; |
|
35 |
|
|
36 |
/// Called just before dismissing a full screen view. |
|
37 |
- (void)customNativeAdWillDismissScreen:(nonnull GADCustomNativeAd *)nativeAd; |
|
38 |
|
|
39 |
/// Called just after dismissing a full screen view. Use this opportunity to restart anything you |
|
40 |
/// may have stopped as part of customNativeAdWillPresentScreen:. |
|
41 |
- (void)customNativeAdDidDismissScreen:(nonnull GADCustomNativeAd *)nativeAd; |
|
42 |
|
|
43 |
@end |