iAd iOS 10.3 to 11.0 API Differences

ADBannerView_Deprecated.h
Declaration
From@property (nonatomic, copy) NSSet *requiredContentSizeIdentifiers
To@property (nonatomic, copy, nullable) NSSet *requiredContentSizeIdentifiers

Declaration
From@property (nonatomic, copy) NSString *currentContentSizeIdentifier
To@property (nonatomic, copy, nullable) NSString *currentContentSizeIdentifier

Declaration
From+ (CGSize)sizeFromBannerContentSizeIdentifier:(NSString *)contentSizeIdentifier
To+ (CGSize)sizeFromBannerContentSizeIdentifier:(nonnull NSString *)contentSizeIdentifier

Declaration
FromNSString *const ADBannerContentSizeIdentifier320x50
ToNSString *const _Nonnull ADBannerContentSizeIdentifier320x50

Declaration
FromNSString *const ADBannerContentSizeIdentifier480x32
ToNSString *const _Nonnull ADBannerContentSizeIdentifier480x32

Declaration
FromNSString *const ADBannerContentSizeIdentifierPortrait
ToNSString *const _Nonnull ADBannerContentSizeIdentifierPortrait

Declaration
FromNSString *const ADBannerContentSizeIdentifierLandscape
ToNSString *const _Nonnull ADBannerContentSizeIdentifierLandscape

ADBannerView.h
Modified ADErrorDomain
Declaration
FromNSString *const ADErrorDomain
ToNSString *const _Nonnull ADErrorDomain

Declaration
From- (instancetype)initWithAdType:(ADAdType)type
To- (nullable instancetype)initWithAdType:(ADAdType)type

Declaration
From@property (nonatomic, weak) id<ADBannerViewDelegate> delegate
To@property (nonatomic, weak, nullable) id<ADBannerViewDelegate> delegate

Declaration
From@property (nonatomic, copy) NSString *advertisingSection
To@property (nonatomic, copy, nullable) NSString *advertisingSection

Declaration
From- (void)bannerViewWillLoadAd:(ADBannerView *)banner
To- (void)bannerViewWillLoadAd:(nonnull ADBannerView *)banner

Declaration
From- (void)bannerViewDidLoadAd:(ADBannerView *)banner
To- (void)bannerViewDidLoadAd:(nonnull ADBannerView *)banner

Declaration
From- (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error
To- (void)bannerView:(nonnull ADBannerView *)banner didFailToReceiveAdWithError:(nonnull NSError *)error

Declaration
From- (BOOL)bannerViewActionShouldBegin:(ADBannerView *)banner willLeaveApplication:(BOOL)willLeave
To- (BOOL)bannerViewActionShouldBegin:(nonnull ADBannerView *)banner willLeaveApplication:(BOOL)willLeave

Declaration
From- (void)bannerViewActionDidFinish:(ADBannerView *)banner
To- (void)bannerViewActionDidFinish:(nonnull ADBannerView *)banner

ADClient.h
Declaration
From+ (ADClient *)sharedClient
To+ (nonnull ADClient *)sharedClient

Declaration
FromNSString *const ADClientErrorDomain
ToNSString *const _Nonnull ADClientErrorDomain

Declaration
From- (void)determineAppInstallationAttributionWithCompletionHandler:(void (^)(BOOL))completionHandler
To- (void)determineAppInstallationAttributionWithCompletionHandler:(nonnull void (^)(BOOL))completionHandler

Declaration
From- (void)lookupAdConversionDetails:(void (^)(NSDate *, NSDate *))completionHandler
To- (void)lookupAdConversionDetails:(nonnull void (^)(NSDate * _Nonnull, NSDate * _Nullable))completionHandler

Declaration
From- (void)requestAttributionDetailsWithBlock:(void (^)(NSDictionary *, NSError *))completionHandler
To- (void)requestAttributionDetailsWithBlock:(nonnull void (^)(NSDictionary<NSString *,NSObject *> * _Nullable, NSError * _Nullable))completionHandler

Declaration
From- (void)addClientToSegments:(NSArray *)segmentIdentifiers replaceExisting:(BOOL)replaceExisting
To- (void)addClientToSegments:(nonnull NSArray<NSString *> *)segmentIdentifiers replaceExisting:(BOOL)replaceExisting

ADInterstitialAd.h
Declaration
From@property (nonatomic, weak) id<ADInterstitialAdDelegate> delegate
To@property (nonatomic, weak, nullable) id<ADInterstitialAdDelegate> delegate

Declaration
From- (BOOL)presentInView:(UIView *)containerView
To- (BOOL)presentInView:(nonnull UIView *)containerView

Declaration
From- (void)presentFromViewController:(UIViewController *)viewController
To- (void)presentFromViewController:(nonnull UIViewController *)viewController

Declaration
From- (void)interstitialAdDidUnload:(ADInterstitialAd *)interstitialAd
To- (void)interstitialAdDidUnload:(nonnull ADInterstitialAd *)interstitialAd

Declaration
From- (void)interstitialAd:(ADInterstitialAd *)interstitialAd didFailWithError:(NSError *)error
To- (void)interstitialAd:(nonnull ADInterstitialAd *)interstitialAd didFailWithError:(nonnull NSError *)error

Declaration
From- (void)interstitialAdWillLoad:(ADInterstitialAd *)interstitialAd
To- (void)interstitialAdWillLoad:(nonnull ADInterstitialAd *)interstitialAd

Declaration
From- (void)interstitialAdDidLoad:(ADInterstitialAd *)interstitialAd
To- (void)interstitialAdDidLoad:(nonnull ADInterstitialAd *)interstitialAd

Declaration
From- (BOOL)interstitialAdActionShouldBegin:(ADInterstitialAd *)interstitialAd willLeaveApplication:(BOOL)willLeave
To- (BOOL)interstitialAdActionShouldBegin:(nonnull ADInterstitialAd *)interstitialAd willLeaveApplication:(BOOL)willLeave

Declaration
From- (void)interstitialAdActionDidFinish:(ADInterstitialAd *)interstitialAd
To- (void)interstitialAdActionDidFinish:(nonnull ADInterstitialAd *)interstitialAd

AVPlayerViewController_iAdPreroll.h
Declaration
From- (void)playPrerollAdWithCompletionHandler:(void (^)(NSError *))completionHandler
To- (void)playPrerollAdWithCompletionHandler:(nonnull void (^)(NSError * _Nullable))completionHandler

MPMoviePlayerController_iAdPreroll.h
Declaration
From- (void)playPrerollAdWithCompletionHandler:(void (^)(NSError *))completionHandler
To- (void)playPrerollAdWithCompletionHandler:(nonnull void (^)(NSError * _Nullable))completionHandler

UIViewControlleriAdAdditions.h
Declaration
From@property (nonatomic, readonly, retain) UIView *originalContentView
To@property (nonatomic, readonly, retain, nullable) UIView *originalContentView