commit | author | age
|
96fe76
|
1 |
// |
L |
2 |
// GADMediationNativeAd.h |
|
3 |
// Google Mobile Ads SDK |
|
4 |
// |
|
5 |
// Copyright 2018 Google LLC. All rights reserved. |
|
6 |
// |
|
7 |
|
|
8 |
#import <GoogleMobileAds/GADAdLoader.h> |
|
9 |
#import <GoogleMobileAds/GADNativeAdImage.h> |
|
10 |
#import <GoogleMobileAds/Mediation/GADMediatedUnifiedNativeAd.h> |
|
11 |
#import <GoogleMobileAds/Mediation/GADMediationAd.h> |
|
12 |
#import <GoogleMobileAds/Mediation/GADMediationAdConfiguration.h> |
|
13 |
#import <GoogleMobileAds/Mediation/GADMediationAdEventDelegate.h> |
|
14 |
#import <UIKit/UIKit.h> |
|
15 |
|
|
16 |
/// Rendered native ad. |
|
17 |
@protocol GADMediationNativeAd <GADMediationAd, GADMediatedUnifiedNativeAd> |
|
18 |
|
|
19 |
@optional |
|
20 |
|
|
21 |
/// Indicates whether the ad handles user clicks. If this method returns YES, the ad must handle |
|
22 |
/// user clicks and notify the Google Mobile Ads SDK of clicks using |
|
23 |
/// -[GADMediationAdEventDelegate reportClick:]. If this method returns NO, the Google Mobile Ads |
|
24 |
/// SDK handles user clicks and notifies the ad of clicks using -[GADMediationNativeAd |
|
25 |
/// didRecordClickOnAssetWithName:view:viewController:]. |
|
26 |
- (BOOL)handlesUserClicks; |
|
27 |
|
|
28 |
/// Indicates whether the ad handles user impressions tracking. If this method returns YES, the |
|
29 |
/// Google Mobile Ads SDK will not track user impressions and the ad must notify the |
|
30 |
/// Google Mobile Ads SDK of impressions using -[GADMediationAdEventDelegate |
|
31 |
/// reportImpression:]. If this method returns NO, the Google Mobile Ads SDK tracks user impressions |
|
32 |
/// and notifies the ad of impressions using -[GADMediationNativeAd didRecordImpression:]. |
|
33 |
- (BOOL)handlesUserImpressions; |
|
34 |
@end |
|
35 |
|
|
36 |
/// Native ad configuration. |
|
37 |
@interface GADMediationNativeAdConfiguration : GADMediationAdConfiguration |
|
38 |
|
|
39 |
/// Additional options configured by the publisher for requesting a native ad. |
|
40 |
@property(nonatomic, readonly, nonnull) NSArray<GADAdLoaderOptions *> *options; |
|
41 |
|
|
42 |
@end |