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