commit | author | age
|
96fe76
|
1 |
// |
L |
2 |
// GADAdMetadata.h |
|
3 |
// Google Mobile Ads SDK |
|
4 |
// |
|
5 |
// Copyright 2017 Google LLC. All rights reserved. |
|
6 |
// |
|
7 |
|
|
8 |
#import <Foundation/Foundation.h> |
|
9 |
|
|
10 |
/// Ad metadata key type. |
|
11 |
typedef NSString *GADAdMetadataKey NS_TYPED_ENUM; |
|
12 |
|
|
13 |
@protocol GADAdMetadataDelegate; |
|
14 |
|
|
15 |
/// Protocol for ads that provide ad metadata. |
|
16 |
@protocol GADAdMetadataProvider <NSObject> |
|
17 |
|
|
18 |
/// The ad's metadata. Use adMetadataDelegate to receive ad metadata change messages. |
|
19 |
@property(nonatomic, readonly, nullable) NSDictionary<GADAdMetadataKey, id> *adMetadata; |
|
20 |
|
|
21 |
/// Delegate for receiving ad metadata changes. |
|
22 |
@property(nonatomic, weak, nullable) id<GADAdMetadataDelegate> adMetadataDelegate; |
|
23 |
|
|
24 |
@end |
|
25 |
|
|
26 |
/// Delegate protocol for receiving ad metadata change messages from a GADAdMetadataProvider. |
|
27 |
@protocol GADAdMetadataDelegate <NSObject> |
|
28 |
|
|
29 |
/// Tells the delegate that the ad's metadata changed. Called when an ad loads and when a loaded |
|
30 |
/// ad's metadata changes. |
|
31 |
- (void)adMetadataDidChange:(nonnull id<GADAdMetadataProvider>)ad; |
|
32 |
|
|
33 |
@end |