iS SDK 7.2.0: Custom adapters iOS changes

ironSource SDK 7.2.0 includes API changes that will affect the current integration of your interstitial classes.

To ensure your ads will continue to be served on iOS, complete the following steps:

  • Update the ironSource SDK in your Cocoapods file
  • Use the latest API versions, available here
  • Release a new iOS adapter for ironSource SDK 7.2.0
  • Share the adapter with the relevant LevelPlay publisher

Review changes 

  • Use a single import file, including all dependencies
  • Using NSInteger type for error codes
  • Rename the base interstitial class to be ISBaseInterstitial instead of ISBaseAdAdapter
  • Rename the interstitial delegate listener to be ISInterstitialAdDelegate instead of ISAdapterAdDelegate

Base adapter class 

Imports

7.1.13 Implementation

#import "IronSource/ISBaseNetworkAdapter.h"
#import "IronSource/ISAdapterErrors.h"
-

7.2.0 Implementation

#import "IronSource/IronSource.h"
-

callbacks – ISNetworkInitializationDelegate

7.1.13 Implementation

- (void)onInitDidFailWithErrorCode:(int)errorCode errorMessage:(NSString*)errorMessage;
- (void)onInitDidFailWithErrorCode:(int)errorCode errorMessage:(NSString*)errorMessage;

7.2.0 Implementation

- (void)onInitDidFailWithErrorCode:(NSInteger)errorCode errorMessage:(nullable NSString*)errorMessage;
- (void)onInitDidFailWithErrorCode:(NSInteger)errorCode errorMessage:(nullable NSString*)errorMessage;

Interstitial adapter class 

class definition

7.1.13 Implementation

IS<YourNetworkName>CustomInterstitial : ISBaseAdAdapter
public class IS<YourNetworkName>CustomInterstitial : ISBaseAdAdapter

7.2.0 Implementation

IS<YourNetworkName>CustomInterstitial : ISBaseInterstitial
public class IS<YourNetworkName>CustomInterstitial : ISBaseInterstitial

signature

7.1.13 Implementation

- (void)loadAdWithAdData:(nonnull ISAdData *)adData delegate:(nonnull id<ISAdapterAdDelegate>)delegate;
- (void)showAdWithViewController:(nonnull UIViewController *)viewController adData:(nonnull ISAdData *)adData delegate:(nonnull id<ISAdapterAdDelegate>)delegate
public override func loadAd(with adData: ISAdData, delegate: ISAdapterAdDelegate);
public override func showAd(with viewController: UIViewController, adData: ISAdData, delegate: ISAdapterAdDelegate);

7.2.0 Implementation

- (void)loadAdWithAdData:(nonnull ISAdData *)adData delegate:(nonnull id<ISInterstitialAdDelegate>)delegate;
- (void)showAdWithViewController:(nonnull UIViewController *)viewController adData:(nonnull ISAdData *)adData delegate:(nonnull id<ISInterstitialAdDelegate>)delegate
public override func loadAd(with adData: ISAdData, delegate: ISInterstitialAdDelegate)
public override func showAd(with viewController: UIViewController, adData: ISAdData, delegate: ISInterstitialAdDelegate)

imports

7.1.13 Implementation

#import "IronSource/ISBaseAdAdapter.h"
#import "IronSource/ISAdapterErrors.h"
-

7.2.0 Implementation

#import "IronSource/IronSource.h"
-

callbacks – ISInterstitialAdDelegate

7.1.13 Implementation

-(void)adDidFailToLoadWithErrorType:(ISAdapterErrorType)errorType errorCode:(int)errorCode errorMessage:(NSString*)errorMessage;
-(void)adDidFailToShowWithErrorCode:(int)errorCode errorMessage:(NSString*)errorMessage;
-(void)adDidFailToLoadWithErrorType:(ISAdapterErrorType)errorType errorCode:(int)errorCode errorMessage:(NSString*)errorMessage;
-(void)adDidFailToShowWithErrorCode:(int)errorCode errorMessage:(NSString*)errorMessage;

7.2.0 Implementation

-(void)adDidFailToLoadWithErrorType:(ISAdapterErrorType)errorType errorCode:(NSInteger)errorCode errorMessage:(nullable NSString*)errorMessage;
-(void)adDidFailToShowWithErrorCode:(NSInteger)errorCode errorMessage:(nullable NSString*)errorMessage;
-(void)adDidFailToLoadWithErrorType:(ISAdapterErrorType)errorType errorCode:(NSInteger)errorCode errorMessage:(nullable NSString*)errorMessage;
-(void)adDidFailToShowWithErrorCode:(NSInteger)errorCode errorMessage:(nullable NSString*)errorMessage;