SDK Migration - cleveradssolutions/CAS-iOS GitHub Wiki

This page covers migrations for current and previous versions.

Migrate from 2.x to 3.0

The table below lists the removed/replaced methods in version 3.0.

CAS

Removed New
.create(managerID:, onInit:) .buildManager().create(withCasId:)

CASBannerView

Removed New
.init(manager:) .init(adSize:, manager:)
.delegate:CASCallback .adDelegate: CASBannerDelegate
.isRefreshAdaptiveSizeWhenChangingOrientation: Bool .isAutoloadEnabled: Bool

CASAnalytics

Removed New
.handler: CASAnalyticsHandler .delegate: CASAnalyticsDelegate

CASMediationManager

Removed New
.loadRewardedVideo() .loadRewardedAd()
.isAdReady(type:): Bool .isInterstitialReady: Bool, .isRewardedAdReady: Bool
.show(fromRootViewController:, type:, callback:) .presentInterstitial(fromRootViewController:, callback:), .presentRewardedAd(fromRootViewController:, callback:)
.setBanner(size:) CASBannerView.adSize: CASSize
.hideBanner() CASBannerView.isHidden: Bool
.setManualPauseControl(), .onPause(), .onResume() No longer supported
.getLastActiveMediation(type:): String No longer supported
.isValidCallback(type:, callback:): Bool No longer supported

CASSettings

Removed New
.getTestDeviceIDs(): [String] You only can set list of test Ids ussed .setTestDevice(ids:)
.isExecuteCallbacksInUIThread() Callbacks from background thread is no longer supported.
.setPluginPlatform(name:, version:) CAS.buildManager().withFramework(name, version)