Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
scottrules44 committed Dec 3, 2024
1 parent 96e0eb8 commit f63f60f
Show file tree
Hide file tree
Showing 218 changed files with 9,862 additions and 2 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//
// GADNativeAdViewAdOptions.h
// Google Mobile Ads SDK
//
// Copyright 2023 Google LLC. All rights reserved.
//

#import <Foundation/Foundation.h>

/// Position of the AdChoices icon in the containing ad.
typedef NS_ENUM(NSInteger, GADAdChoicesPosition) {
GADAdChoicesPositionTopRightCorner, ///< Top right corner.
GADAdChoicesPositionTopLeftCorner, ///< Top left corner.
GADAdChoicesPositionBottomRightCorner, ///< Bottom right corner.
GADAdChoicesPositionBottomLeftCorner ///< Bottom Left Corner.
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//
// GADAdChoicesView.h
// Google Mobile Ads SDK
//
// Copyright 2016 Google LLC. All rights reserved.
//

#import <UIKit/UIKit.h>

/// Displays AdChoices content.
///
/// If a GADAdChoicesView is set on GADNativeAdView prior to calling -setNativeAd:, AdChoices
/// content will render inside the GADAdChoicesView. By default, AdChoices is placed in the top
/// right corner of GADNativeAdView.
@interface GADAdChoicesView : UIView
@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// GADAdFormat.h
// Google Mobile Ads SDK
//
// Copyright 2018-2022 Google LLC. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <GoogleMobileAds/GoogleMobileAdsDefines.h>

/// Requested ad format.
typedef NS_ENUM(NSInteger, GADAdFormat) {
GADAdFormatBanner = 0, ///< Banner.
GADAdFormatInterstitial = 1, ///< Interstitial.
GADAdFormatRewarded = 2, ///< Rewarded.
GADAdFormatNative = 3, ///< Native.
GADAdFormatRewardedInterstitial = 4, ///< Rewarded interstitial.
GADAdFormatAppOpen = 6, ///< App open.
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//
// GADAdLoader+ServerToServer.h
// Google Mobile Ads SDK
//
// Copyright 2024 Google LLC. All rights reserved.
//

#import <GoogleMobileAds/GADAdLoader.h>

/// Provides server-to-server request methods.
@interface GADAdLoader (ServerToServer)

/// Returns an initialized ad loader.
///
/// @param rootViewController The root view controller used to present ad click actions.
- (nonnull instancetype)initWithRootViewController:(nullable UIViewController *)rootViewController;

/// Loads the ad and informs the delegate of the outcome.
- (void)loadWithAdResponseString:(nonnull NSString *)adResponseString;

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
//
// GADAdLoader.h
// Google Mobile Ads SDK
//
// Copyright 2015 Google LLC. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <GoogleMobileAds/GADAdLoaderAdTypes.h>
#import <GoogleMobileAds/GADAdLoaderDelegate.h>
#import <GoogleMobileAds/GADRequest.h>
#import <UIKit/UIKit.h>

/// Ad loader options base class. See each ad type's header for available GADAdLoaderOptions
/// subclasses.
@interface GADAdLoaderOptions : NSObject
@end

/// Loads ads. See GADAdLoaderAdTypes.h for available ad types.
@interface GADAdLoader : NSObject

/// Object notified when an ad request succeeds or fails. Must conform to requested ad types'
/// delegate protocol. This property must be set before initiating ad requests.
@property(nonatomic, weak, nullable) id<GADAdLoaderDelegate> delegate;

/// The ad loader's ad unit ID.
@property(nonatomic, readonly, nonnull) NSString *adUnitID;

/// Indicates whether the ad loader is loading.
@property(nonatomic, getter=isLoading, readonly) BOOL loading;

/// Returns an initialized ad loader configured to load the specified ad types.
///
/// @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.
- (nonnull instancetype)initWithAdUnitID:(nonnull NSString *)adUnitID
rootViewController:(nullable UIViewController *)rootViewController
adTypes:(nonnull NSArray<GADAdLoaderAdType> *)adTypes
options:(nullable NSArray<GADAdLoaderOptions *> *)options;

/// Loads the ad and informs the delegate of the outcome.
- (void)loadRequest:(nullable GADRequest *)request;

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
//
// GADAdLoaderAdTypes.h
// Google Mobile Ads SDK
//
// Copyright 2015 Google LLC. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <GoogleMobileAds/GoogleMobileAdsDefines.h>

typedef NSString *GADAdLoaderAdType NS_TYPED_ENUM;

/// Use with GADAdLoader to request native custom template ads. To receive ads, the ad loader's
/// delegate must conform to the GADCustomNativeAdLoaderDelegate protocol. See GADCustomNativeAd.h.
FOUNDATION_EXPORT GADAdLoaderAdType _Nonnull const GADAdLoaderAdTypeCustomNative;

/// Use with GADAdLoader to request Google Ad Manager banner ads. To receive ads, the ad loader's
/// delegate must conform to the GAMBannerAdLoaderDelegate protocol. See GAMBannerView.h.
FOUNDATION_EXPORT GADAdLoaderAdType _Nonnull const GADAdLoaderAdTypeGAMBanner;

/// Use with GADAdLoader to request native ads. To receive ads, the ad loader's delegate must
/// conform to the GADNativeAdLoaderDelegate protocol. See GADNativeAd.h.
FOUNDATION_EXPORT GADAdLoaderAdType _Nonnull const GADAdLoaderAdTypeNative;
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//
// GADAdLoaderDelegate.h
// Google Mobile Ads SDK
//
// Copyright 2015 Google LLC. All rights reserved.
//

#import <Foundation/Foundation.h>

@class GADAdLoader;

/// Base ad loader delegate protocol. Ad types provide extended protocols that declare methods to
/// handle successful ad loads.
@protocol GADAdLoaderDelegate <NSObject>

/// Called when adLoader fails to load an ad.
- (void)adLoader:(nonnull GADAdLoader *)adLoader
didFailToReceiveAdWithError:(nonnull NSError *)error;

@optional

/// Called after adLoader has finished loading.
- (void)adLoaderDidFinishLoading:(nonnull GADAdLoader *)adLoader;

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
//
// GADAdMetadata.h
// Google Mobile Ads SDK
//
// Copyright 2017 Google LLC. All rights reserved.
//

#import <Foundation/Foundation.h>

/// Ad metadata key type.
typedef NSString *GADAdMetadataKey NS_TYPED_ENUM;

@protocol GADAdMetadataDelegate;

/// Protocol for ads that provide ad metadata.
@protocol GADAdMetadataProvider <NSObject>

/// The ad's metadata. Use adMetadataDelegate to receive ad metadata change messages.
@property(nonatomic, readonly, nullable) NSDictionary<GADAdMetadataKey, id> *adMetadata;

/// Delegate for receiving ad metadata changes.
@property(nonatomic, weak, nullable) id<GADAdMetadataDelegate> adMetadataDelegate;

@end

/// Delegate protocol for receiving ad metadata change messages from a GADAdMetadataProvider.
@protocol GADAdMetadataDelegate <NSObject>

/// Tells the delegate that the ad's metadata changed. Called when an ad loads and when a loaded
/// ad's metadata changes.
- (void)adMetadataDidChange:(nonnull id<GADAdMetadataProvider>)ad;

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//
// GADAdNetworkExtras.h
// Google Mobile Ads SDK
//
// Copyright 2012 Google LLC. All rights reserved.
//

#import <Foundation/Foundation.h>

/// 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 <NSObject>
@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//
// GADAdReward.h
// Google Mobile Ads SDK
//
// Copyright 2015 Google LLC. All rights reserved.
//

#import <Foundation/Foundation.h>

/// A block to be executed when the user earns a reward.
typedef void (^GADUserDidEarnRewardHandler)(void);

/// Ad reward information.
@interface GADAdReward : NSObject

/// Type of the reward.
@property(nonatomic, readonly, nonnull) NSString *type;

/// Amount rewarded to the user.
@property(nonatomic, readonly, nonnull) NSDecimalNumber *amount;

/// Returns an initialized GADAdReward with the provided reward type and reward amount.
- (nonnull instancetype)initWithRewardType:(nullable NSString *)rewardType
rewardAmount:(nullable NSDecimalNumber *)rewardAmount
NS_DESIGNATED_INITIALIZER;

@end
Loading

0 comments on commit f63f60f

Please sign in to comment.