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"
  • Light theme
  • Dark theme
  • Copy to clipboard

7.2.0 Implementation

#import "IronSource/IronSource.h"
  • Light theme
  • Dark theme
  • Copy to clipboard

callbacks – ISNetworkInitializationDelegate

7.1.13 Implementation

- (void)onInitDidFailWithErrorCode:(int)errorCode errorMessage:(NSString*)errorMessage;
  • Light theme
  • Dark theme
  • Copy to clipboard

7.2.0 Implementation

- (void)onInitDidFailWithErrorCode:(NSInteger)errorCode errorMessage:(nullable NSString*)errorMessage;
  • Light theme
  • Dark theme
  • Copy to clipboard

Interstitial adapter class 

class definition

7.1.13 Implementation

IS<YourNetworkName>CustomInterstitial : ISBaseAdAdapter
  • Light theme
  • Dark theme
  • Copy to clipboard

7.2.0 Implementation

IS<YourNetworkName>CustomInterstitial : ISBaseInterstitial
  • Light theme
  • Dark theme
  • Copy to clipboard

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
  • Light theme
  • Dark theme
  • Copy to clipboard

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
  • Light theme
  • Dark theme
  • Copy to clipboard

imports

7.1.13 Implementation

#import "IronSource/ISBaseAdAdapter.h"
#import "IronSource/ISAdapterErrors.h"
  • Light theme
  • Dark theme
  • Copy to clipboard

7.2.0 Implementation

#import "IronSource/IronSource.h"
  • Light theme
  • Dark theme
  • Copy to clipboard

callbacks – ISInterstitialAdDelegate

7.1.13 Implementation

-(void)adDidFailToLoadWithErrorType:(ISAdapterErrorType)errorType errorCode:(int)errorCode errorMessage:(NSString*)errorMessage;
-(void)adDidFailToShowWithErrorCode:(int)errorCode errorMessage:(NSString*)errorMessage;
  • Light theme
  • Dark theme
  • Copy to clipboard

7.2.0 Implementation

-(void)adDidFailToLoadWithErrorType:(ISAdapterErrorType)errorType errorCode:(NSInteger)errorCode errorMessage:(nullable NSString*)errorMessage;
-(void)adDidFailToShowWithErrorCode:(NSInteger)errorCode errorMessage:(nullable NSString*)errorMessage;
  • Light theme
  • Dark theme
  • Copy to clipboard