Skip to content

Commit

Permalink
Appodeal Update 3.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
scottrules44 committed Jul 8, 2024
1 parent e8d9812 commit 67ad57e
Show file tree
Hide file tree
Showing 257 changed files with 11,615 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/2018.3326/android/corona.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
dependencies {
implementation 'com.appodeal.ads.sdk.networks:ironsource:3.2.1.0'
implementation 'com.appodeal.ads.sdk.networks:ironsource:3.3.1.0'
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
//
// ISAdData.h
// IronSource
//
// Created by Yonti Makmel on 22/04/2021.
// Copyright © 2021 ironSource. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ISAdapterConfig.h"
#import "ISBannerSize.h"

NS_ASSUME_NONNULL_BEGIN

@interface ISAdData : NSObject

// The server data containing the adm
@property(nonatomic, strong, readonly, nullable) NSString *serverData;

// The server configuration
@property(nonatomic, strong, readonly) NSDictionary *configuration;

// The configuration holding userId, banner size, ad unit data from auction response and adapter
// config
@property(nonatomic, strong, readonly, nullable) NSDictionary *adUnitData;

+ (instancetype)adDataWithAdapterConfiguration:(ISAdapterConfig *)config
adUnit:(ISAdUnit *)adUnit
userId:(NSString *)userId;

+ (instancetype)adDataWithAdapterConfiguration:(ISAdapterConfig *)config
adUnit:(ISAdUnit *)adUnit
userId:(NSString *)userId
bannerSize:(ISBannerSize *)bannerSize;

- (instancetype)initWithServerData:(nullable NSString *)serverData
configuration:(NSDictionary *)configuration
adUnitData:(nullable NSDictionary *)adUnitData;

- (nullable NSString *)getString:(NSString *)key;

- (NSInteger)getInt:(NSString *)key;

- (BOOL)getBoolean:(NSString *)key;

- (nullable NSNumber *)getNumber:(NSString *)key;

- (nullable NSDictionary *)getAdUnitData;

@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
//
// ISAdInfo.h
// IronSource
//
// Copyright © 2022 IronSource. All rights reserved.
//

#import "ISImpressionData.h"

NS_ASSUME_NONNULL_BEGIN

@interface ISAdInfo : NSObject

@property(readonly, copy) NSString* auction_id;
@property(readonly, copy) NSString* ad_unit;
@property(readonly, copy) NSString* ad_network;
@property(readonly, copy) NSString* instance_name;
@property(readonly, copy) NSString* instance_id;
@property(readonly, copy) NSString* country;
@property(readonly, copy) NSNumber* revenue;
@property(readonly, copy) NSString* precision;
@property(readonly, copy) NSString* ab;
@property(readonly, copy) NSString* segment_name;
@property(readonly, copy) NSNumber* lifetime_revenue;
@property(readonly, copy) NSString* encrypted_cpm;
@property(readonly, copy) NSNumber* conversion_value;

- (instancetype)init;
- (instancetype)initWithImpressionData:(ISImpressionData* _Nonnull)impressionData;

@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// ISAdOptionsPosition.h
// IronSource
//
// Created by Hadar Pur on 06/07/2023.
// Copyright © 2023 IronSource. All rights reserved.
//

// ISAdOptionsPosition
typedef NS_ENUM(NSInteger, ISAdOptionsPosition) {
ISAdOptionsPositionTopLeft,
ISAdOptionsPositionTopRight,
ISAdOptionsPositionBottomLeft,
ISAdOptionsPositionBottomRight
};

static NSString* const kAdOptionsPosKey = @"adOptionsPos";
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//
// ISAdUnit.h
// IronSource
//
// Created by Yonti Makmel on 18/04/2021.
// Copyright © 2021 ironSource. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN

@interface ISAdUnit : NSObject

@property(strong, nonatomic) NSString *value;

+ (ISAdUnit *)IS_AD_UNIT_REWARDED_VIDEO;
+ (ISAdUnit *)IS_AD_UNIT_INTERSTITIAL;
+ (ISAdUnit *)IS_AD_UNIT_OFFERWALL;
+ (ISAdUnit *)IS_AD_UNIT_BANNER;
+ (ISAdUnit *)IS_AD_UNIT_NATIVE_AD;

- (instancetype)initWithValue:(NSString *)value;

@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// ISAdUnitAdapterProtocol.h
// IronSource
//
// Copyright © 2023 IronSource. All rights reserved.
//

#import "ISNetworkInitCallbackProtocol.h"
#import "ISReleaseMemoryAdapterProtocol.h"

@protocol ISAdUnitAdapterProtocol <ISReleaseMemoryAdapterProtocol, ISNetworkInitCallbackProtocol>

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
//
// ISAdapterAdDelegate.h
// IronSource
//
// Created by Yonti Makmel on 28/04/2021.
// Copyright © 2021 ironSource. All rights reserved.
//

#ifndef ISAdapterAdDelegate_h
#define ISAdapterAdDelegate_h

#import "ISAdapterErrorType.h"

NS_ASSUME_NONNULL_BEGIN

@protocol ISAdapterAdDelegate <NSObject>

// Mandatory callbacks

- (void)adDidLoad;

/// @param errorType the load error type, including NO_FILL
/// @param errorCode the error code if available, general ones in AdapterErrors
/// @param errorMessage the error message if available
- (void)adDidFailToLoadWithErrorType:(ISAdapterErrorType)errorType
errorCode:(NSInteger)errorCode
errorMessage:(nullable NSString*)errorMessage;

- (void)adDidOpen;

- (void)adDidClick;

@end

NS_ASSUME_NONNULL_END

#endif /* ISAdapterAdDelegate_h */
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
//
// ISAdapterAdFullscreenProtocol.h
// IronSource
//
// Copyright © 2023 IronSource. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ISAdData.h"
#import "ISAdapterAdInteractionDelegate.h"

@protocol ISAdapterAdFullscreenProtocol <NSObject>

/// load the ad
/// @param adData data containing the configuration passed from the server and other related
/// parameters passed from the publisher like userId
/// @param delegate the delegate to return mandatory callbacks based on the network - load success,
/// load failure, ad opened, ad closed, show failed optional callbacks - show success, clicked
- (void)loadAdWithAdData:(ISAdData *)adData delegate:(id<ISAdapterAdDelegate>)delegate;

/// show the ad
/// @param viewController current viewController for showing the ad
/// @param adData data containing the configuration passed from the server and other related
/// parameters passed from the publisher like userId
/// @param delegate the callback listener
- (void)showAdWithViewController:(UIViewController *)viewController
adData:(ISAdData *)adData
delegate:(id<ISAdapterAdInteractionDelegate>)delegate;

/// returning whether the ad is available or not
/// @param adData data containing the configuration passed from the server and other related
/// parameters passed from the publisher like userId
- (BOOL)isAdAvailableWithAdData:(ISAdData *)adData;

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
//
// ISAdapterAdInteractionDelegate.h
// IronSource
//
// Created by Bar David on 21/10/2021.
// Copyright © 2021 IronSource. All rights reserved.
//

#ifndef ISAdapterAdInteractionDelegate_h
#define ISAdapterAdInteractionDelegate_h

#import "ISAdapterAdDelegate.h"

NS_ASSUME_NONNULL_BEGIN

@protocol ISAdapterAdInteractionDelegate <ISAdapterAdDelegate>

// Mandatory callbacks

- (void)adDidClose;

/// @param errorCode the error code if available, general ones in AdapterErrors
/// @param errorMessage the error message if available
- (void)adDidFailToShowWithErrorCode:(NSInteger)errorCode
errorMessage:(nullable NSString*)errorMessage;

// Optional callbacks

- (void)adDidShowSucceed;

- (void)adDidBecomeVisible;

- (void)adDidStart;

- (void)adDidEnd;

@end

NS_ASSUME_NONNULL_END

#endif /* ISAdapterAdInteractionDelegate_h */
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//
// ISAdapterAdRewardedDelegate.h
// IronSource
//
// Created by Bar David on 21/10/2021.
// Copyright © 2021 IronSource. All rights reserved.
//

#ifndef ISAdapterAdRewardedDelegate_h
#define ISAdapterAdRewardedDelegate_h

#import "ISAdapterAdInteractionDelegate.h"

NS_ASSUME_NONNULL_BEGIN

@protocol ISAdapterAdRewardedDelegate <ISAdapterAdInteractionDelegate>

// mandatory callbacks

- (void)adRewarded;

@end

NS_ASSUME_NONNULL_END
#endif /* ISAdapterAdRewardedDelegate_h */
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
//
// ISAdapterAdViewDelegate.h
// IronSource
//
// Created by Guy Lis on 27/03/2023.
// Copyright © 2023 IronSource. All rights reserved.
//

#ifndef ISAdapterAdViewDelegate_h
#define ISAdapterAdViewDelegate_h

#import <UIKit/UIKit.h>
#import "ISAdapterAdDelegate.h"

@protocol ISAdapterAdViewDelegate <ISAdapterAdDelegate>

// mandatory callbacks

/**
* @param view the view that was loaded
*/
- (void)adDidLoadWithView:(UIView *)view;

// optional callbacks (must be implemented in the adapter but can have empty implementation)

/**
* This method should be invoked before the user is taken out of the application after a click
*/
- (void)adWillLeaveApplication;

/**
* This method should be invoked after the ad view presents fullscreen content
*/
- (void)adWillPresentScreen;

/**
* This method should be invoked after the fullscreen content is dismissed
*/
- (void)adDidDismissScreen;

@end

#endif /* ISAdapterAdViewDelegate_h */
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
//
// ISAdapterBannerProtocol.h
// IronSource
//
// Created by Guy Lis on 27/03/2023.
// Copyright © 2023 IronSource. All rights reserved.
//

#import "ISAdData.h"
#import "ISBannerAdDelegate.h"
#import "ISBannerSize.h"

@protocol ISAdapterBannerProtocol <NSObject>

/**
* load the ad
*
* @param adData data containing the configuration passed from the server and other related
* parameters passed from the publisher like userId
* @param viewController the application view controller
* @param bannerSize the banner size the ad will be presented on
* @param delegate the callback listener to return
* mandatory callbacks based on the network - load success, load failure, ad opened
* optional callbacks - clicked, left application, presented, dismissed
*/
- (void)loadAdWithAdData:(nonnull ISAdData *)adData
viewController:(UIViewController *)viewController
size:(ISBannerSize *)size
delegate:(nonnull id<ISBannerAdDelegate>)delegate;

/**
* destroy the ad
*
* @param adData - data containing the configuration passed from the server and other related
* parameters passed from the publisher like userId
*/
- (void)destroyAdWithAdData:(nonnull ISAdData *)adData;

- (BOOL)isSupportAdaptiveBanner;

@end
Loading

0 comments on commit 67ad57e

Please sign in to comment.