diff --git a/ios/documentation/changelog.md b/ios/documentation/changelog.md
index 949e5276..3573afcf 100644
--- a/ios/documentation/changelog.md
+++ b/ios/documentation/changelog.md
@@ -1,5 +1,6 @@
# Change Log
+v2.5.0 Updated to Admob iOS SDK to 7.49.0
v2.4.0 Support the Facebook Audience Network adapter
iOS integration guide: https://developers.google.com/admob/ios/mediation/facebook
diff --git a/ios/documentation/index.md b/ios/documentation/index.md
index e96b7df8..0eddabd4 100644
--- a/ios/documentation/index.md
+++ b/ios/documentation/index.md
@@ -16,7 +16,9 @@ The Google AdMob Ads SDK has the following requirements:
* An AdMob site ID.
* Xcode 6.4 or later.
* Runtime of iOS 7.1 or later.
-
+* If using module 2.5.0+, add following key in tiapp.xml, inside ios plist section.
+ GADIsAdManagerApp
+
## Accessing the Ti.Admob Module
To access this module from JavaScript, you would do the following:
diff --git a/ios/manifest b/ios/manifest
index 572b3e5f..28007ff4 100644
--- a/ios/manifest
+++ b/ios/manifest
@@ -2,7 +2,7 @@
# this is your module manifest and used by Titanium
# during compilation, packaging, distribution, etc.
#
-version: 2.4.0
+version: 2.5.0
architectures: armv7 i386 x86_64 arm64
description: AdMob module for ad delivery via AdMob
author: Jeff Haynie, Stephen Tramer, Jasper Kennis, Jon Alter and Hans Knoechel
diff --git a/ios/platform/GoogleMobileAds.framework/GoogleMobileAds b/ios/platform/GoogleMobileAds.framework/GoogleMobileAds
index ccdfefcc..b15dc1f7 100644
Binary files a/ios/platform/GoogleMobileAds.framework/GoogleMobileAds and b/ios/platform/GoogleMobileAds.framework/GoogleMobileAds differ
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/DFPBannerView.h b/ios/platform/GoogleMobileAds.framework/Headers/DFPBannerView.h
index 8d328950..3087687d 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/DFPBannerView.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/DFPBannerView.h
@@ -2,49 +2,48 @@
// DFPBannerView.h
// Google Mobile Ads SDK
//
-// Copyright 2012 Google Inc. All rights reserved.
+// Copyright 2012 Google LLC. All rights reserved.
//
#import
+#import
#import
#import
#import
-#import
#import
#import
-GAD_ASSUME_NONNULL_BEGIN
-
/// The delegate of a GADAdLoader object must conform to this protocol to receive DFPBannerViews.
-@protocol DFPBannerAdLoaderDelegate
+@protocol DFPBannerAdLoaderDelegate
/// Asks the delegate which banner ad sizes should be requested.
-- (NSArray *)validBannerSizesForAdLoader:(GADAdLoader *)adLoader;
+- (nonnull NSArray *)validBannerSizesForAdLoader:(nonnull GADAdLoader *)adLoader;
-/// Tells the delegate that a DFP banner ad was received.
-- (void)adLoader:(GADAdLoader *)adLoader didReceiveDFPBannerView:(DFPBannerView *)bannerView;
+/// Tells the delegate that a Google Ad Manager banner ad was received.
+- (void)adLoader:(nonnull GADAdLoader *)adLoader
+ didReceiveDFPBannerView:(nonnull DFPBannerView *)bannerView;
@end
-/// The view that displays DoubleClick For Publishers banner ads.
+/// The view that displays Ad Manager banner ads.
///
/// To request this ad type using GADAdLoader, you need to pass kGADAdLoaderAdTypeDFPBanner (see
/// GADAdLoaderAdTypes.h) to the |adTypes| parameter in GADAdLoader's initializer method. If you
/// request this ad type, your delegate must conform to the DFPBannerAdLoaderDelegate protocol.
@interface DFPBannerView : GADBannerView
-/// Required value created on the DFP website. Create a new ad unit for every unique placement of an
-/// ad in your application. Set this to the ID assigned for this placement. Ad units are important
-/// for targeting and statistics.
+/// Required value created on the Ad Manager website. Create a new ad unit for every unique
+/// placement of an ad in your application. Set this to the ID assigned for this placement. Ad units
+/// are important for targeting and statistics.
///
-/// Example DFP ad unit ID: @"/6499/example/banner"
-@property(nonatomic, copy, GAD_NULLABLE) NSString *adUnitID;
+/// Example Ad Manager ad unit ID: @"/6499/example/banner"
+@property(nonatomic, copy, nullable) NSString *adUnitID;
/// Optional delegate that is notified when creatives send app events.
-@property(nonatomic, weak, GAD_NULLABLE) IBOutlet id appEventDelegate;
+@property(nonatomic, weak, nullable) IBOutlet id appEventDelegate;
/// Optional delegate that is notified when creatives cause the banner to change size.
-@property(nonatomic, weak, GAD_NULLABLE) IBOutlet id adSizeDelegate;
+@property(nonatomic, weak, nullable) IBOutlet id adSizeDelegate;
/// Optional array of NSValue encoded GADAdSize structs, specifying all valid sizes that are
/// appropriate for this slot. Never create your own GADAdSize directly. Use one of the predefined
@@ -61,21 +60,18 @@ GAD_ASSUME_NONNULL_BEGIN
///
/// bannerView.validAdSizes = validSizes;
///
-@property(nonatomic, copy, GAD_NULLABLE) NSArray *validAdSizes;
-
-/// Correlator object for correlating this object to other ad objects.
-@property(nonatomic, strong, GAD_NULLABLE) GADCorrelator *correlator;
+@property(nonatomic, copy, nullable) NSArray *validAdSizes;
/// Indicates that the publisher will record impressions manually when the ad becomes visible to the
/// user.
-@property(nonatomic, assign) BOOL enableManualImpressions;
+@property(nonatomic) BOOL enableManualImpressions;
/// Optional delegate object for custom rendered ads.
-@property(nonatomic, weak, GAD_NULLABLE)
- IBOutlet id customRenderedBannerViewDelegate;
+@property(nonatomic, weak, nullable) IBOutlet id
+ customRenderedBannerViewDelegate;
/// Video controller for controlling video rendered by this ad view.
-@property(nonatomic, strong, readonly) GADVideoController *videoController;
+@property(nonatomic, readonly, nonnull) GADVideoController *videoController;
/// If you've set enableManualImpressions to YES, call this method when the ad is visible.
- (void)recordImpression;
@@ -87,7 +83,7 @@ GAD_ASSUME_NONNULL_BEGIN
///
/// @param adOptions An array of GADAdLoaderOptions objects. The array is deep copied and option
/// objects cannot be modified after calling this method.
-- (void)setAdOptions:(NSArray *)adOptions;
+- (void)setAdOptions:(nonnull NSArray *)adOptions;
#pragma mark Deprecated
@@ -100,11 +96,9 @@ GAD_ASSUME_NONNULL_BEGIN
///
/// GADAdSize size1 = kGADAdSizeBanner;
/// GADAdSize size2 = kGADAdSizeLargeBanner;
-/// [bannerView setValidAdSizesWithSizes:&size1, &size2, NULL];
+/// [bannerView setValidAdSizesWithSizes:&size1, &size2, nil];
///
-- (void)setValidAdSizesWithSizes:(GADAdSize *)firstSize, ... NS_REQUIRES_NIL_TERMINATION
+- (void)setValidAdSizesWithSizes:(nullable GADAdSize *)firstSize, ... NS_REQUIRES_NIL_TERMINATION
GAD_DEPRECATED_MSG_ATTRIBUTE("Use validAdSizes property.");
@end
-
-GAD_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/DFPBannerViewOptions.h b/ios/platform/GoogleMobileAds.framework/Headers/DFPBannerViewOptions.h
index eff98fbd..ff97dadd 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/DFPBannerViewOptions.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/DFPBannerViewOptions.h
@@ -2,7 +2,7 @@
// DFPBannerViewOptions.h
// Google Mobile Ads SDK
//
-// Copyright © 2016 Google Inc. All rights reserved.
+// Copyright 2016 Google LLC. All rights reserved.
//
#import
@@ -10,20 +10,16 @@
#import
#import
-GAD_ASSUME_NONNULL_BEGIN
-
/// Ad loader options for banner ads.
@interface DFPBannerViewOptions : GADAdLoaderOptions
/// Optional delegate that is notified if the loaded banner sends app events.
-@property(nonatomic, weak, GAD_NULLABLE) id appEventDelegate;
+@property(nonatomic, weak, nullable) id appEventDelegate;
/// Optional delegate that is notified if the loaded banner changes size.
-@property(nonatomic, weak, GAD_NULLABLE) id adSizeDelegate;
+@property(nonatomic, weak, nullable) id adSizeDelegate;
/// Whether the publisher will record impressions manually when the ad becomes visible to the user.
@property(nonatomic, assign) BOOL enableManualImpressions;
@end
-
-GAD_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/DFPCustomRenderedAd.h b/ios/platform/GoogleMobileAds.framework/Headers/DFPCustomRenderedAd.h
index 5c2b0abb..0c469c8a 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/DFPCustomRenderedAd.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/DFPCustomRenderedAd.h
@@ -2,23 +2,19 @@
// DFPCustomRenderedAd.h
// Google Mobile Ads SDK
//
-// Copyright 2014 Google Inc. All rights reserved.
+// Copyright 2014 Google LLC. All rights reserved.
//
#import
-#import
-
-GAD_ASSUME_NONNULL_BEGIN
-
/// Custom rendered ad. Your application renders the ad.
@interface DFPCustomRenderedAd : NSObject
/// The ad's HTML.
-@property(nonatomic, readonly, copy) NSString *adHTML;
+@property(nonatomic, readonly, nonnull) NSString *adHTML;
/// The base URL of the ad's HTML.
-@property(nonatomic, readonly, copy) NSURL *adBaseURL;
+@property(nonatomic, readonly, nonnull) NSURL *adBaseURL;
/// Call this method when the user clicks the ad.
- (void)recordClick;
@@ -27,8 +23,6 @@ GAD_ASSUME_NONNULL_BEGIN
- (void)recordImpression;
/// Call this method after the ad has been rendered in a UIView object.
-- (void)finishedRenderingAdView:(UIView *)view;
+- (void)finishedRenderingAdView:(nonnull UIView *)view;
@end
-
-GAD_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/DFPCustomRenderedBannerViewDelegate.h b/ios/platform/GoogleMobileAds.framework/Headers/DFPCustomRenderedBannerViewDelegate.h
index e15b89eb..22d23075 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/DFPCustomRenderedBannerViewDelegate.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/DFPCustomRenderedBannerViewDelegate.h
@@ -2,27 +2,21 @@
// DFPCustomRenderedBannerViewDelegate.h
// Google Mobile Ads SDK
//
-// Copyright 2014 Google Inc. All rights reserved.
+// Copyright 2014 Google LLC. All rights reserved.
//
#import
-#import
-
@class DFPBannerView;
@class DFPCustomRenderedAd;
-GAD_ASSUME_NONNULL_BEGIN
-
/// The DFPCustomRenderedAd banner view delegate protocol for notifying the delegate of changes to
/// custom rendered banners.
-@protocol DFPCustomRenderedBannerViewDelegate
+@protocol DFPCustomRenderedBannerViewDelegate
/// Called after ad data has been received. You must construct a banner from |customRenderedAd| and
/// call the |customRenderedAd| object's finishedRenderingAdView: when the ad has been rendered.
-- (void)bannerView:(DFPBannerView *)bannerView
- didReceiveCustomRenderedAd:(DFPCustomRenderedAd *)customRenderedAd;
+- (void)bannerView:(nonnull DFPBannerView *)bannerView
+ didReceiveCustomRenderedAd:(nonnull DFPCustomRenderedAd *)customRenderedAd;
@end
-
-GAD_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/DFPCustomRenderedInterstitialDelegate.h b/ios/platform/GoogleMobileAds.framework/Headers/DFPCustomRenderedInterstitialDelegate.h
index 0f1f4a8a..0df690ef 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/DFPCustomRenderedInterstitialDelegate.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/DFPCustomRenderedInterstitialDelegate.h
@@ -2,28 +2,23 @@
// DFPCustomRenderedInterstitialDelegate.h
// Google Mobile Ads SDK
//
-// Copyright 2014 Google Inc. All rights reserved.
+// Copyright 2014 Google LLC. All rights reserved.
//
#import
-
#import
@class DFPCustomRenderedAd;
@class DFPInterstitial;
-GAD_ASSUME_NONNULL_BEGIN
-
/// The DFPCustomRenderedAd interstitial delegate protocol for notifying the delegate of changes to
/// custom rendered interstitials.
-@protocol DFPCustomRenderedInterstitialDelegate
+@protocol DFPCustomRenderedInterstitialDelegate
/// Called after ad data has been received. You must construct an interstitial from
/// |customRenderedAd| and call the |customRenderedAd| object's finishedRenderingAdView: method when
/// the ad has been rendered.
-- (void)interstitial:(DFPInterstitial *)interstitial
- didReceiveCustomRenderedAd:(DFPCustomRenderedAd *)customRenderedAd;
+- (void)interstitial:(nonnull DFPInterstitial *)interstitial
+ didReceiveCustomRenderedAd:(nonnull DFPCustomRenderedAd *)customRenderedAd;
@end
-
-GAD_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/DFPInterstitial.h b/ios/platform/GoogleMobileAds.framework/Headers/DFPInterstitial.h
index e3af0d21..211efb92 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/DFPInterstitial.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/DFPInterstitial.h
@@ -2,38 +2,29 @@
// DFPInterstitial.h
// Google Mobile Ads SDK
//
-// Copyright 2012 Google Inc. All rights reserved.
+// Copyright 2012 Google LLC. All rights reserved.
//
#import
#import
-#import
#import
-#import
-GAD_ASSUME_NONNULL_BEGIN
-
-/// DoubleClick For Publishers interstitial ad, a full-screen advertisement shown at natural
+/// Google Ad Manager interstitial ad, a full-screen advertisement shown at natural
/// transition points in your application such as between game levels or news stories.
@interface DFPInterstitial : GADInterstitial
-/// Required value created on the DFP website. Create a new ad unit for every unique placement of an
-/// ad in your application. Set this to the ID assigned for this placement. Ad units are important
-/// for targeting and stats.
+/// Initializes an interstitial with an ad unit created on the Ad Manager website. Create a new ad
+/// unit for every unique placement of an ad in your application. Set this to the ID assigned for
+/// this placement. Ad units are important for targeting and statistics.
///
-/// Example DFP ad unit ID: @"/6499/example/interstitial"
-@property(nonatomic, readonly, copy) NSString *adUnitID;
-
-/// Correlator object for correlating this object to other ad objects.
-@property(nonatomic, strong, GAD_NULLABLE) GADCorrelator *correlator;
+/// Example Ad Manager ad unit ID: @"/6499/example/interstitial"
+- (nonnull instancetype)initWithAdUnitID:(nonnull NSString *)adUnitID NS_DESIGNATED_INITIALIZER;
/// Optional delegate that is notified when creatives send app events.
-@property(nonatomic, weak, GAD_NULLABLE) id appEventDelegate;
+@property(nonatomic, weak, nullable) id appEventDelegate;
/// Optional delegate object for custom rendered ads.
-@property(nonatomic, weak, GAD_NULLABLE)
- id customRenderedInterstitialDelegate;
+@property(nonatomic, weak, nullable) id
+ customRenderedInterstitialDelegate;
@end
-
-GAD_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/DFPRequest.h b/ios/platform/GoogleMobileAds.framework/Headers/DFPRequest.h
index 08f070f1..20d4d129 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/DFPRequest.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/DFPRequest.h
@@ -2,36 +2,26 @@
// DFPRequest.h
// Google Mobile Ads SDK
//
-// Copyright 2014 Google Inc. All rights reserved.
+// Copyright 2014 Google LLC. All rights reserved.
//
#import
-
#import
#import
-GAD_ASSUME_NONNULL_BEGIN
-
/// Add this constant to the testDevices property's array to receive test ads on the simulator.
-GAD_EXTERN const id kDFPSimulatorID;
+GAD_EXTERN const id _Nonnull kDFPSimulatorID;
/// Specifies optional parameters for ad requests.
@interface DFPRequest : GADRequest
/// Publisher provided user ID.
-@property(nonatomic, copy, GAD_NULLABLE) NSString *publisherProvidedID;
+@property(nonatomic, copy, nullable) NSString *publisherProvidedID;
/// Array of strings used to exclude specified categories in ad results.
-@property(nonatomic, copy, GAD_NULLABLE) NSArray *categoryExclusions;
+@property(nonatomic, copy, nullable) NSArray *categoryExclusions;
/// Key-value pairs used for custom targeting.
-@property(nonatomic, copy, GAD_NULLABLE) NSDictionary *customTargeting;
-
-/// This API is deprecated and a no-op, use an instance of GADCorrelator set on DFPInterstitial or
-/// DFPBannerView objects to correlate requests.
-+ (void)updateCorrelator GAD_DEPRECATED_MSG_ATTRIBUTE(
- "Set GADCorrelator objects on your ads instead. This method no longer affects ad correlation.");
+@property(nonatomic, copy, nullable) NSDictionary *customTargeting;
@end
-
-GAD_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADAdChoicesView.h b/ios/platform/GoogleMobileAds.framework/Headers/GADAdChoicesView.h
index c9bab806..82e820e5 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADAdChoicesView.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADAdChoicesView.h
@@ -2,15 +2,11 @@
// GADAdChoicesView.h
// Google Mobile Ads SDK
//
-// Copyright 2016 Google Inc. All rights reserved.
+// Copyright 2016 Google LLC. All rights reserved.
//
-#import
-
-#import
#import
-
-GAD_ASSUME_NONNULL_BEGIN
+#import
/// Displays AdChoices content.
///
@@ -19,7 +15,4 @@ GAD_ASSUME_NONNULL_BEGIN
/// the GADAdChoicesView. By default, AdChoices is placed in the top right corner of
/// GADNativeAppInstallAdView and GADNativeContentAdView.
@interface GADAdChoicesView : UIView
-
@end
-
-GAD_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADAdFormat.h b/ios/platform/GoogleMobileAds.framework/Headers/GADAdFormat.h
new file mode 100644
index 00000000..07933c94
--- /dev/null
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADAdFormat.h
@@ -0,0 +1,14 @@
+//
+// GADAdFormat.h
+// Google Mobile Ads SDK
+//
+// Copyright 2018 Google LLC. All rights reserved.
+//
+
+/// Requested ad format.
+typedef NS_ENUM(NSInteger, GADAdFormat) {
+ GADAdFormatBanner, ///< Banner.
+ GADAdFormatInterstitial, ///< Interstitial.
+ GADAdFormatRewarded, ///< Rewarded.
+ GADAdFormatNative, ///< Native.
+};
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADAdLoader.h b/ios/platform/GoogleMobileAds.framework/Headers/GADAdLoader.h
index f5721616..1520a8a7 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADAdLoader.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADAdLoader.h
@@ -2,19 +2,16 @@
// GADAdLoader.h
// Google Mobile Ads SDK
//
-// Copyright 2015 Google Inc. All rights reserved.
+// Copyright 2015 Google LLC. All rights reserved.
//
#import
-#import
-
#import
#import
#import
#import
#import
-
-GAD_ASSUME_NONNULL_BEGIN
+#import
/// Ad loader options base class. See each ad type's header for available GADAdLoaderOptions
/// subclasses.
@@ -26,10 +23,10 @@ GAD_ASSUME_NONNULL_BEGIN
/// Object notified when an ad request succeeds or fails. Must conform to requested ad types'
/// delegate protocols.
-@property(nonatomic, weak, GAD_NULLABLE) id delegate;
+@property(nonatomic, weak, nullable) id delegate;
/// The ad loader's ad unit ID.
-@property(nonatomic, readonly) NSString *adUnitID;
+@property(nonatomic, readonly, nonnull) NSString *adUnitID;
/// Indicates whether the ad loader is loading.
@property(nonatomic, getter=isLoading, readonly) BOOL loading;
@@ -38,16 +35,14 @@ GAD_ASSUME_NONNULL_BEGIN
///
/// @param rootViewController The root view controller is used to present ad click actions.
/// @param adTypes An array of ad types. See GADAdLoaderAdTypes.h for available ad types.
-/// @param options An array of GADAdLoaderOptions objects to configure how ads are loaded, or nil to
-/// use default options. See each ad type's header for available GADAdLoaderOptions subclasses.
-- (instancetype)initWithAdUnitID:(NSString *)adUnitID
- rootViewController:(UIViewController *GAD_NULLABLE_TYPE)rootViewController
- adTypes:(NSArray *)adTypes
- options:(NSArray *GAD_NULLABLE_TYPE)options;
+/// @param options An array of GADAdLoaderOptions objects to configure how ads are loaded, or nil
+/// to use default options. See each ad type's header for available GADAdLoaderOptions subclasses.
+- (nonnull instancetype)initWithAdUnitID:(nonnull NSString *)adUnitID
+ rootViewController:(nullable UIViewController *)rootViewController
+ adTypes:(nonnull NSArray *)adTypes
+ options:(nullable NSArray *)options;
/// Loads the ad and informs the delegate of the outcome.
-- (void)loadRequest:(GADRequest *GAD_NULLABLE_TYPE)request;
+- (void)loadRequest:(nullable GADRequest *)request;
@end
-
-GAD_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADAdLoaderAdTypes.h b/ios/platform/GoogleMobileAds.framework/Headers/GADAdLoaderAdTypes.h
index a99a5d49..e280e569 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADAdLoaderAdTypes.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADAdLoaderAdTypes.h
@@ -2,40 +2,35 @@
// GADAdLoaderAdTypes.h
// Google Mobile Ads SDK
//
-// Copyright 2015 Google Inc. All rights reserved.
+// Copyright 2015 Google LLC. All rights reserved.
//
#import
-
#import
-GAD_ASSUME_NONNULL_BEGIN
-
-typedef NSString *GADAdLoaderAdType GAD_STRING_ENUM;
+typedef NSString *GADAdLoaderAdType NS_STRING_ENUM;
/// Use with GADAdLoader to request native app install ads. To receive ads, the ad loader's delegate
/// must conform to the GADNativeAppInstallAdLoaderDelegate protocol. See GADNativeAppInstallAd.h.
///
/// See GADNativeAdImageAdLoaderOptions.h for ad loader image options.
-GAD_EXTERN GADAdLoaderAdType const kGADAdLoaderAdTypeNativeAppInstall;
+GAD_EXTERN GADAdLoaderAdType _Nonnull const kGADAdLoaderAdTypeNativeAppInstall;
/// Use with GADAdLoader to request native content ads. To receive ads, the ad loader's delegate
/// must conform to the GADNativeContentAdLoaderDelegate protocol. See GADNativeContentAd.h.
///
/// See GADNativeAdImageAdLoaderOptions.h for ad loader image options.
-GAD_EXTERN GADAdLoaderAdType const kGADAdLoaderAdTypeNativeContent;
+GAD_EXTERN GADAdLoaderAdType _Nonnull const kGADAdLoaderAdTypeNativeContent;
/// Use with GADAdLoader to request native custom template ads. To receive ads, the ad loader's
/// delegate must conform to the GADNativeCustomTemplateAdLoaderDelegate protocol. See
/// GADNativeCustomTemplateAd.h.
-GAD_EXTERN GADAdLoaderAdType const kGADAdLoaderAdTypeNativeCustomTemplate;
+GAD_EXTERN GADAdLoaderAdType _Nonnull const kGADAdLoaderAdTypeNativeCustomTemplate;
-/// Use with GADAdLoader to request DFP banner ads. To receive ads, the ad loader's delegate must
-/// conform to the DFPBannerAdLoaderDelegate protocol. See DFPBannerView.h.
-GAD_EXTERN GADAdLoaderAdType const kGADAdLoaderAdTypeDFPBanner;
+/// Use with GADAdLoader to request Google Ad Manager banner ads. To receive ads, the ad loader's
+/// delegate must conform to the DFPBannerAdLoaderDelegate protocol. See DFPBannerView.h.
+GAD_EXTERN GADAdLoaderAdType _Nonnull const kGADAdLoaderAdTypeDFPBanner;
/// Use with GADAdLoader to request native ads. To receive ads, the ad loader's delegate must
/// conform to the GADUnifiedNativeAdLoaderDelegate protocol. See GADUnifiedNativeAd.h.
-GAD_EXTERN GADAdLoaderAdType const kGADAdLoaderAdTypeUnifiedNative;
-
-GAD_ASSUME_NONNULL_END
+GAD_EXTERN GADAdLoaderAdType _Nonnull const kGADAdLoaderAdTypeUnifiedNative;
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADAdLoaderDelegate.h b/ios/platform/GoogleMobileAds.framework/Headers/GADAdLoaderDelegate.h
index a72a95f6..ab98330a 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADAdLoaderDelegate.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADAdLoaderDelegate.h
@@ -2,30 +2,26 @@
// GADAdLoaderDelegate.h
// Google Mobile Ads SDK
//
-// Copyright 2015 Google Inc. All rights reserved.
+// Copyright 2015 Google LLC. All rights reserved.
//
#import
-
#import
#import
@class GADAdLoader;
-GAD_ASSUME_NONNULL_BEGIN
-
/// Base ad loader delegate protocol. Ad types provide extended protocols that declare methods to
/// handle successful ad loads.
-@protocol GADAdLoaderDelegate
+@protocol GADAdLoaderDelegate
/// Called when adLoader fails to load an ad.
-- (void)adLoader:(GADAdLoader *)adLoader didFailToReceiveAdWithError:(GADRequestError *)error;
+- (void)adLoader:(nonnull GADAdLoader *)adLoader
+ didFailToReceiveAdWithError:(nonnull GADRequestError *)error;
@optional
/// Called after adLoader has finished loading.
-- (void)adLoaderDidFinishLoading:(GADAdLoader *)adLoader;
+- (void)adLoaderDidFinishLoading:(nonnull GADAdLoader *)adLoader;
@end
-
-GAD_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADAdMetadataKeys.h b/ios/platform/GoogleMobileAds.framework/Headers/GADAdMetadataKeys.h
new file mode 100644
index 00000000..981a2219
--- /dev/null
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADAdMetadataKeys.h
@@ -0,0 +1,12 @@
+//
+// GADAdMetadataKeys.h
+// Google Mobile Ads SDK
+//
+// Copyright 2017 Google LLC. All rights reserved.
+//
+
+#import
+#import
+#import
+
+typedef NSString *GADAdMetadataKey NS_STRING_ENUM;
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADAdNetworkExtras.h b/ios/platform/GoogleMobileAds.framework/Headers/GADAdNetworkExtras.h
index 55c62f13..c78380be 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADAdNetworkExtras.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADAdNetworkExtras.h
@@ -2,21 +2,16 @@
// GADAdNetworkExtras.h
// Google Mobile Ads SDK
//
-// Copyright 2012 Google Inc. All rights reserved.
+// Copyright 2012 Google LLC. All rights reserved.
//
#import
-
#import
-GAD_ASSUME_NONNULL_BEGIN
-
/// An object implementing this protocol contains information set by the publisher on the client
/// device for a particular ad network.
///
/// Ad networks should create an 'extras' object implementing this protocol for their publishers to
/// use.
-@protocol GADAdNetworkExtras
+@protocol GADAdNetworkExtras
@end
-
-GAD_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADAdReward.h b/ios/platform/GoogleMobileAds.framework/Headers/GADAdReward.h
index 38aeefb5..953592a9 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADAdReward.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADAdReward.h
@@ -2,29 +2,24 @@
// GADAdReward.h
// Google Mobile Ads SDK
//
-// Copyright 2015 Google Inc. All rights reserved.
+// Copyright 2015 Google LLC. All rights reserved.
//
#import
-
#import
-GAD_ASSUME_NONNULL_BEGIN
-
/// Reward information for GADRewardBasedVideoAd ads.
@interface GADAdReward : NSObject
/// Type of the reward.
-@property(nonatomic, readonly, copy) NSString *type;
+@property(nonatomic, readonly, nonnull) NSString *type;
/// Amount rewarded to the user.
-@property(nonatomic, readonly, copy) NSDecimalNumber *amount;
+@property(nonatomic, readonly, nonnull) NSDecimalNumber *amount;
-/// Returns an initialized GADAdReward with the provided reward type and reward amount. rewardType
-/// and rewardAmount must not be nil.
-- (instancetype)initWithRewardType:(NSString *)rewardType
- rewardAmount:(NSDecimalNumber *)rewardAmount NS_DESIGNATED_INITIALIZER;
+/// Returns an initialized GADAdReward with the provided reward type and reward amount.
+- (nonnull instancetype)initWithRewardType:(nonnull NSString *)rewardType
+ rewardAmount:(nonnull NSDecimalNumber *)rewardAmount
+ NS_DESIGNATED_INITIALIZER;
@end
-
-GAD_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADAdSize.h b/ios/platform/GoogleMobileAds.framework/Headers/GADAdSize.h
index c92b767d..c2f3cdca 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADAdSize.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADAdSize.h
@@ -2,15 +2,12 @@
// GADAdSize.h
// Google Mobile Ads SDK
//
-// Copyright 2012 Google Inc. All rights reserved.
+// Copyright 2012 Google LLC. All rights reserved.
//
#import
-#import
-
#import
-
-GAD_ASSUME_NONNULL_BEGIN
+#import
/// A valid GADAdSize is considered to be one of the predefined GADAdSize constants or a GADAdSize
/// constructed by GADAdSizeFromCGSize, GADAdSizeFullWidthPortraitWithHeight,
@@ -52,11 +49,11 @@ GAD_EXTERN GADAdSize const kGADAdSizeLeaderboard;
GAD_EXTERN GADAdSize const kGADAdSizeSkyscraper;
/// An ad size that spans the full width of the application in portrait orientation. The height is
-/// typically 50 pixels on an iPhone/iPod UI, and 90 pixels tall on an iPad UI.
+/// typically 50 points on an iPhone/iPod UI, and 90 points tall on an iPad UI.
GAD_EXTERN GADAdSize const kGADAdSizeSmartBannerPortrait;
/// An ad size that spans the full width of the application in landscape orientation. The height is
-/// typically 32 pixels on an iPhone/iPod UI, and 90 pixels tall on an iPad UI.
+/// typically 32 points on an iPhone/iPod UI, and 90 points tall on an iPad UI.
GAD_EXTERN GADAdSize const kGADAdSizeSmartBannerLandscape;
/// An ad size that spans the full width of its container, with a height dynamically determined by
@@ -97,13 +94,13 @@ GAD_EXTERN BOOL IsGADAdSizeValid(GADAdSize size);
GAD_EXTERN BOOL GADAdSizeIsFluid(GADAdSize size);
/// Returns a NSString describing the provided GADAdSize.
-GAD_EXTERN NSString *NSStringFromGADAdSize(GADAdSize size);
+GAD_EXTERN NSString *_Nonnull NSStringFromGADAdSize(GADAdSize size);
/// Returns an NSValue representing the GADAdSize.
-GAD_EXTERN NSValue *NSValueFromGADAdSize(GADAdSize size);
+GAD_EXTERN NSValue *_Nonnull NSValueFromGADAdSize(GADAdSize size);
/// Returns a GADAdSize from an NSValue. Returns kGADAdSizeInvalid if the value is not a GADAdSize.
-GAD_EXTERN GADAdSize GADAdSizeFromNSValue(NSValue *value);
+GAD_EXTERN GADAdSize GADAdSizeFromNSValue(NSValue *_Nonnull value);
#pragma mark Deprecated Macros
@@ -113,5 +110,3 @@ GAD_EXTERN GADAdSize GADAdSizeFromNSValue(NSValue *value);
#define GAD_SIZE_468x60 CGSizeFromGADAdSize(kGADAdSizeFullBanner)
#define GAD_SIZE_728x90 CGSizeFromGADAdSize(kGADAdSizeLeaderboard)
#define GAD_SIZE_120x600 CGSizeFromGADAdSize(kGADAdSizeSkyscraper)
-
-GAD_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADAdSizeDelegate.h b/ios/platform/GoogleMobileAds.framework/Headers/GADAdSizeDelegate.h
index ce82adce..c32e8616 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADAdSizeDelegate.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADAdSizeDelegate.h
@@ -2,25 +2,20 @@
// GADAdSizeDelegate.h
// Google Mobile Ads SDK
//
-// Copyright 2012 Google Inc. All rights reserved.
+// Copyright 2012 Google LLC. All rights reserved.
//
#import
-
#import
#import
@class GADBannerView;
-GAD_ASSUME_NONNULL_BEGIN
-
-/// The class implementing this protocol will be notified when the DFPBannerView changes ad size.
-/// Any views that may be affected by the banner size change will have time to adjust.
-@protocol GADAdSizeDelegate
+/// The class implementing this protocol will be notified when the GADBannerView's ad content
+/// changes size. Any views that may be affected by the banner size change will have time to adjust.
+@protocol GADAdSizeDelegate
/// Called before the ad view changes to the new size.
-- (void)adView:(GADBannerView *)bannerView willChangeAdSizeTo:(GADAdSize)size;
+- (void)adView:(nonnull GADBannerView *)bannerView willChangeAdSizeTo:(GADAdSize)size;
@end
-
-GAD_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADAppEventDelegate.h b/ios/platform/GoogleMobileAds.framework/Headers/GADAppEventDelegate.h
index a9f79cf1..e66c9cc2 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADAppEventDelegate.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADAppEventDelegate.h
@@ -2,34 +2,29 @@
// GADAppEventDelegate.h
// Google Mobile Ads SDK
//
-// Copyright 2012 Google Inc. All rights reserved.
+// Copyright 2012 Google LLC. All rights reserved.
//
#import
-
#import
@class GADBannerView;
@class GADInterstitial;
-GAD_ASSUME_NONNULL_BEGIN
-
/// Implement your app event within these methods. The delegate will be notified when the SDK
/// receives an app event message from the ad.
-@protocol GADAppEventDelegate
+@protocol GADAppEventDelegate
@optional
/// Called when the banner receives an app event.
-- (void)adView:(GADBannerView *)banner
- didReceiveAppEvent:(NSString *)name
- withInfo:(NSString *GAD_NULLABLE_TYPE)info;
+- (void)adView:(nonnull GADBannerView *)banner
+ didReceiveAppEvent:(nonnull NSString *)name
+ withInfo:(nullable NSString *)info;
/// Called when the interstitial receives an app event.
-- (void)interstitial:(GADInterstitial *)interstitial
- didReceiveAppEvent:(NSString *)name
- withInfo:(NSString *GAD_NULLABLE_TYPE)info;
+- (void)interstitial:(nonnull GADInterstitial *)interstitial
+ didReceiveAppEvent:(nonnull NSString *)name
+ withInfo:(nullable NSString *)info;
@end
-
-GAD_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADAppOpenAd.h b/ios/platform/GoogleMobileAds.framework/Headers/GADAppOpenAd.h
new file mode 100644
index 00000000..62c60229
--- /dev/null
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADAppOpenAd.h
@@ -0,0 +1,56 @@
+//
+// GADAppOpenAd.h
+// Google Mobile Ads SDK
+//
+// Copyright 2019 Google LLC. All rights reserved.
+//
+
+#import
+#import
+#import
+
+#pragma mark - App Open Ad
+
+@class GADAppOpenAd;
+
+/// The handler block to execute when the ad load operation completes. If the load failed, the
+/// appOpenAd is nil and the |error| is non-nil. On success, the appOpenAd is non-nil and the
+/// |error| is nil.
+typedef void (^GADAppOpenAdLoadCompletionHandler)(GADAppOpenAd *_Nullable appOpenAd,
+ NSError *_Nullable error);
+
+/// Ad shown at app open time.
+@interface GADAppOpenAd : NSObject
+
+/// Loads an app open ad.
+///
+/// @param adUnitID An ad unit ID created in the AdMob or Ad Manager UI.
+/// @param request An ad request object. If nil, a default ad request object is used.
+/// @param orientation The interface orientation that the ad will be presented in.
+/// @param completionHandler A handler to execute when the load operation finishes or times out.
++ (void)loadWithAdUnitID:(nonnull NSString *)adUnitID
+ request:(nullable GADRequest *)request
+ orientation:(UIInterfaceOrientation)orientation
+ completionHandler:(nonnull GADAppOpenAdLoadCompletionHandler)completionHandler;
+
+/// Information about the ad response that returned the ad.
+@property(nonatomic, readonly, nonnull) GADResponseInfo *responseInfo;
+
+@end
+
+#pragma mark - App Open Ad View
+
+/// The handler block to execute when the ad is about to be closed.
+typedef void (^GADAppOpenAdCloseHandler)(void);
+
+/// Displays app open ads.
+@interface GADAppOpenAdView : UIView
+
+/// The ad displayed in the ad view.
+@property(nonatomic, nullable) GADAppOpenAd *appOpenAd;
+
+/// The handler to execute when the ad is about to be closed. The ad is closed when the user clicks
+/// the ad's close button or when the ad has been shown for a few seconds.
+@property(nonatomic, nullable) GADAppOpenAdCloseHandler adCloseHandler;
+
+@end
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADAudioVideoManager.h b/ios/platform/GoogleMobileAds.framework/Headers/GADAudioVideoManager.h
index c89d64ec..a927b57a 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADAudioVideoManager.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADAudioVideoManager.h
@@ -2,19 +2,16 @@
// GADAudioVideoManager.h
// Google Mobile Ads SDK
//
-// Copyright 2016 Google Inc. All rights reserved.
+// Copyright 2016 Google LLC. All rights reserved.
//
#import
#import
-GAD_ASSUME_NONNULL_BEGIN
-
-/// Provides audio and video notifications and configurations management. Available only on iOS 7
-/// and above.
+/// Provides audio and video notifications and configurations management.
///
/// Don't create an instance of this class and use the one available from GADMobileAds
-/// sharedInstace's audioVideoManager.
+/// sharedInstance's audioVideoManager.
@interface GADAudioVideoManager : NSObject
/// Delegate for receiving video and audio updates.
@@ -26,9 +23,7 @@ GAD_ASSUME_NONNULL_BEGIN
/// AVAudioSession's category to AVAudioSessionCategoryAmbient when all videos are muted, setting
/// AVAudioSession's category to AVAudioSessionCategorySoloAmbient when any playing video becomes
/// unmuted, and allowing background apps to continue playing sound when all videos rendered by
-/// Google Mobile Ads SDK are muted or have stopped playing.
+/// Google Mobile Ads SDK are muted or have stopped playing. Must be accessed on main thread only.
@property(nonatomic, assign) BOOL audioSessionIsApplicationManaged;
@end
-
-GAD_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADAudioVideoManagerDelegate.h b/ios/platform/GoogleMobileAds.framework/Headers/GADAudioVideoManagerDelegate.h
index 897431a9..567b3944 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADAudioVideoManagerDelegate.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADAudioVideoManagerDelegate.h
@@ -2,29 +2,28 @@
// GADAudioVideoManagerDelegate.h
// Google Mobile Ads SDK
//
-// Copyright 2016 Google Inc. All rights reserved.
+// Copyright 2016 Google LLC. All rights reserved.
//
#import
@class GADAudioVideoManager;
-GAD_ASSUME_NONNULL_BEGIN
-
-@protocol GADAudioVideoManagerDelegate
+/// A set of methods to inform the delegate of audio video manager events.
+@protocol GADAudioVideoManagerDelegate
@optional
/// Tells the delegate that the Google Mobile Ads SDK will start playing a video. This method isn't
/// called if another video rendered by Google Mobile Ads SDK is already playing.
-- (void)audioVideoManagerWillPlayVideo:(GADAudioVideoManager *)audioVideoManager;
+- (void)audioVideoManagerWillPlayVideo:(nonnull GADAudioVideoManager *)audioVideoManager;
/// Tells the delegate that the Google Mobile Ads SDK has paused/stopped all video playback.
-- (void)audioVideoManagerDidPauseAllVideo:(GADAudioVideoManager *)audioVideoManager;
+- (void)audioVideoManagerDidPauseAllVideo:(nonnull GADAudioVideoManager *)audioVideoManager;
/// Tells the delegate that at least one video rendered by the Google Mobile Ads SDK will play
/// sound. Your app should stop playing sound when this method is called.
-- (void)audioVideoManagerWillPlayAudio:(GADAudioVideoManager *)audioVideoManager;
+- (void)audioVideoManagerWillPlayAudio:(nonnull GADAudioVideoManager *)audioVideoManager;
/// Tells the delegate that all the video rendered by the Google Mobile Ads SDK has stopped playing
/// sound. Your app can now resume any music playback or produce any kind of sound. Note that this
@@ -32,8 +31,6 @@ GAD_ASSUME_NONNULL_BEGIN
/// deactivate AVAudioSession's instance. Doing so can lead to unexpected video playback behavior.
/// You may deactivate AVAudioSession only when all rendered video ads are paused or have finished
/// playing, and 'audioVideoDidPauseAllVideo:' is called.
-- (void)audioVideoManagerDidStopPlayingAudio:(GADAudioVideoManager *)audioVideoManager;
+- (void)audioVideoManagerDidStopPlayingAudio:(nonnull GADAudioVideoManager *)audioVideoManager;
@end
-
-GAD_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADBannerView.h b/ios/platform/GoogleMobileAds.framework/Headers/GADBannerView.h
index 7a8dc292..6094d6c5 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADBannerView.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADBannerView.h
@@ -2,20 +2,18 @@
// GADBannerView.h
// Google Mobile Ads SDK
//
-// Copyright 2011 Google Inc. All rights reserved.
+// Copyright 2011 Google LLC. All rights reserved.
//
-#import
-
#import
#import
#import
#import
#import
#import
+#import
#import
-
-GAD_ASSUME_NONNULL_BEGIN
+#import
/// The view that displays banner ads. A minimum implementation to get an ad from within a
/// UIViewController class is:
@@ -36,11 +34,11 @@ GAD_ASSUME_NONNULL_BEGIN
/// Initializes and returns a banner view with the specified ad size and origin relative to the
/// banner's superview.
-- (instancetype)initWithAdSize:(GADAdSize)adSize origin:(CGPoint)origin;
+- (nonnull instancetype)initWithAdSize:(GADAdSize)adSize origin:(CGPoint)origin;
/// Initializes and returns a banner view with the specified ad size placed at its superview's
/// origin.
-- (instancetype)initWithAdSize:(GADAdSize)adSize;
+- (nonnull instancetype)initWithAdSize:(GADAdSize)adSize;
#pragma mark Pre-Request
@@ -49,14 +47,15 @@ GAD_ASSUME_NONNULL_BEGIN
/// important for targeting and statistics.
///
/// Example AdMob ad unit ID: @"ca-app-pub-0123456789012345/0123456789"
-@property(nonatomic, copy, GAD_NULLABLE) IBInspectable NSString *adUnitID;
+@property(nonatomic, copy, nullable) IBInspectable NSString *adUnitID;
-/// Required reference to the current root view controller. For example the root view controller in
-/// tab-based application would be the UITabViewController.
-@property(nonatomic, weak, GAD_NULLABLE) IBOutlet UIViewController *rootViewController;
+/// Required reference to a root view controller that is used by the banner to present full screen
+/// content after the user interacts with the ad. The root view controller is most commonly the view
+/// controller displaying the banner.
+@property(nonatomic, weak, nullable) IBOutlet UIViewController *rootViewController;
-/// Required to set this banner view to a proper size. Never create your own GADAdSize directly. Use
-/// one of the predefined standard ad sizes (such as kGADAdSizeBanner), or create one using the
+/// Required to set this banner view to a proper size. Never create your own GADAdSize directly.
+/// Use one of the predefined standard ad sizes (such as kGADAdSizeBanner), or create one using the
/// GADAdSizeFromCGSize method. If not using mediation, then changing the adSize after an ad has
/// been shown will cause a new request (for an ad of the new size) to be sent. If using mediation,
/// then a new request may not be sent.
@@ -64,44 +63,47 @@ GAD_ASSUME_NONNULL_BEGIN
/// Optional delegate object that receives state change notifications from this GADBannerView.
/// Typically this is a UIViewController.
-@property(nonatomic, weak, GAD_NULLABLE) IBOutlet id delegate;
+@property(nonatomic, weak, nullable) IBOutlet id delegate;
/// Optional delegate that is notified when creatives cause the banner to change size.
-@property(nonatomic, weak, GAD_NULLABLE) IBOutlet id adSizeDelegate;
+@property(nonatomic, weak, nullable) IBOutlet id adSizeDelegate;
#pragma mark Making an Ad Request
-/// Makes an ad request. The request object supplies targeting information.
-- (void)loadRequest:(GADRequest *GAD_NULLABLE_TYPE)request;
+/// Requests an ad. The request object supplies targeting information.
+- (void)loadRequest:(nullable GADRequest *)request;
/// A Boolean value that determines whether autoloading of ads in the receiver is enabled. If
/// enabled, you do not need to call the loadRequest: method to load ads.
@property(nonatomic, assign, getter=isAutoloadEnabled) IBInspectable BOOL autoloadEnabled;
-#pragma mark Mediation
+#pragma mark Response
-/// The ad network class name that fetched the current ad. Returns nil while the latest ad request
-/// is in progress or if the latest ad request failed. For both standard and mediated Google AdMob
-/// ads, this property returns @"GADMAdapterGoogleAdMobAds". For ads fetched via mediation custom
-/// events, this property returns @"GADMAdapterCustomEvents".
-@property(nonatomic, readonly, copy, GAD_NULLABLE) NSString *adNetworkClassName;
+/// Information about the ad response that returned the current ad. Nil while an ad
+/// request is in progress or if the latest ad request failed.
+@property(nonatomic, readonly, nullable) GADResponseInfo *responseInfo;
#pragma mark Deprecated
-/// Indicates if the currently displayed ad (or most recent failure) was a result of auto refreshing
-/// as specified on server. This property is set to NO after each loadRequest: method.
+/// Indicates whether the currently displayed ad (or most recent failure) was a result of auto
+/// refreshing as specified on server. This property is set to NO after each loadRequest: method.
@property(nonatomic, readonly, assign) BOOL hasAutoRefreshed GAD_DEPRECATED_ATTRIBUTE;
-/// Deprecated delegate. GADInAppPurchase has been deprecated.
-@property(nonatomic, weak, GAD_NULLABLE)
- IBOutlet id inAppPurchaseDelegate GAD_DEPRECATED_ATTRIBUTE;
+/// Deprecated delegate. GADInAppPurchase is deprecated.
+@property(nonatomic, weak, nullable) IBOutlet id inAppPurchaseDelegate
+ GAD_DEPRECATED_ATTRIBUTE;
/// The mediated ad network's underlying ad view. You may use this property to read the ad's actual
/// size and adjust this banner view's frame origin. However, modifying the banner view's frame size
/// triggers the Mobile Ads SDK to request a new ad. Only update the banner view's frame origin.
-@property(nonatomic, readonly, weak, GAD_NULLABLE)
- UIView *mediatedAdView GAD_DEPRECATED_MSG_ATTRIBUTE("Use adNetworkClassName.");
+@property(nonatomic, readonly, weak, nullable)
+ UIView *mediatedAdView GAD_DEPRECATED_MSG_ATTRIBUTE("Use responseInfo.adNetworkClassName.");
-@end
+/// The ad network class name that fetched the current ad. Returns nil while the latest ad request
+/// is in progress or if the latest ad request failed. For both standard and mediated Google AdMob
+/// ads, this property returns @"GADMAdapterGoogleAdMobAds". For ads fetched via mediation custom
+/// events, this property returns @"GADMAdapterCustomEvents".
+@property(nonatomic, readonly, nullable) NSString *adNetworkClassName GAD_DEPRECATED_MSG_ATTRIBUTE(
+ "Use responseInfo.adNetworkClassName.");
-GAD_ASSUME_NONNULL_END
+@end
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADBannerViewDelegate.h b/ios/platform/GoogleMobileAds.framework/Headers/GADBannerViewDelegate.h
index 991fc32e..94703b32 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADBannerViewDelegate.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADBannerViewDelegate.h
@@ -2,21 +2,18 @@
// GADBannerViewDelegate.h
// Google Mobile Ads SDK
//
-// Copyright 2011 Google Inc. All rights reserved.
+// Copyright 2011 Google LLC. All rights reserved.
//
#import
-
#import
#import
@class GADBannerView;
-GAD_ASSUME_NONNULL_BEGIN
-
/// Delegate methods for receiving GADBannerView state change messages such as ad request status
/// and ad click lifecycle.
-@protocol GADBannerViewDelegate
+@protocol GADBannerViewDelegate
@optional
@@ -24,30 +21,29 @@ GAD_ASSUME_NONNULL_BEGIN
/// Tells the delegate that an ad request successfully received an ad. The delegate may want to add
/// the banner view to the view hierarchy if it hasn't been added yet.
-- (void)adViewDidReceiveAd:(GADBannerView *)bannerView;
+- (void)adViewDidReceiveAd:(nonnull GADBannerView *)bannerView;
/// Tells the delegate that an ad request failed. The failure is normally due to network
/// connectivity or ad availablility (i.e., no fill).
-- (void)adView:(GADBannerView *)bannerView didFailToReceiveAdWithError:(GADRequestError *)error;
+- (void)adView:(nonnull GADBannerView *)bannerView
+ didFailToReceiveAdWithError:(nonnull GADRequestError *)error;
#pragma mark Click-Time Lifecycle Notifications
/// Tells the delegate that a full screen view will be presented in response to the user clicking on
/// an ad. The delegate may want to pause animations and time sensitive interactions.
-- (void)adViewWillPresentScreen:(GADBannerView *)bannerView;
+- (void)adViewWillPresentScreen:(nonnull GADBannerView *)bannerView;
/// Tells the delegate that the full screen view will be dismissed.
-- (void)adViewWillDismissScreen:(GADBannerView *)bannerView;
+- (void)adViewWillDismissScreen:(nonnull GADBannerView *)bannerView;
/// Tells the delegate that the full screen view has been dismissed. The delegate should restart
/// anything paused while handling adViewWillPresentScreen:.
-- (void)adViewDidDismissScreen:(GADBannerView *)bannerView;
+- (void)adViewDidDismissScreen:(nonnull GADBannerView *)bannerView;
/// Tells the delegate that the user click will open another app, backgrounding the current
/// application. The standard UIApplicationDelegate methods, like applicationDidEnterBackground:,
/// are called immediately before this method is called.
-- (void)adViewWillLeaveApplication:(GADBannerView *)bannerView;
+- (void)adViewWillLeaveApplication:(nonnull GADBannerView *)bannerView;
@end
-
-GAD_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADCorrelator.h b/ios/platform/GoogleMobileAds.framework/Headers/GADCorrelator.h
deleted file mode 100644
index 909f0f4c..00000000
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADCorrelator.h
+++ /dev/null
@@ -1,23 +0,0 @@
-//
-// GADCorrelator.h
-// Google Mobile Ads SDK
-//
-// Copyright 2015 Google Inc. All rights reserved.
-//
-
-#import
-
-#import
-
-GAD_ASSUME_NONNULL_BEGIN
-
-/// Represents a correlation between multiple ads. Set an instance of this object on multiple ads to
-/// indicate they are being used in a common context.
-@interface GADCorrelator : NSObject
-
-/// Resets the correlator to force a new set of correlated ads.
-- (void)reset;
-
-@end
-
-GAD_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADCorrelatorAdLoaderOptions.h b/ios/platform/GoogleMobileAds.framework/Headers/GADCorrelatorAdLoaderOptions.h
deleted file mode 100644
index b10d6075..00000000
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADCorrelatorAdLoaderOptions.h
+++ /dev/null
@@ -1,22 +0,0 @@
-//
-// GADCorrelatorAdLoaderOptions.h
-// Google Mobile Ads SDK
-//
-// Copyright 2015 Google Inc. All rights reserved.
-//
-
-#import
-#import
-#import
-
-GAD_ASSUME_NONNULL_BEGIN
-
-/// Ad loader options for adding a correlator to a native ad request.
-@interface GADCorrelatorAdLoaderOptions : GADAdLoaderOptions
-
-/// Correlator object for correlating ads loaded by an ad loader to other ad objects.
-@property(nonatomic, strong, GAD_NULLABLE) GADCorrelator *correlator;
-
-@end
-
-GAD_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventBanner.h b/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventBanner.h
index 53317d90..fbf86dcd 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventBanner.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventBanner.h
@@ -2,26 +2,25 @@
// GADCustomEventBanner.h
// Google Mobile Ads SDK
//
-// Copyright 2012 Google Inc. All rights reserved.
+// Copyright 2012 Google LLC. All rights reserved.
//
-#import
-
#import
#import
#import
#import
+#import
-GAD_ASSUME_NONNULL_BEGIN
+NS_ASSUME_NONNULL_BEGIN
/// The banner custom event protocol. Your banner custom event handler must implement this protocol.
-@protocol GADCustomEventBanner
+@protocol GADCustomEventBanner
/// Inform |delegate| with the custom event execution results to ensure mediation behaves correctly.
///
/// In your class, define the -delegate and -setDelegate: methods or use "@synthesize delegate". The
/// Google Mobile Ads SDK sets this property on instances of your class.
-@property(nonatomic, weak, GAD_NULLABLE) id delegate;
+@property(nonatomic, weak, nullable) id delegate;
/// Called by mediation when your custom event is scheduled to be executed. Report execution results
/// to the delegate.
@@ -31,10 +30,10 @@ GAD_ASSUME_NONNULL_BEGIN
/// @param serverLabel Label configured in the mediation UI.
/// @param request Contains ad request information.
- (void)requestBannerAd:(GADAdSize)adSize
- parameter:(NSString *GAD_NULLABLE_TYPE)serverParameter
- label:(NSString *GAD_NULLABLE_TYPE)serverLabel
+ parameter:(nullable NSString *)serverParameter
+ label:(nullable NSString *)serverLabel
request:(GADCustomEventRequest *)request;
@end
-GAD_ASSUME_NONNULL_END
+NS_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventBannerDelegate.h b/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventBannerDelegate.h
index 8ec685c5..5a4f85a0 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventBannerDelegate.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventBannerDelegate.h
@@ -2,15 +2,14 @@
// GADCustomEventBannerDelegate.h
// Google Mobile Ads SDK
//
-// Copyright 2012 Google Inc. All rights reserved.
+// Copyright 2012 Google LLC. All rights reserved.
//
#import
-#import
-
#import
+#import
-GAD_ASSUME_NONNULL_BEGIN
+NS_ASSUME_NONNULL_BEGIN
@protocol GADCustomEventBanner;
@@ -19,7 +18,7 @@ GAD_ASSUME_NONNULL_BEGIN
/// Otherwise, if enough time passed (several seconds) after the SDK called the requestBannerAd:
/// method of your custom event, the mediation SDK will consider the request timed out, and move on
/// to the next ad network.
-@protocol GADCustomEventBannerDelegate
+@protocol GADCustomEventBannerDelegate
/// Your Custom Event object must call this when it receives or creates an ad view.
- (void)customEventBanner:(id)customEvent didReceiveAd:(UIView *)view;
@@ -27,8 +26,7 @@ GAD_ASSUME_NONNULL_BEGIN
/// Your Custom Event object must call this when it fails to receive or create the ad view. Pass
/// along any error object sent from the ad network's SDK, or an NSError describing the error. Pass
/// nil if not available.
-- (void)customEventBanner:(id)customEvent
- didFailAd:(NSError *GAD_NULLABLE_TYPE)error;
+- (void)customEventBanner:(id)customEvent didFailAd:(nullable NSError *)error;
/// Your Custom Event object should call this when the user touches or "clicks" the ad to initiate
/// an action. When the SDK receives this callback, it reports the click back to the mediation
@@ -65,4 +63,4 @@ GAD_ASSUME_NONNULL_BEGIN
@end
-GAD_ASSUME_NONNULL_END
+NS_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventExtras.h b/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventExtras.h
index a42a35cc..fd14e205 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventExtras.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventExtras.h
@@ -2,27 +2,26 @@
// GADCustomEventExtras.h
// Google Mobile Ads SDK
//
-// Copyright 2012 Google Inc. All rights reserved.
+// Copyright 2012 Google LLC. All rights reserved.
//
#import
-
#import
#import
-GAD_ASSUME_NONNULL_BEGIN
+NS_ASSUME_NONNULL_BEGIN
/// Create an instance of this class to set additional parameters for each custom event object. The
/// additional parameters for a custom event are keyed by the custom event label. These extras are
/// passed to your implementation of GADCustomEventBanner or GADCustomEventInterstitial.
-@interface GADCustomEventExtras : NSObject
+@interface GADCustomEventExtras : NSObject
/// Set additional parameters for the custom event with label |label|. To remove additional
/// parameters associated with |label|, pass in nil for |extras|.
-- (void)setExtras:(NSDictionary *GAD_NULLABLE_TYPE)extras forLabel:(NSString *)label;
+- (void)setExtras:(nullable NSDictionary *)extras forLabel:(NSString *)label;
/// Retrieve the extras for |label|.
-- (NSDictionary *GAD_NULLABLE_TYPE)extrasForLabel:(NSString *)label;
+- (nullable NSDictionary *)extrasForLabel:(NSString *)label;
/// Removes all the extras set on this instance.
- (void)removeAllExtras;
@@ -32,4 +31,4 @@ GAD_ASSUME_NONNULL_BEGIN
@end
-GAD_ASSUME_NONNULL_END
+NS_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventInterstitial.h b/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventInterstitial.h
index 7a05e3bd..b3c52c38 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventInterstitial.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventInterstitial.h
@@ -2,26 +2,25 @@
// GADCustomEventInterstitial.h
// Google Mobile Ads SDK
//
-// Copyright 2012 Google Inc. All rights reserved.
+// Copyright 2012 Google LLC. All rights reserved.
//
-#import
-
#import
#import
#import
+#import
-GAD_ASSUME_NONNULL_BEGIN
+NS_ASSUME_NONNULL_BEGIN
/// The interstitial custom event protocol. Your interstitial custom event handler must implement
/// this protocol.
-@protocol GADCustomEventInterstitial
+@protocol GADCustomEventInterstitial
/// Inform |delegate| with the custom event execution results to ensure mediation behaves correctly.
///
/// In your class, define the -delegate and -setDelegate: methods or use "@synthesize delegate". The
/// Google Mobile Ads SDK sets this property on instances of your class.
-@property(nonatomic, weak, GAD_NULLABLE) id delegate;
+@property(nonatomic, weak, nullable) id delegate;
/// Called by mediation when your custom event is scheduled to be executed. Your implementation
/// should start retrieving the interstitial ad. Report execution results to the delegate. You must
@@ -30,8 +29,8 @@ GAD_ASSUME_NONNULL_BEGIN
/// @param serverParameter Parameter configured in the mediation UI.
/// @param serverLabel Label configured in the mediation UI.
/// @param request Contains ad request information.
-- (void)requestInterstitialAdWithParameter:(NSString *GAD_NULLABLE_TYPE)serverParameter
- label:(NSString *GAD_NULLABLE_TYPE)serverLabel
+- (void)requestInterstitialAdWithParameter:(nullable NSString *)serverParameter
+ label:(nullable NSString *)serverLabel
request:(GADCustomEventRequest *)request;
/// Present the interstitial ad as a modal view using the provided view controller. Called only
@@ -40,4 +39,4 @@ GAD_ASSUME_NONNULL_BEGIN
@end
-GAD_ASSUME_NONNULL_END
+NS_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventInterstitialDelegate.h b/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventInterstitialDelegate.h
index 97219d3e..5ca66268 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventInterstitialDelegate.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventInterstitialDelegate.h
@@ -2,14 +2,13 @@
// GADCustomEventInterstitialDelegate.h
// Google Mobile Ads SDK
//
-// Copyright 2012 Google Inc. All rights reserved.
+// Copyright 2012 Google LLC. All rights reserved.
//
#import
-
#import
-GAD_ASSUME_NONNULL_BEGIN
+NS_ASSUME_NONNULL_BEGIN
@protocol GADCustomEventInterstitial;
@@ -19,7 +18,7 @@ GAD_ASSUME_NONNULL_BEGIN
/// (several seconds) after the SDK called the requestInterstitialAdWithParameter: method of your
/// custom event, the mediation SDK will consider the request timed out, and move on to the next ad
/// network.
-@protocol GADCustomEventInterstitialDelegate
+@protocol GADCustomEventInterstitialDelegate
/// Your Custom Event object must call this when it receives or creates an interstitial ad.
- (void)customEventInterstitialDidReceiveAd:(id)customEvent;
@@ -28,7 +27,7 @@ GAD_ASSUME_NONNULL_BEGIN
/// any error object sent from the ad network's SDK, or an NSError describing the error. Pass nil if
/// not available.
- (void)customEventInterstitial:(id)customEvent
- didFailAd:(NSError *GAD_NULLABLE_TYPE)error;
+ didFailAd:(nullable NSError *)error;
/// Your Custom Event object should call this when the user touches or "clicks" the ad to initiate
/// an action. When the SDK receives this callback, it reports the click back to the mediation
@@ -59,4 +58,4 @@ GAD_ASSUME_NONNULL_BEGIN
@end
-GAD_ASSUME_NONNULL_END
+NS_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventNativeAd.h b/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventNativeAd.h
index 9a99c7e4..314abda8 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventNativeAd.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventNativeAd.h
@@ -2,21 +2,20 @@
// GADCustomEventNativeAd.h
// Google Mobile Ads SDK
//
-// Copyright 2015 Google Inc. All rights reserved.
+// Copyright 2015 Google LLC. All rights reserved.
//
#import
-
#import
#import
-GAD_ASSUME_NONNULL_BEGIN
+NS_ASSUME_NONNULL_BEGIN
@protocol GADCustomEventNativeAdDelegate;
/// Native ad custom event protocol. Your native ad custom event handler class must conform to this
/// protocol.
-@protocol GADCustomEventNativeAd
+@protocol GADCustomEventNativeAd
/// Called when the custom event is scheduled to be executed.
///
@@ -33,26 +32,26 @@ GAD_ASSUME_NONNULL_BEGIN
options:(NSArray *)options
rootViewController:(UIViewController *)rootViewController;
-/// Indicates if the custom event handles user clicks. Return YES if the custom event should handle
-/// user clicks. In this case, the Google Mobile Ads SDK doesn't track user clicks and the custom
-/// event must notify the Google Mobile Ads SDK of clicks using
+/// Indicates whether the custom event handles user clicks. Return YES if the custom event should
+/// handle user clicks. In this case, the Google Mobile Ads SDK doesn't track user clicks and the
+/// custom event must notify the Google Mobile Ads SDK of clicks using
/// +[GADMediatedNativeAdNotificationSource mediatedNativeAdDidRecordClick:]. Return NO if the
/// custom event doesn't handles user clicks. In this case, the Google Mobile Ads SDK tracks user
/// clicks itself and the custom event is notified of user clicks via -[GADMediatedNativeAdDelegate
/// mediatedNativeAd:didRecordClickOnAssetWithName:view:viewController:].
- (BOOL)handlesUserClicks;
-/// Indicates if the custom event handles user impressions tracking. If this method returns YES, the
-/// Google Mobile Ads SDK will not track user impressions and the custom event must notify the
-/// Google Mobile Ads SDK of impressions using +[GADMediatedNativeAdNotificationSource
-/// mediatedNativeAdDidRecordImpression:]. If this method returns NO,
-/// the Google Mobile Ads SDK tracks user impressions and notifies the custom event of impressions
-/// using -[GADMediatedNativeAdDelegate mediatedNativeAdDidRecordImpression:].
+/// Indicates whether the custom event handles user impressions tracking. If this method returns
+/// YES, the Google Mobile Ads SDK will not track user impressions and the custom event must notify
+/// the Google Mobile Ads SDK of impressions using +[GADMediatedNativeAdNotificationSource
+/// mediatedNativeAdDidRecordImpression:]. If this method returns NO, the Google Mobile Ads SDK
+/// tracks user impressions and notifies the custom event of impressions using
+/// -[GADMediatedNativeAdDelegate mediatedNativeAdDidRecordImpression:].
- (BOOL)handlesUserImpressions;
/// Delegate object used for receiving custom native ad load request progress.
-@property(nonatomic, weak, GAD_NULLABLE) id delegate;
+@property(nonatomic, weak, nullable) id delegate;
@end
-GAD_ASSUME_NONNULL_END
+NS_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventNativeAdDelegate.h b/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventNativeAdDelegate.h
index 4a946025..4ded3e8e 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventNativeAdDelegate.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventNativeAdDelegate.h
@@ -2,22 +2,21 @@
// GADCustomEventNativeAdDelegate.h
// Google Mobile Ads SDK
//
-// Copyright 2015 Google Inc. All rights reserved.
+// Copyright 2015 Google LLC. All rights reserved.
//
#import
-
#import
#import
#import
#import
-GAD_ASSUME_NONNULL_BEGIN
+NS_ASSUME_NONNULL_BEGIN
/// The delegate of the GADCustomEventNativeAd object must adopt the GADCustomEventNativeAdDelegate
/// protocol. Methods in this protocol are used for native ad's custom event communication with the
/// Google Mobile Ads SDK.
-@protocol GADCustomEventNativeAdDelegate
+@protocol GADCustomEventNativeAdDelegate
/// Tells the delegate that the custom event ad request succeeded and loaded a native ad.
- (void)customEventNativeAd:(id)customEventNativeAd
@@ -28,9 +27,10 @@ GAD_ASSUME_NONNULL_BEGIN
didFailToLoadWithError:(NSError *)error;
/// Tells the delegate that the custom event ad request succeeded and loaded a unified native ad.
-- (void)customEventNativeAd:(id)customEventNativeAd
- didReceiveMediatedUnifiedNativeAd:(id)mediatedUnifiedNativeAd;
+- (void)customEventNativeAd:(nonnull id)customEventNativeAd
+ didReceiveMediatedUnifiedNativeAd:
+ (nonnull id)mediatedUnifiedNativeAd;
@end
-GAD_ASSUME_NONNULL_END
+NS_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventParameters.h b/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventParameters.h
index 5a6041e7..73916692 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventParameters.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventParameters.h
@@ -2,18 +2,17 @@
// GADCustomEventParameters.h
// Google Mobile Ads SDK
//
-// Copyright 2016 Google Inc. All rights reserved.
+// Copyright 2016 Google LLC. All rights reserved.
//
#import
-
#import
-GAD_ASSUME_NONNULL_BEGIN
+NS_ASSUME_NONNULL_BEGIN
/// Key for getting the server parameter configured in AdMob when mediating to a custom event
/// adapter.
/// Example: NSString *serverParameter = connector.credentials[GADCustomEventParametersServer].
GAD_EXTERN NSString *const GADCustomEventParametersServer;
-GAD_ASSUME_NONNULL_END
+NS_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventRequest.h b/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventRequest.h
index e702a3d4..83132bd4 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventRequest.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADCustomEventRequest.h
@@ -2,17 +2,16 @@
// GADCustomEventRequest.h
// Google Mobile Ads SDK
//
-// Copyright 2012 Google Inc. All rights reserved.
+// Copyright 2012 Google LLC. All rights reserved.
//
-#import
-
#import
#import
+#import
@class GADCustomEventExtras;
-GAD_ASSUME_NONNULL_BEGIN
+NS_ASSUME_NONNULL_BEGIN
/// Specifies optional ad request targeting parameters that are provided by the publisher and are
/// forwarded to custom events for purposes of populating an ad request to a 3rd party ad network.
@@ -33,19 +32,19 @@ GAD_ASSUME_NONNULL_BEGIN
/// Description of the user's location, in free form text, set in GADRequest. If not available,
/// returns nil. This may be set even if userHasLocation is NO.
-@property(nonatomic, readonly, copy, GAD_NULLABLE) NSString *userLocationDescription;
+@property(nonatomic, readonly, copy, nullable) NSString *userLocationDescription;
/// Keywords set in GADRequest. Returns nil if no keywords are set.
-@property(nonatomic, readonly, copy, GAD_NULLABLE) NSArray *userKeywords;
+@property(nonatomic, readonly, copy, nullable) NSArray *userKeywords;
/// The additional parameters set by the application. This property allows you to pass additional
/// information from your application to your Custom Event object. To do so, create an instance of
/// GADCustomEventExtras to pass to GADRequest -registerAdNetworkExtras:. The instance should have
/// an NSDictionary set for a particular custom event label. That NSDictionary becomes the
/// additionalParameters here.
-@property(nonatomic, readonly, copy, GAD_NULLABLE) NSDictionary *additionalParameters;
+@property(nonatomic, readonly, copy, nullable) NSDictionary *additionalParameters;
-/// Indicates if the testing property has been set in GADRequest.
+/// Indicates whether the testing property has been set in GADRequest.
@property(nonatomic, readonly, assign) BOOL isTesting;
#pragma mark Deprecated methods
@@ -54,8 +53,8 @@ GAD_ASSUME_NONNULL_BEGIN
@property(nonatomic, readonly, assign) GADGender userGender GAD_DEPRECATED_ATTRIBUTE;
/// Deprecated. User's birthday set in GADRequest. If not specified, returns nil.
-@property(nonatomic, readonly, copy, GAD_NULLABLE) NSDate *userBirthday GAD_DEPRECATED_ATTRIBUTE;
+@property(nonatomic, readonly, copy, nullable) NSDate *userBirthday GAD_DEPRECATED_ATTRIBUTE;
@end
-GAD_ASSUME_NONNULL_END
+NS_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADDebugOptionsViewController.h b/ios/platform/GoogleMobileAds.framework/Headers/GADDebugOptionsViewController.h
index acc98dc3..909683e4 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADDebugOptionsViewController.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADDebugOptionsViewController.h
@@ -2,35 +2,36 @@
// GADDebugOptionsViewController.h
// Google Mobile Ads SDK
//
-// Copyright 2016 Google Inc. All rights reserved.
+// Copyright 2016 Google LLC. All rights reserved.
//
#import
-#import
-
#import
+#import
@class GADDebugOptionsViewController;
-GAD_ASSUME_NONNULL_BEGIN
+NS_ASSUME_NONNULL_BEGIN
/// Delegate for the GADDebugOptionsViewController.
-@protocol GADDebugOptionsViewControllerDelegate
+@protocol GADDebugOptionsViewControllerDelegate
+
/// Called when the debug options flow is finished.
- (void)debugOptionsViewControllerDidDismiss:(GADDebugOptionsViewController *)controller;
+
@end
/// Displays debug options to the user.
@interface GADDebugOptionsViewController : UIViewController
/// Creates and returns a GADDebugOptionsViewController object initialized with the ad unit ID.
-/// @param adUnitID An ad unit ID for the DFP account that is being configured with debug options.
+/// @param adUnitID An ad unit ID for the Google Ad Manager account that is being configured with
+/// debug options.
+ (instancetype)debugOptionsViewControllerWithAdUnitID:(NSString *)adUnitID;
/// Delegate for the debug options view controller.
-@property(nonatomic, weak, GAD_NULLABLE)
- IBOutlet id delegate;
+@property(nonatomic, weak, nullable) IBOutlet id delegate;
@end
-GAD_ASSUME_NONNULL_END
+NS_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADDelayedAdRenderingOptions.h b/ios/platform/GoogleMobileAds.framework/Headers/GADDelayedAdRenderingOptions.h
new file mode 100644
index 00000000..308cd87c
--- /dev/null
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADDelayedAdRenderingOptions.h
@@ -0,0 +1,22 @@
+#import
+
+#import
+
+/// Delegate for delayed rendering of Google banner ads.
+@protocol GADDelayedAdRenderingDelegate
+
+/// Asks the delegate whether the ad loader should delay rendering the banner ad that it's chosen.
+/// If the delegate returns YES, it must also call resumeHandler when it is ready for rendering to
+/// resume.
+- (BOOL)adLoader:(nonnull GADAdLoader *)adLoader
+ shouldDelayRenderingWithResumeHandler:(nonnull dispatch_block_t)resumeHandler;
+
+@end
+
+/// Ad loader options for configuring delayed rendering of Google banner ads.
+@interface GADDelayedAdRenderingOptions : GADAdLoaderOptions
+
+/// Delegate for delaying the rendering of Google banner ads.
+@property(nonatomic, nullable, weak) id delegate;
+
+@end
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADDisplayAdMeasurement.h b/ios/platform/GoogleMobileAds.framework/Headers/GADDisplayAdMeasurement.h
new file mode 100644
index 00000000..3816a85e
--- /dev/null
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADDisplayAdMeasurement.h
@@ -0,0 +1,22 @@
+//
+// GADDisplayAdMeasurement.h
+// Google Mobile Ads SDK
+//
+// Copyright 2019 Google LLC. All rights reserved.
+//
+#import
+#import
+
+/// Measurement used for display custom native ad formats.
+@interface GADDisplayAdMeasurement : NSObject
+
+/// Ad view used to measure viewability. This property can be modified before or after starting
+/// display ad measurement. Must be accessed on the main thread.
+@property(nonatomic, weak, nullable) UIView *view;
+
+/// Starts OMID viewability measurement for display ads. Returns whether OMID viewability was
+/// started and sets |error| if unable to start. Once started, all subsequent calls return YES and
+/// have no effect. Must be called on the main thread.
+- (BOOL)startWithError:(NSError *_Nullable *_Nullable)error;
+
+@end
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADDynamicHeightSearchRequest.h b/ios/platform/GoogleMobileAds.framework/Headers/GADDynamicHeightSearchRequest.h
index 4fefe66f..82adacc6 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADDynamicHeightSearchRequest.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADDynamicHeightSearchRequest.h
@@ -2,13 +2,13 @@
// GADDynamicHeightSearchRequest.h
// GoogleMobileAds
//
-// Copyright © 2016 Google Inc. All rights reserved.
+// Copyright 2016 Google LLC. All rights reserved.
//
#import
#import
-GAD_ASSUME_NONNULL_BEGIN
+NS_ASSUME_NONNULL_BEGIN
/// Use to configure Custom Search Ad (CSA) ad requests. A dynamic height search banner can contain
/// multiple ads and the height is set dynamically based on the ad contents. Please cross-reference
@@ -21,45 +21,45 @@ GAD_ASSUME_NONNULL_BEGIN
#pragma mark Required
/// The CSA "query" parameter.
-@property(nonatomic, copy, GAD_NULLABLE) NSString *query;
+@property(nonatomic, copy, nullable) NSString *query;
/// The CSA "adPage" parameter.
@property(nonatomic, assign) NSInteger adPage;
#pragma mark Configuration Settings
-/// Indicates if the CSA "adTest" parameter is enabled.
+/// Indicates whether the CSA "adTest" parameter is enabled.
@property(nonatomic, assign) BOOL adTestEnabled;
/// The CSA "channel" parameter.
-@property(nonatomic, copy, GAD_NULLABLE) NSString *channel;
+@property(nonatomic, copy, nullable) NSString *channel;
/// The CSA "hl" parameter.
-@property(nonatomic, copy, GAD_NULLABLE) NSString *hostLanguage;
+@property(nonatomic, copy, nullable) NSString *hostLanguage;
#pragma mark Layout and Styling
/// The CSA "colorLocation" parameter.
-@property(nonatomic, copy, GAD_NULLABLE) NSString *locationExtensionTextColor;
+@property(nonatomic, copy, nullable) NSString *locationExtensionTextColor;
/// The CSA "fontSizeLocation" parameter.
@property(nonatomic, assign) CGFloat locationExtensionFontSize;
#pragma mark Ad Extensions
-/// Indicates if the CSA "clickToCall" parameter is enabled.
+/// Indicates whether the CSA "clickToCall" parameter is enabled.
@property(nonatomic, assign) BOOL clickToCallExtensionEnabled;
-/// Indicates if the CSA "location" parameter is enabled.
+/// Indicates whether the CSA "location" parameter is enabled.
@property(nonatomic, assign) BOOL locationExtensionEnabled;
-/// Indicates if the CSA "plusOnes" parameter is enabled.
+/// Indicates whether the CSA "plusOnes" parameter is enabled.
@property(nonatomic, assign) BOOL plusOnesExtensionEnabled;
-/// Indicates if the CSA "sellerRatings" parameter is enabled.
+/// Indicates whether the CSA "sellerRatings" parameter is enabled.
@property(nonatomic, assign) BOOL sellerRatingsExtensionEnabled;
-/// Indicates if the CSA "siteLinks" parameter is enabled.
+/// Indicates whether the CSA "siteLinks" parameter is enabled.
@property(nonatomic, assign) BOOL siteLinksExtensionEnabled;
#pragma mark - Unit Level Parameters
@@ -67,7 +67,7 @@ GAD_ASSUME_NONNULL_BEGIN
#pragma mark Required
/// The CSA "width" parameter.
-@property(nonatomic, copy, GAD_NULLABLE) NSString *CSSWidth;
+@property(nonatomic, copy, nullable) NSString *CSSWidth;
/// Configuration Settings
@@ -77,10 +77,10 @@ GAD_ASSUME_NONNULL_BEGIN
#pragma mark Font
/// The CSA "fontFamily" parameter.
-@property(nonatomic, copy, GAD_NULLABLE) NSString *fontFamily;
+@property(nonatomic, copy, nullable) NSString *fontFamily;
/// The CSA "fontFamilyAttribution" parameter.
-@property(nonatomic, copy, GAD_NULLABLE) NSString *attributionFontFamily;
+@property(nonatomic, copy, nullable) NSString *attributionFontFamily;
/// The CSA "fontSizeAnnotation" parameter.
@property(nonatomic, assign) CGFloat annotationFontSize;
@@ -100,36 +100,36 @@ GAD_ASSUME_NONNULL_BEGIN
#pragma mark Color
/// The CSA "colorAdBorder" parameter.
-@property(nonatomic, copy, GAD_NULLABLE) NSString *adBorderColor;
+@property(nonatomic, copy, nullable) NSString *adBorderColor;
/// The CSA "colorAdSeparator" parameter.
-@property(nonatomic, copy, GAD_NULLABLE) NSString *adSeparatorColor;
+@property(nonatomic, copy, nullable) NSString *adSeparatorColor;
/// The CSA "colorAnnotation" parameter.
-@property(nonatomic, copy, GAD_NULLABLE) NSString *annotationTextColor;
+@property(nonatomic, copy, nullable) NSString *annotationTextColor;
/// The CSA "colorAttribution" parameter.
-@property(nonatomic, copy, GAD_NULLABLE) NSString *attributionTextColor;
+@property(nonatomic, copy, nullable) NSString *attributionTextColor;
/// The CSA "colorBackground" parameter.
-@property(nonatomic, copy, GAD_NULLABLE) NSString *backgroundColor;
+@property(nonatomic, copy, nullable) NSString *backgroundColor;
/// The CSA "colorBorder" parameter.
-@property(nonatomic, copy, GAD_NULLABLE) NSString *borderColor;
+@property(nonatomic, copy, nullable) NSString *borderColor;
/// The CSA "colorDomainLink" parameter.
-@property(nonatomic, copy, GAD_NULLABLE) NSString *domainLinkColor;
+@property(nonatomic, copy, nullable) NSString *domainLinkColor;
/// The CSA "colorText" parameter.
-@property(nonatomic, copy, GAD_NULLABLE) NSString *textColor;
+@property(nonatomic, copy, nullable) NSString *textColor;
/// The CSA "colorTitleLink" parameter.
-@property(nonatomic, copy, GAD_NULLABLE) NSString *titleLinkColor;
+@property(nonatomic, copy, nullable) NSString *titleLinkColor;
#pragma mark General Formatting
/// The CSA "adBorderSelections" parameter.
-@property(nonatomic, copy, GAD_NULLABLE) NSString *adBorderCSSSelections;
+@property(nonatomic, copy, nullable) NSString *adBorderCSSSelections;
/// The CSA "adjustableLineHeight" parameter.
@property(nonatomic, assign) CGFloat adjustableLineHeight;
@@ -138,12 +138,12 @@ GAD_ASSUME_NONNULL_BEGIN
@property(nonatomic, assign) CGFloat attributionBottomSpacing;
/// The CSA "borderSelections" parameter.
-@property(nonatomic, copy, GAD_NULLABLE) NSString *borderCSSSelections;
+@property(nonatomic, copy, nullable) NSString *borderCSSSelections;
-/// Indicates if the CSA "noTitleUnderline" parameter is enabled.
+/// Indicates whether the CSA "noTitleUnderline" parameter is enabled.
@property(nonatomic, assign) BOOL titleUnderlineHidden;
-/// Indicates if the CSA "titleBold" parameter is enabled.
+/// Indicates whether the CSA "titleBold" parameter is enabled.
@property(nonatomic, assign) BOOL boldTitleEnabled;
/// The CSA "verticalSpacing" parameter.
@@ -151,10 +151,10 @@ GAD_ASSUME_NONNULL_BEGIN
#pragma mark Ad Extensions
-/// Indicates if the CSA "detailedAttribution" parameter is enabled.
+/// Indicates whether the CSA "detailedAttribution" parameter is enabled.
@property(nonatomic, assign) BOOL detailedAttributionExtensionEnabled;
-/// Indicates if the CSA "longerHeadlines" parameter is enabled.
+/// Indicates whether the CSA "longerHeadlines" parameter is enabled.
@property(nonatomic, assign) BOOL longerHeadlinesExtensionEnabled;
/// Sets an advanced option value for a specified key. The value must be an NSString or NSNumber.
@@ -162,4 +162,4 @@ GAD_ASSUME_NONNULL_BEGIN
@end
-GAD_ASSUME_NONNULL_END
+NS_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADExtras.h b/ios/platform/GoogleMobileAds.framework/Headers/GADExtras.h
index 3ca160fa..2ed25cb4 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADExtras.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADExtras.h
@@ -2,22 +2,21 @@
// GADExtras.h
// Google Mobile Ads SDK
//
-// Copyright 2012 Google Inc. All rights reserved.
+// Copyright 2012 Google LLC. All rights reserved.
//
#import
-
#import
#import
-GAD_ASSUME_NONNULL_BEGIN
+NS_ASSUME_NONNULL_BEGIN
/// Ad network extras sent to Google networks.
-@interface GADExtras : NSObject
+@interface GADExtras : NSObject
/// Additional parameters to be sent to Google networks.
-@property(nonatomic, copy, GAD_NULLABLE) NSDictionary *additionalParameters;
+@property(nonatomic, copy, nullable) NSDictionary *additionalParameters;
@end
-GAD_ASSUME_NONNULL_END
+NS_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADInAppPurchase.h b/ios/platform/GoogleMobileAds.framework/Headers/GADInAppPurchase.h
index 979c3072..5cb09b2f 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADInAppPurchase.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADInAppPurchase.h
@@ -2,15 +2,14 @@
// GADInAppPurchase.h
// Google Mobile Ads SDK
//
-// Copyright 2013 Google Inc. All rights reserved.
+// Copyright 2013 Google LLC. All rights reserved.
//
#import
-#import
-
#import
+#import
-GAD_ASSUME_NONNULL_BEGIN
+NS_ASSUME_NONNULL_BEGIN
@protocol GADDefaultInAppPurchaseDelegate;
@@ -21,7 +20,6 @@ GAD_ASSUME_NONNULL_BEGIN
/// Instances of this class are created and passed to your in-app purchase delegate after the user
/// has successfully paid for a product. Your code must correctly deliver the product to the user
/// and then call the didCompletePurchase method to finish the transaction.
-
GAD_DEPRECATED_ATTRIBUTE
@interface GADDefaultInAppPurchase : NSObject
@@ -60,10 +58,10 @@ GAD_DEPRECATED_ATTRIBUTE
/// Enum of the different statuses resulting from processing a purchase.
GAD_DEPRECATED_ATTRIBUTE
typedef NS_ENUM(NSInteger, GADInAppPurchaseStatus) {
- kGADInAppPurchaseStatusError = 0, ///< Error occured while processing the purchase.
+ kGADInAppPurchaseStatusError = 0, ///< Error occurred while processing the purchase.
kGADInAppPurchaseStatusSuccessful = 1, ///< Purchase was completed successfully.
kGADInAppPurchaseStatusCancel = 2, ///< Purchase was cancelled by the user.
- kGADInAppPurchaseStatusInvalidProduct = 3 ///< Error occured while looking up the product.
+ kGADInAppPurchaseStatusInvalidProduct = 3 ///< Error occurred while looking up the product.
};
/// The in-app purchase item to be purchased with the purchase flow handled by you, the
@@ -80,11 +78,11 @@ GAD_DEPRECATED_ATTRIBUTE
/// The product quantity.
@property(nonatomic, readonly, assign) NSInteger quantity;
-/// The GADInAppPurchaseDelegate object must call this method after handling the in-app purchase for
-/// both successful and unsuccessful purchase attempts. This method reports ad conversion and
+/// The GADInAppPurchaseDelegate object must call this method after handling the in-app purchase
+/// for both successful and unsuccessful purchase attempts. This method reports ad conversion and
/// purchase status information to Google.
- (void)reportPurchaseStatus:(GADInAppPurchaseStatus)purchaseStatus;
@end
-GAD_ASSUME_NONNULL_END
+NS_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADInAppPurchaseDelegate.h b/ios/platform/GoogleMobileAds.framework/Headers/GADInAppPurchaseDelegate.h
index b7e09a76..77c595fe 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADInAppPurchaseDelegate.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADInAppPurchaseDelegate.h
@@ -2,24 +2,23 @@
// GADInAppPurchaseDelegate.h
// Google Mobile Ads SDK
//
-// Copyright 2013 Google Inc. All rights reserved.
+// Copyright 2013 Google LLC. All rights reserved.
//
#import
-
#import
@class GADDefaultInAppPurchase;
@class GADInAppPurchase;
-GAD_ASSUME_NONNULL_BEGIN
+NS_ASSUME_NONNULL_BEGIN
#pragma mark - Default Purchase Flow
/// In-app purchase delegate protocol for default purchase handling. The delegate must deliver
/// the purchased item then call the GADDefaultInAppPurchase object's finishTransaction method.
GAD_DEPRECATED_ATTRIBUTE
-@protocol GADDefaultInAppPurchaseDelegate
+@protocol GADDefaultInAppPurchaseDelegate
/// Called when the user successfully paid for a purchase. You must first deliver the purchased
/// item to the user, then call defaultInAppPurchase's finishTransaction method.
@@ -39,7 +38,7 @@ GAD_DEPRECATED_ATTRIBUTE
/// In-app purchase delegate protocol for custom purchase handling. The delegate must handle the
/// product purchase flow then call the GADInAppPurchase object's reportPurchaseStatus: method.
GAD_DEPRECATED_ATTRIBUTE
-@protocol GADInAppPurchaseDelegate
+@protocol GADInAppPurchaseDelegate
/// Called when the user clicks on the buy button of an in-app purchase ad. After the receiver
/// handles the purchase, it must call the GADInAppPurchase object's reportPurchaseStatus: method.
@@ -47,4 +46,4 @@ GAD_DEPRECATED_ATTRIBUTE
@end
-GAD_ASSUME_NONNULL_END
+NS_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADInitializationStatus.h b/ios/platform/GoogleMobileAds.framework/Headers/GADInitializationStatus.h
new file mode 100644
index 00000000..a2084433
--- /dev/null
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADInitializationStatus.h
@@ -0,0 +1,39 @@
+//
+// GADInitializationStatus.h
+// Google Mobile Ads SDK
+//
+// Copyright 2018 Google LLC. All rights reserved.
+//
+
+#import
+
+typedef NS_ENUM(NSInteger, GADAdapterInitializationState) {
+ /// The mediation adapter is less likely to fill ad requests.
+ GADAdapterInitializationStateNotReady = 0,
+ /// The mediation adapter is ready to service ad requests.
+ GADAdapterInitializationStateReady = 1
+};
+
+/// An immutable snapshot of a mediation adapter's initialization status.
+@interface GADAdapterStatus : NSObject
+
+/// Initialization state of the adapter.
+@property(nonatomic, readonly) GADAdapterInitializationState state;
+
+/// Detailed description of the status.
+@property(nonatomic, readonly, nonnull) NSString *description;
+
+/// The adapter's initialization latency in seconds. 0 if initialization has not yet ended.
+@property(nonatomic, readonly) NSTimeInterval latency;
+
+@end
+
+/// An immutable snapshot of the Google Mobile Ads SDK's initialization status, categorized by
+/// mediation adapter.
+@interface GADInitializationStatus : NSObject
+/// Initialization status of each ad network available to the Google Mobile Ads SDK, keyed by its
+/// GADMAdapter's class name. The list of available ad networks may be incomplete during early
+/// phases of SDK initialization.
+@property(nonatomic, readonly, nonnull)
+ NSDictionary *adapterStatusesByClassName;
+@end
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADInstreamAd.h b/ios/platform/GoogleMobileAds.framework/Headers/GADInstreamAd.h
new file mode 100644
index 00000000..e2cef9db
--- /dev/null
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADInstreamAd.h
@@ -0,0 +1,53 @@
+//
+// GADInstreamAd.h
+// Google Mobile Ads SDK
+//
+// Copyright 2019 Google LLC. All rights reserved.
+//
+
+#import
+#import
+#import
+#import
+#import
+
+@class GADInstreamAd;
+
+/// Instream ad load completion handler. On load success, |instreamAd| is the non-nil instream ad
+/// and |error| is nil. On load failure, |instreamAd| is nil and |error| provides failure
+/// information.
+typedef void (^GADInstreamAdLoadCompletionHandler)(GADInstreamAd *_Nullable instreamAd,
+ NSError *_Nullable error);
+
+/// An instream ad.
+@interface GADInstreamAd : NSObject
+
+/// Loads an instream ad with the provided ad unit ID. Instream ads only support
+/// GADMediaAspectRatioLandscape and GADMediaAspectRatioPortrait media aspect ratios, defaulting to
+/// GADMediaAspectRatioLandscape. Calls the provided completion handler when the ad load completes.
++ (void)loadAdWithAdUnitID:(nonnull NSString *)adUnitID
+ request:(nullable GADRequest *)request
+ mediaAspectRatio:(GADMediaAspectRatio)mediaAspectRatio
+ completionHandler:(nonnull GADInstreamAdLoadCompletionHandler)completionHandler;
+
+/// Loads an instream ad with the provided ad tag. Calls the provided completion handler when the
+/// ad load completes.
++ (void)loadAdWithAdTag:(nonnull NSString *)adTag
+ completionHandler:(nonnull GADInstreamAdLoadCompletionHandler)completionHandler;
+
+/// Video controller for controlling to the video rendered by the instream ad.
+@property(nonatomic, readonly, nullable) GADVideoController *videoController;
+
+/// Information about the ad response that returned the ad.
+@property(nonatomic, readonly, nonnull) GADResponseInfo *responseInfo;
+
+/// Video duration.
+@property(nonatomic, readonly) NSTimeInterval duration;
+
+/// Video's current time.
+@property(nonatomic, readonly) NSTimeInterval currentTime;
+
+/// Video aspect ratio (width/height).
+@property(nonatomic, readonly) CGFloat aspectRatio;
+
+@end
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADInstreamAdView.h b/ios/platform/GoogleMobileAds.framework/Headers/GADInstreamAdView.h
new file mode 100644
index 00000000..b230044f
--- /dev/null
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADInstreamAdView.h
@@ -0,0 +1,16 @@
+//
+// GADInstreamAdView.h
+// Google Mobile Ads SDK
+//
+// Copyright 2019 Google LLC. All rights reserved.
+//
+
+#import
+
+/// A view that displays instream video ads.
+@interface GADInstreamAdView : UIView
+
+/// The instream ad. The ad will begin playing when the GADInstreamAdView is visible.
+@property(nonatomic, nullable) GADInstreamAd *ad;
+
+@end
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADInterstitial.h b/ios/platform/GoogleMobileAds.framework/Headers/GADInterstitial.h
index c0d0e02a..fcf0ff05 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADInterstitial.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADInterstitial.h
@@ -2,18 +2,16 @@
// GADInterstitial.h
// Google Mobile Ads SDK
//
-// Copyright 2011 Google Inc. All rights reserved.
+// Copyright 2011 Google LLC. All rights reserved.
//
-#import
-
#import
#import
#import
#import
+#import
#import
-
-GAD_ASSUME_NONNULL_BEGIN
+#import
/// An interstitial ad. This is a full-screen advertisement shown at natural transition points in
/// your application such as between game levels or news stories.
@@ -24,15 +22,15 @@ GAD_ASSUME_NONNULL_BEGIN
/// placement. Ad units are important for targeting and statistics.
///
/// Example AdMob ad unit ID: @"ca-app-pub-0123456789012345/0123456789"
-- (instancetype)initWithAdUnitID:(NSString *)adUnitID NS_DESIGNATED_INITIALIZER;
+- (nonnull instancetype)initWithAdUnitID:(nonnull NSString *)adUnitID NS_DESIGNATED_INITIALIZER;
#pragma mark Pre-Request
-/// Required value passed in with initWithAdUnitID:.
-@property(nonatomic, readonly, copy, GAD_NULLABLE) NSString *adUnitID;
+/// The interstitial's ad unit ID.
+@property(nonatomic, readonly, nullable) NSString *adUnitID;
/// Optional delegate object that receives state change notifications from this GADInterstitalAd.
-@property(nonatomic, weak, GAD_NULLABLE) id delegate;
+@property(nonatomic, weak, nullable) id delegate;
#pragma mark Making an Ad Request
@@ -42,23 +40,21 @@ GAD_ASSUME_NONNULL_BEGIN
/// This is best to do several seconds before the interstitial is needed to preload its content.
/// Then when transitioning between view controllers show the interstital with
/// presentFromViewController.
-- (void)loadRequest:(GADRequest *GAD_NULLABLE_TYPE)request;
+- (void)loadRequest:(nullable GADRequest *)request;
#pragma mark Post-Request
/// Returns YES if the interstitial is ready to be displayed. The delegate's
/// interstitialAdDidReceiveAd: will be called after this property switches from NO to YES.
-@property(nonatomic, readonly, assign) BOOL isReady;
+@property(nonatomic, readonly) BOOL isReady;
/// Returns YES if this object has already been presented. Interstitial objects can only be used
/// once even with different requests.
-@property(nonatomic, readonly, assign) BOOL hasBeenUsed;
+@property(nonatomic, readonly) BOOL hasBeenUsed;
-/// Returns the ad network class name that fetched the current ad. Returns nil while the latest ad
-/// request is in progress or if the latest ad request failed. For both standard and mediated Google
-/// AdMob ads, this property returns @"GADMAdapterGoogleAdMobAds". For ads fetched via mediation
-/// custom events, this property returns @"GADMAdapterCustomEvents".
-@property(nonatomic, readonly, copy, GAD_NULLABLE) NSString *adNetworkClassName;
+/// Information about the ad response that returned the current ad. Nil while an ad
+/// request is in progress or if the latest ad request failed.
+@property(nonatomic, readonly, nullable) GADResponseInfo *responseInfo;
/// Presents the interstitial ad which takes over the entire screen until the user dismisses it.
/// This has no effect unless isReady returns YES and/or the delegate's interstitialDidReceiveAd:
@@ -68,21 +64,23 @@ GAD_ASSUME_NONNULL_BEGIN
/// application does not use view controllers pass in nil and your views will be removed from the
/// window to show the interstitial and restored when done. After the interstitial has been removed,
/// the delegate's interstitialDidDismissScreen: will be called.
-- (void)presentFromRootViewController:(UIViewController *)rootViewController;
+- (void)presentFromRootViewController:(nonnull UIViewController *)rootViewController;
#pragma mark Deprecated
-/// Deprecated delegate. GADInAppPurchase has been deprecated.
-@property(nonatomic, weak, GAD_NULLABLE)
- id inAppPurchaseDelegate GAD_DEPRECATED_ATTRIBUTE;
+/// Deprecated delegate. GADInAppPurchase is deprecated.
+@property(nonatomic, weak, nullable) id inAppPurchaseDelegate
+ GAD_DEPRECATED_ATTRIBUTE;
/// Deprecated intializer. Use initWithAdUnitID: instead.
-- (instancetype)init GAD_DEPRECATED_MSG_ATTRIBUTE("Use initWithAdUnitID:.");
+- (nonnull instancetype)init GAD_DEPRECATED_MSG_ATTRIBUTE("Use initWithAdUnitID:.");
/// Deprecated setter, use initWithAdUnitID: instead.
-- (void)setAdUnitID:(NSString *GAD_NULLABLE_TYPE)adUnitID
+- (void)setAdUnitID:(nullable NSString *)adUnitID
GAD_DEPRECATED_MSG_ATTRIBUTE("Use initWithAdUnitID: instead of setting the ad unit ID.");
-@end
+/// Deprecated. Use responseInfo.adNetworkClassName instead.
+@property(nonatomic, readonly, nullable) NSString *adNetworkClassName GAD_DEPRECATED_MSG_ATTRIBUTE(
+ "Use responseInfo.adNetworkClassName.");
-GAD_ASSUME_NONNULL_END
+@end
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADInterstitialDelegate.h b/ios/platform/GoogleMobileAds.framework/Headers/GADInterstitialDelegate.h
index 4fbff885..a496e6c9 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADInterstitialDelegate.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADInterstitialDelegate.h
@@ -2,21 +2,20 @@
// GADInterstitialDelegate.h
// Google Mobile Ads SDK
//
-// Copyright 2011 Google Inc. All rights reserved.
+// Copyright 2011 Google LLC. All rights reserved.
//
#import
-
#import
#import
@class GADInterstitial;
-GAD_ASSUME_NONNULL_BEGIN
+NS_ASSUME_NONNULL_BEGIN
/// Delegate for receiving state change messages from a GADInterstitial such as interstitial ad
/// requests succeeding/failing.
-@protocol GADInterstitialDelegate
+@protocol GADInterstitialDelegate
@optional
@@ -55,4 +54,4 @@ GAD_ASSUME_NONNULL_BEGIN
@end
-GAD_ASSUME_NONNULL_END
+NS_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADMediaAspectRatio.h b/ios/platform/GoogleMobileAds.framework/Headers/GADMediaAspectRatio.h
new file mode 100644
index 00000000..eba2b9bd
--- /dev/null
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADMediaAspectRatio.h
@@ -0,0 +1,22 @@
+//
+// GADMediaAspectRatio.h
+// Google Mobile Ads SDK
+//
+// Copyright 2019 Google LLC. All rights reserved.
+//
+
+#import
+
+/// Media aspect ratio.
+typedef NS_ENUM(NSInteger, GADMediaAspectRatio) {
+ /// Unknown media aspect ratio.
+ GADMediaAspectRatioUnknown = 0,
+ /// Any media aspect ratio.
+ GADMediaAspectRatioAny = 1,
+ /// Landscape media aspect ratio.
+ GADMediaAspectRatioLandscape = 2,
+ /// Portrait media aspect ratio.
+ GADMediaAspectRatioPortrait = 3,
+ /// Close to square media aspect ratio. This is not a strict 1:1 aspect ratio.
+ GADMediaAspectRatioSquare = 4
+};
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADMediaContent.h b/ios/platform/GoogleMobileAds.framework/Headers/GADMediaContent.h
new file mode 100644
index 00000000..0d5cfa21
--- /dev/null
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADMediaContent.h
@@ -0,0 +1,28 @@
+//
+// GADMediaContent.h
+// Google Mobile Ads SDK
+//
+// Copyright 2019 Google LLC. All rights reserved.
+//
+
+#import
+#import
+
+/// Provides media content information. Interact with instances of this class on the main queue
+/// only.
+@interface GADMediaContent : NSObject
+
+/// Media content aspect ratio (width/height). The value is 0 when there's no media content or the
+/// media content aspect ratio is unknown.
+@property(nonatomic, readonly) CGFloat aspectRatio;
+
+/// The main image to be displayed when the media content doesn't contain video.
+@property(nonatomic, nullable) UIImage *mainImage;
+
+/// Controls the media content's video.
+@property(nonatomic, readonly, nonnull) GADVideoController *videoController;
+
+/// Indicates whether the media content has video content.
+@property(nonatomic, readonly) BOOL hasVideoContent;
+
+@end
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADMediaView.h b/ios/platform/GoogleMobileAds.framework/Headers/GADMediaView.h
index 11f7d105..67d8a2dc 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADMediaView.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADMediaView.h
@@ -2,28 +2,33 @@
// GADMediaView.h
// Google Mobile Ads SDK
//
-// Copyright 2016 Google Inc. All rights reserved.
+// Copyright 2019 Google LLC. All rights reserved.
//
-#import
-
-#import
+#import
#import
+#import
-GAD_ASSUME_NONNULL_BEGIN
+NS_ASSUME_NONNULL_BEGIN
-/// Displays native ad media assets.
+/// Displays native ad media content.
///
-/// To display media assets in GADNativeAppInstallAdView instances, add a GADMediaView subview and
-/// assign the native ad view's mediaView property.
+/// To display media content in GADUnifiedNativeAdView instances, add a GADMediaView subview,
+/// assign the native ad view's mediaView property, and set the native ad's mediaContent property to
+/// the media view.
///
-/// If the native ad doesn't contain a video and image loading is enabled, the GADMediaView displays
-/// the native ad's |images| asset's first image.
+/// If the native ad contains video content, the media view displays the video content.
///
-/// If the native ad doesn't contain a video and image loading is disabled, the GADMediaView object
-/// is empty.
+/// If the native ad doesn't have video content and image loading is enabled, the media view
+/// displays the first image from the native ad's |images| property.
+///
+/// If the native ad doesn't have video content and image loading is disabled, the media view is
+/// empty.
@interface GADMediaView : UIView
+/// The media content displayed in the media view.
+@property(nonatomic, nullable) GADMediaContent *mediaContent;
+
@end
-GAD_ASSUME_NONNULL_END
+NS_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADMobileAds.h b/ios/platform/GoogleMobileAds.framework/Headers/GADMobileAds.h
index 80e29e55..549841f4 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADMobileAds.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADMobileAds.h
@@ -2,24 +2,25 @@
// GADMobileAds.h
// Google Mobile Ads SDK
//
-// Copyright 2015 Google Inc. All rights reserved.
+// Copyright 2015 Google LLC. All rights reserved.
//
#import
#import
+#import
+#import
#import
-GAD_ASSUME_NONNULL_BEGIN
+/// A block called with the initialization status when [GADMobileAds startWithCompletionHandler:]
+/// completes or times out.
+typedef void (^GADInitializationCompletionHandler)(GADInitializationStatus *_Nonnull status);
/// Google Mobile Ads SDK settings.
@interface GADMobileAds : NSObject
/// Returns the shared GADMobileAds instance.
-+ (GADMobileAds *)sharedInstance;
-
-/// Configures the SDK using the settings associated with the given application ID.
-+ (void)configureWithApplicationID:(NSString *)applicationID;
++ (nonnull GADMobileAds *)sharedInstance;
/// Disables automated in app purchase (IAP) reporting. Must be called before any IAP transaction is
/// initiated. IAP reporting is used to track IAP ad conversions. Do not disable reporting if you
@@ -37,13 +38,19 @@ GAD_ASSUME_NONNULL_BEGIN
/// volumes). Defaults to 1.0.
@property(nonatomic, assign) float applicationVolume;
-/// Indicates if the application's audio is muted. Affects initial mute state for all ads. Use this
-/// method only if your application has its own volume controls (e.g., custom music or sound effect
-/// muting). Defaults to NO.
+/// Indicates whether the application's audio is muted. Affects initial mute state for all ads. Use
+/// this method only if your application has its own volume controls (e.g., custom music or sound
+/// effect muting). Defaults to NO.
@property(nonatomic, assign) BOOL applicationMuted;
/// Manages the Google Mobile Ads SDK's audio and video settings.
-@property(nonatomic, readonly, strong) GADAudioVideoManager *audioVideoManager;
+@property(nonatomic, readonly, strong, nonnull) GADAudioVideoManager *audioVideoManager;
+
+/// Request configuration that is common to all requests.
+@property(nonatomic, readonly, strong, nonnull) GADRequestConfiguration *requestConfiguration;
+
+/// Initialization status of the ad networks available to the Google Mobile Ads SDK.
+@property(nonatomic, nonnull, readonly) GADInitializationStatus *initializationStatus;
/// Returns YES if the current SDK version is at least |major|.|minor|.|patch|. This method can be
/// used by libraries that depend on a specific minimum version of the Google Mobile Ads SDK to warn
@@ -54,6 +61,16 @@ GAD_ASSUME_NONNULL_BEGIN
/// Ads SDK lower than 7.10 can crash the app.
- (BOOL)isSDKVersionAtLeastMajor:(NSInteger)major minor:(NSInteger)minor patch:(NSInteger)patch;
-@end
+/// Starts the Google Mobile Ads SDK. Call this method as early as possible to reduce latency on the
+/// session's first ad request. Calls completionHandler when the GMA SDK and all mediation networks
+/// are fully set up or if set-up times out. The Google Mobile Ads SDK starts on the first ad
+/// request if this method is not called.
+- (void)startWithCompletionHandler:(nullable GADInitializationCompletionHandler)completionHandler;
-GAD_ASSUME_NONNULL_END
+#pragma mark Deprecated
+
+/// Configures the SDK using the settings associated with the given application ID.
++ (void)configureWithApplicationID:(nonnull NSString *)applicationID
+ GAD_DEPRECATED_MSG_ATTRIBUTE("Use [GADMobileAds.sharedInstance startWithCompletionHandler:]");
+
+@end
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADMultipleAdsAdLoaderOptions.h b/ios/platform/GoogleMobileAds.framework/Headers/GADMultipleAdsAdLoaderOptions.h
index 81b1705a..04a6018d 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADMultipleAdsAdLoaderOptions.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADMultipleAdsAdLoaderOptions.h
@@ -2,12 +2,12 @@
// GADMultipleAdsAdLoaderOptions.h
// Google Mobile Ads SDK
//
-// Copyright 2017 Google Inc. All rights reserved.
+// Copyright 2017 Google LLC. All rights reserved.
//
#import
-GAD_ASSUME_NONNULL_BEGIN
+NS_ASSUME_NONNULL_BEGIN
/// Ad loader options for requesting multiple ads. Requesting multiple ads in a single request is
/// currently only available for native app install ads and native content ads.
@@ -24,4 +24,4 @@ GAD_ASSUME_NONNULL_BEGIN
@end
-GAD_ASSUME_NONNULL_END
+NS_ASSUME_NONNULL_END
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADMuteThisAdReason.h b/ios/platform/GoogleMobileAds.framework/Headers/GADMuteThisAdReason.h
new file mode 100644
index 00000000..6172be51
--- /dev/null
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADMuteThisAdReason.h
@@ -0,0 +1,16 @@
+//
+// GADMuteThisAdReason.h
+// Google Mobile Ads SDK
+//
+// Copyright 2018 Google LLC. All rights reserved.
+//
+
+#import
+
+/// Reason for muting the ad.
+@interface GADMuteThisAdReason : NSObject
+
+/// Text that describes the reason for muting this ad. For example "Ad Covered Content".
+@property(nonatomic, readonly, nonnull) NSString *reasonDescription;
+
+@end
diff --git a/ios/platform/GoogleMobileAds.framework/Headers/GADNativeAd.h b/ios/platform/GoogleMobileAds.framework/Headers/GADNativeAd.h
index c454404f..620f9191 100644
--- a/ios/platform/GoogleMobileAds.framework/Headers/GADNativeAd.h
+++ b/ios/platform/GoogleMobileAds.framework/Headers/GADNativeAd.h
@@ -2,15 +2,14 @@
// GADNativeAd.h
// Google Mobile Ads SDK
//
-// Copyright 2015 Google Inc. All rights reserved.
+// Copyright 2015 Google LLC. All rights reserved.
//
#import
-#import
-
#import