text: //
  //  MPAdConfiguration.h
  //  MoPub
  //
  //  Copyright (c) 2012 MoPub, Inc. All rights reserved.
  //
  
  #import <Foundation/Foundation.h>
  #import "MPGlobal.h"
  
  enum {
      MPAdTypeUnknown = -1,
      MPAdTypeBanner = 0,
      MPAdTypeInterstitial = 1
  };
  typedef NSUInteger MPAdType;
  
  extern NSString * const kAdTypeHeaderKey;
  extern NSString * const kClickthroughHeaderKey;
  extern NSString * const kCustomSelectorHeaderKey;
  extern NSString * const kCustomEventClassNameHeaderKey;
  extern NSString * const kCustomEventClassDataHeaderKey;
  extern NSString * const kFailUrlHeaderKey;
  extern NSString * const kHeightHeaderKey;
  extern NSString * const kImpressionTrackerHeaderKey;
  extern NSString * const kInterceptLinksHeaderKey;
  extern NSString * const kLaunchpageHeaderKey;
  extern NSString * const kNativeSDKParametersHeaderKey;
  extern NSString * const kNetworkTypeHeaderKey;
  extern NSString * const kRefreshTimeHeaderKey;
  extern NSString * const kAdTimeoutHeaderKey;
  extern NSString * const kScrollableHeaderKey;
  extern NSString * const kWidthHeaderKey;
  extern NSString * const kDspCreativeIdKey;
  extern NSString * const kPrecacheRequiredKey;
  
  extern NSString * const kInterstitialAdTypeHeaderKey;
  extern NSString * const kOrientationTypeHeaderKey;
  
  extern NSString * const kAdTypeHtml;
  extern NSString * const kAdTypeInterstitial;
  extern NSString * const kAdTypeMraid;
  extern NSString * const kAdTypeClear;
  extern NSString * const kAdTypeNative;
  
  @interface MPAdConfiguration : NSObject
  
  @property (nonatomic, assign) MPAdType adType;
  @property (nonatomic, copy) NSString *networkType;
  @property (nonatomic, assign) CGSize preferredSize;
  @property (nonatomic, retain) NSURL *clickTrackingURL;
  @property (nonatomic, retain) NSURL *impressionTrackingURL;
  @property (nonatomic, retain) NSURL *failoverURL;
  @property (nonatomic, retain) NSURL *interceptURLPrefix;
  @property (nonatomic, assign) BOOL shouldInterceptLinks;
  @property (nonatomic, assign) BOOL scrollable;
  @property (nonatomic, assign) NSTimeInterval refreshInterval;
  @property (nonatomic, assign) NSTimeInterval adTimeoutInterval;
  @property (nonatomic, copy) NSData *adResponseData;
  @property (nonatomic, retain) NSDictionary *nativeSDKParameters;
  @property (nonatomic, copy) NSString *customSelectorName;
  @property (nonatomic, assign) Class customEventClass;
  @property (nonatomic, retain) NSDictionary *customEventClassData;
  @property (nonatomic, assign) MPInterstitialOrientationType orientationType;
  @property (nonatomic, copy) NSString *dspCreativeId;
  @property (nonatomic, assign) BOOL precacheRequired;
  @property (nonatomic, retain) NSDate *creationTimestamp;
  
  - (id)initWithHeaders:(NSDictionary *)headers data:(NSData *)data;
  
  - (BOOL)hasPreferredSize;
  - (NSString *)adResponseHTMLString;
  - (NSString *)clickDetectionURLPrefix;
  
  @end
  