hank
2017-06-14 3f9b5125cd79f60e878a3f93708d1254048fd1fb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//
//  TWTRMoPubAdConfiguration.h
//  TwitterKit
//
//  Copyright © 2016 Twitter. All rights reserved.
//
 
#import <Foundation/Foundation.h>
 
NS_ASSUME_NONNULL_BEGIN
 
FOUNDATION_EXPORT NSString *const TWTRMoPubSampleAdUnitID;
 
/**
 *  Bridging class for configuring how to load your MoPub ad unit.
 */
@interface TWTRMoPubAdConfiguration : NSObject
 
/**
 *  Ad unit ID of the MoPub ad.
 */
@property (nonatomic, copy, readonly) NSString *adUnitID;
 
/**
 *  Keywords specified in comma-separated key-value pairs to provide
 *  better targetting of the ads. e.g. "marital:single,age:24"
 *  @see https://github.com/mopub/mopub-ios-sdk/blob/master/MoPubSDK/Native%20Ads/MPNativeAdRequestTargeting.h
 */
@property (nonatomic, copy, readonly, nullable) NSString *keywords;
 
- (instancetype)init NS_UNAVAILABLE;
 
/**
 *  Initializes a new MoPub ad configuration.
 *
 *  @param adUnitID The ad unit ID as configured in the MoPub dashboard
 *  @param keywords Keywords for better ad targeting
 *
 *  @return Fully initialized ad configuration.
 */
- (instancetype)initWithAdUnitID:(NSString *)adUnitID keywords:(nullable NSString *)keywords;
 
@end
 
NS_ASSUME_NONNULL_END