commit | author | age
|
96fe76
|
1 |
// |
L |
2 |
// GADMediatedUnifiedNativeAdNotificationSource.h |
|
3 |
// Google Mobile Ads SDK |
|
4 |
// |
|
5 |
// Copyright 2017 Google LLC. All rights reserved. |
|
6 |
// |
|
7 |
|
|
8 |
#import <Foundation/Foundation.h> |
|
9 |
#import <GoogleMobileAds/Mediation/GADMediatedUnifiedNativeAd.h> |
|
10 |
|
|
11 |
/// Notifies the Google Mobile Ads SDK about the events performed by adapters. Adapters may perform |
|
12 |
/// some action (e.g. opening an in app browser or opening the iTunes store) when handling methods |
|
13 |
/// in GADMediatedUnifiedNativeAd. Adapters in such case should notify the Google Mobile Ads SDK by |
|
14 |
/// calling the relevant methods from this class. |
|
15 |
@interface GADMediatedUnifiedNativeAdNotificationSource : NSObject |
|
16 |
|
|
17 |
/// Called by the adapter when it has registered an impression on the tracked view. Adapter should |
|
18 |
/// only call this method if -[GADMAdNetworkAdapter handlesUserImpressions] returns YES. |
|
19 |
+ (void)mediatedNativeAdDidRecordImpression: |
|
20 |
(nonnull id<GADMediatedUnifiedNativeAd>)mediatedNativeAd; |
|
21 |
|
|
22 |
/// Called by the adapter when it has registered a user click on the tracked view. Adapter should |
|
23 |
/// only call this method if -[GADMAdNetworkAdapter handlesUserClicks] returns YES. |
|
24 |
+ (void)mediatedNativeAdDidRecordClick:(nonnull id<GADMediatedUnifiedNativeAd>)mediatedNativeAd; |
|
25 |
|
|
26 |
/// Must be called by the adapter just before mediatedNativeAd has opened an in-app modal screen. |
|
27 |
+ (void)mediatedNativeAdWillPresentScreen:(nonnull id<GADMediatedUnifiedNativeAd>)mediatedNativeAd; |
|
28 |
|
|
29 |
/// Must be called by the adapter just before the in-app modal screen opened by mediatedNativeAd is |
|
30 |
/// dismissed. |
|
31 |
+ (void)mediatedNativeAdWillDismissScreen:(nonnull id<GADMediatedUnifiedNativeAd>)mediatedNativeAd; |
|
32 |
|
|
33 |
/// Must be called by the adapter after the in-app modal screen opened by mediatedNativeAd is |
|
34 |
/// dismissed. |
|
35 |
+ (void)mediatedNativeAdDidDismissScreen:(nonnull id<GADMediatedUnifiedNativeAd>)mediatedNativeAd; |
|
36 |
|
|
37 |
#pragma mark - Mediated Native Video Ad Notifications |
|
38 |
|
|
39 |
/// Called by the adapter when native video playback has begun or resumed. |
|
40 |
+ (void)mediatedNativeAdDidPlayVideo:(nonnull id<GADMediatedUnifiedNativeAd>)mediatedNativeAd; |
|
41 |
|
|
42 |
/// Called by the adapter when native video playback has paused. |
|
43 |
+ (void)mediatedNativeAdDidPauseVideo:(nonnull id<GADMediatedUnifiedNativeAd>)mediatedNativeAd; |
|
44 |
|
|
45 |
/// Called by the adapter when native video playback has ended. |
|
46 |
+ (void)mediatedNativeAdDidEndVideoPlayback: |
|
47 |
(nonnull id<GADMediatedUnifiedNativeAd>)mediatedNativeAd; |
|
48 |
|
|
49 |
@end |