Skip to content

Commit

Permalink
add admob 7.18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Monroe Ekilah committed Apr 21, 2017
1 parent 25ee864 commit 1b63290
Show file tree
Hide file tree
Showing 76 changed files with 2,161 additions and 296 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ xcuserdata
*.moved-aside
DerivedData
*.xcuserstate

build.config
4 changes: 2 additions & 2 deletions build.config → build.config.dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Path to AIR SDK
air.sdk = /Applications/Adobe\ Flash\ Builder\ 4.7/sdks/AIR3.7_4.6.0
# Path to AIR SDK - replace {AIR_SDK_PATH} with the path to your machine's AIR SDK directory
air.sdk = {AIR_SDK_PATH}

# Directories of the individual platform projects
# Each platform project must have an ant build script (i.e. 'build.xml')
Expand Down
91 changes: 89 additions & 2 deletions ios/Vendor/GoogleMobileAds.framework/Modules/module.modulemap
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,99 @@ framework module GoogleMobileAds {
link framework "AVFoundation"
link framework "CoreGraphics"
link framework "CoreMedia"
link framework "CoreMotion"
link framework "CoreTelephony"
link framework "EventKit"
link framework "EventKitUI"
link framework "CoreVideo"
link framework "Foundation"
link framework "GLKit"
link framework "JavaScriptCore"
link framework "MediaPlayer"
link framework "MessageUI"
link framework "MobileCoreServices"
link framework "OpenGLES"
link framework "SafariServices"
link framework "StoreKit"
link framework "SystemConfiguration"
link framework "UIKit"
link framework "WebKit"

header "GoogleMobileAdsDefines.h"

header "GADAdDelegate.h"
header "GADAdNetworkExtras.h"
header "GADAdSize.h"
header "GADBannerView.h"
header "GADBannerViewDelegate.h"
header "GADCorrelator.h"
header "GADCorrelatorAdLoaderOptions.h"
header "GADDebugOptionsViewController.h"
header "GADExtras.h"
header "GADInAppPurchase.h"
header "GADInAppPurchaseDelegate.h"
header "GADInterstitial.h"
header "GADInterstitialDelegate.h"
header "GADMediaView.h"
header "GADMobileAds.h"
header "GADNativeExpressAdView.h"
header "GADNativeExpressAdViewDelegate.h"
header "GADRequest.h"
header "GADRequestError.h"
header "GADVideoController.h"
header "GADVideoControllerDelegate.h"
header "GADVideoOptions.h"

header "DFPBannerView.h"
header "DFPCustomRenderedAd.h"
header "DFPCustomRenderedBannerViewDelegate.h"
header "DFPCustomRenderedInterstitialDelegate.h"
header "DFPInterstitial.h"
header "DFPRequest.h"
header "GADAdSizeDelegate.h"
header "GADAppEventDelegate.h"

header "GADAdLoader.h"
header "GADAdLoaderAdTypes.h"
header "GADAdLoaderDelegate.h"

header "GADAdChoicesView.h"
header "GADNativeAd.h"
header "GADNativeAdDelegate.h"
header "GADNativeAdImage.h"
header "GADNativeAdImage+Mediation.h"
header "GADNativeAppInstallAd.h"
header "GADNativeContentAd.h"
header "GADNativeCustomTemplateAd.h"

header "GADNativeAdImageAdLoaderOptions.h"
header "GADNativeAdViewAdOptions.h"

header "GADCustomEventBanner.h"
header "GADCustomEventBannerDelegate.h"
header "GADCustomEventExtras.h"
header "GADCustomEventInterstitial.h"
header "GADCustomEventInterstitialDelegate.h"
header "GADCustomEventNativeAd.h"
header "GADCustomEventNativeAdDelegate.h"
header "GADCustomEventParameters.h"
header "GADCustomEventRequest.h"
header "GADMediatedNativeAd.h"
header "GADMediatedNativeAdDelegate.h"
header "GADMediatedNativeAdNotificationSource.h"
header "GADMediatedNativeAppInstallAd.h"
header "GADMediatedNativeContentAd.h"

header "GADDynamicHeightSearchRequest.h"
header "GADSearchBannerView.h"
header "GADSearchRequest.h"

header "GADAdReward.h"
header "GADRewardBasedVideoAd.h"
header "GADRewardBasedVideoAdDelegate.h"

header "Mediation/GADMAdNetworkAdapterProtocol.h"
header "Mediation/GADMAdNetworkConnectorProtocol.h"
header "Mediation/GADMediationAdRequest.h"
header "Mediation/GADMEnums.h"
header "Mediation/GADMRewardBasedVideoAdNetworkAdapterProtocol.h"
header "Mediation/GADMRewardBasedVideoAdNetworkConnectorProtocol.h"
}
Binary file modified ios/Vendor/GoogleMobileAds.framework/Versions/A/GoogleMobileAds
100644 → 100755
Binary file not shown.
49 changes: 32 additions & 17 deletions ios/Vendor/GoogleMobileAds.framework/Versions/A/Headers/DFPBannerView.h
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
// Copyright 2012 Google Inc. All rights reserved.
//

#import <GoogleMobileAds/DFPCustomRenderedBannerViewDelegate.h>
#import <GoogleMobileAds/GADAppEventDelegate.h>
#import <GoogleMobileAds/GADBannerView.h>
#import <GoogleMobileAds/GADCorrelator.h>
#import <GoogleMobileAds/GADVideoController.h>
#import <GoogleMobileAds/GoogleMobileAdsDefines.h>

@protocol DFPCustomRenderedBannerViewDelegate;
@protocol GADAdSizeDelegate;
@protocol GADAppEventDelegate;
GAD_ASSUME_NONNULL_BEGIN

/// The view that displays DoubleClick For Publishers banner ads.
@interface DFPBannerView : GADBannerView
Expand All @@ -20,60 +22,73 @@
/// for targeting and statistics.
///
/// Example DFP ad unit ID: @"/6499/example/banner"
@property(nonatomic, copy) NSString *adUnitID;
@property(nonatomic, copy, GAD_NULLABLE) NSString *adUnitID;

/// Optional delegate that is notified when creatives send app events.
@property(nonatomic, weak) IBOutlet id<GADAppEventDelegate> appEventDelegate;
@property(nonatomic, weak, GAD_NULLABLE) IBOutlet id<GADAppEventDelegate> appEventDelegate;

/// Optional delegate that is notified when creatives cause the banner to change size. To avoid
/// crashing the app, remember to nil this property before releasing the object that implements the
/// GADAdSizeDelegate protocol.
@property(nonatomic, weak) IBOutlet id<GADAdSizeDelegate> adSizeDelegate;
/// Optional delegate that is notified when creatives cause the banner to change size.
@property(nonatomic, weak, GAD_NULLABLE) IBOutlet id<GADAdSizeDelegate> 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
/// standard ad sizes (such as kGADAdSizeBanner), or create one using the GADAdSizeFromCGSize
/// method.
///
/// \see setValidAdSizesWithSizes:
///
/// Example:
/// \code
///
/// <pre>
/// NSArray *validSizes = @[
/// NSValueFromGADAdSize(kGADAdSizeBanner),
/// NSValueFromGADAdSize(kGADAdSizeLargeBanner)
/// ];
///
/// bannerView.validAdSizes = validSizes;
/// \endcode
@property(nonatomic, copy) NSArray *validAdSizes;
/// </pre>
@property(nonatomic, copy, GAD_NULLABLE) NSArray *validAdSizes;

/// Correlator object for correlating this object to other ad objects.
@property(nonatomic, strong, GAD_NULLABLE) GADCorrelator *correlator;

/// Indicates that the publisher will record impressions manually when the ad becomes visible to the
/// user.
@property(nonatomic, assign) BOOL enableManualImpressions;

/// Optional delegate object for custom rendered ads.
@property(nonatomic, weak)
@property(nonatomic, weak, GAD_NULLABLE)
IBOutlet id<DFPCustomRenderedBannerViewDelegate> customRenderedBannerViewDelegate;

/// Video controller for controlling video rendered by this ad view.
@property(nonatomic, strong, readonly) GADVideoController *videoController;

/// If you've set enableManualImpressions to YES, call this method when the ad is visible.
- (void)recordImpression;

/// Use this function to resize the banner view without launching a new ad request.
- (void)resize:(GADAdSize)size;

/// Sets options that configure ad loading.
///
/// @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;

#pragma mark Deprecated

/// Deprecated. Use the validAdSizes property.
/// Sets the receiver's valid ad sizes to the values pointed to by the provided NULL terminated list
/// of GADAdSize pointers.
///
/// Example:
/// \code
///
/// <pre>
/// GADAdSize size1 = kGADAdSizeBanner;
/// GADAdSize size2 = kGADAdSizeLargeBanner;
/// [bannerView setValidAdSizesWithSizes:&size1, &size2, NULL];
/// \endcode
/// </pre>
- (void)setValidAdSizesWithSizes:(GADAdSize *)firstSize, ... NS_REQUIRES_NIL_TERMINATION
GAD_DEPRECATED_MSG_ATTRIBUTE("Use validAdSizes property.");

@end

GAD_ASSUME_NONNULL_END
10 changes: 8 additions & 2 deletions ios/Vendor/GoogleMobileAds.framework/Versions/A/Headers/DFPCustomRenderedAd.h
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@

#import <UIKit/UIKit.h>

#import <GoogleMobileAds/GoogleMobileAdsDefines.h>

GAD_ASSUME_NONNULL_BEGIN

/// Custom rendered ad. Your application renders the ad.
@interface DFPCustomRenderedAd : NSObject

/// The ad's HTML.
@property(nonatomic, copy, readonly) NSString *adHTML;
@property(nonatomic, readonly, copy) NSString *adHTML;

/// The base URL of the ad's HTML.
@property(nonatomic, copy, readonly) NSURL *adBaseURL;
@property(nonatomic, readonly, copy) NSURL *adBaseURL;

/// Call this method when the user clicks the ad.
- (void)recordClick;
Expand All @@ -26,3 +30,5 @@
- (void)finishedRenderingAdView:(UIView *)view;

@end

GAD_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,22 @@

#import <UIKit/UIKit.h>

#import <GoogleMobileAds/GoogleMobileAdsDefines.h>

@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<NSObject>

/// Called after ad data has been received. You must construct a banner from |customRenderedAd| and
/// call the |customRenderedAd| object's finishedRenderingAdView: when the ad is rendered.
/// call the |customRenderedAd| object's finishedRenderingAdView: when the ad has been rendered.
- (void)bannerView:(DFPBannerView *)bannerView
didReceiveCustomRenderedAd:(DFPCustomRenderedAd *)customRenderedAd;

@end

GAD_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@

#import <Foundation/Foundation.h>

#import <GoogleMobileAds/GoogleMobileAdsDefines.h>

@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<NSObject>

/// Called after ad data has been received. You must construct an interstitial from
Expand All @@ -19,3 +25,5 @@
didReceiveCustomRenderedAd:(DFPCustomRenderedAd *)customRenderedAd;

@end

GAD_ASSUME_NONNULL_END
18 changes: 14 additions & 4 deletions ios/Vendor/GoogleMobileAds.framework/Versions/A/Headers/DFPInterstitial.h
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@
// Copyright 2012 Google Inc. All rights reserved.
//

#import <GoogleMobileAds/DFPCustomRenderedInterstitialDelegate.h>
#import <GoogleMobileAds/GADAppEventDelegate.h>
#import <GoogleMobileAds/GADCorrelator.h>
#import <GoogleMobileAds/GADInterstitial.h>
#import <GoogleMobileAds/GoogleMobileAdsDefines.h>

@protocol DFPCustomRenderedInterstitialDelegate;
@protocol GADAppEventDelegate;
GAD_ASSUME_NONNULL_BEGIN

/// DoubleClick For Publishers 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
Expand All @@ -19,11 +24,16 @@
/// 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;

/// Optional delegate that is notified when creatives send app events.
@property(nonatomic, weak) id<GADAppEventDelegate> appEventDelegate;
@property(nonatomic, weak, GAD_NULLABLE) id<GADAppEventDelegate> appEventDelegate;

/// Optional delegate object for custom rendered ads.
@property(nonatomic, weak)
@property(nonatomic, weak, GAD_NULLABLE)
id<DFPCustomRenderedInterstitialDelegate> customRenderedInterstitialDelegate;

@end

GAD_ASSUME_NONNULL_END
17 changes: 11 additions & 6 deletions ios/Vendor/GoogleMobileAds.framework/Versions/A/Headers/DFPRequest.h
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,28 @@
#import <GoogleMobileAds/GADRequest.h>
#import <GoogleMobileAds/GoogleMobileAdsDefines.h>

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;

/// Specifies optional parameters for ad requests.
@interface DFPRequest : GADRequest

/// Publisher provided user ID.
@property(nonatomic, copy) NSString *publisherProvidedID;
@property(nonatomic, copy, GAD_NULLABLE) NSString *publisherProvidedID;

/// Array of strings used to exclude specified categories in ad results.
@property(nonatomic, copy) NSArray *categoryExclusions;
@property(nonatomic, copy, GAD_NULLABLE) NSArray *categoryExclusions;

/// Key-value pairs used for custom targeting.
@property(nonatomic, copy) NSDictionary *customTargeting;
@property(nonatomic, copy, GAD_NULLABLE) NSDictionary *customTargeting;

/// Update the ad correlator. Ad slots with the same correlation value are grouped for roadblocking.
/// After updating the correlator, load new requests in all DFP ads.
+ (void)updateCorrelator;
/// 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.");

@end

GAD_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
//
// GADAdChoicesView.h
// Google Mobile Ads SDK
//
// Copyright 2016 Google Inc. All rights reserved.
//

#import <UIKit/UIKit.h>

#import <GoogleMobileAds/GoogleMobileAdsDefines.h>

GAD_ASSUME_NONNULL_BEGIN

/// Displays AdChoices content.
///
/// If a GADAdChoicesView is set on GADNativeAppInstallAdView or GADNativeContentAdView prior to
/// calling -setNativeAppInstallAd: or -setNativeContentAd:, AdChoices content will render inside
/// the GADAdChoicesView. By default, AdChoices is placed in the top right corner of
/// GADNativeAppInstallAdView and GADNativeContentAdView.
@interface GADAdChoicesView : UIView
@end

GAD_ASSUME_NONNULL_END
Loading

0 comments on commit 1b63290

Please sign in to comment.