This document provides a detailed guide for migrating from the old version (SDK < 6.4.94) to the new version (SDK >= 6.4.94).
Old SDK Version < 6.4.94 New SDK Version >= 6.4.94 #import <AnyThinkNative/AnyThinkNative.h>#import <AnyThinkSDK/AnyThinkSDK.h>#import <AnyThinkInterstitial/AnyThinkInterstitial.h>#import <AnyThinkSDK/AnyThinkSDK.h>#import <AnyThinkRewardedVideo/AnyThinkRewardedVideo.h>#import <AnyThinkSDK/AnyThinkSDK.h>#import <AnyThinkSplash/AnyThinkSplash.h>#import <AnyThinkSDK/AnyThinkSDK.h>#import <AnyThinkBanner/AnyThinkBanner.h>#import <AnyThinkSDK/AnyThinkSDK.h>#import <AnyThinkMediaVideo/ATAdManager+ATMediaVideo.h>#import <AnyThinkSDK/AnyThinkSDK.h>
Version Property Definition Old Version SDK < 6.4.94 @property(nonatomic, readonly) ATNativeAd *nativeAd;New Version SDK >= 6.4.94 @property(nonatomic, readonly) id <ATNativeMaterialProtocol> nativeAd;
Version Code Example Data Type Old Version SDK < 6.4.94 NSInteger appSize = nativeAdOffer.nativeAd.appSize;NSIntegerNew Version SDK >= 6.4.94 NSString *appSize = nativeAdOffer.nativeAd.appSize;NSString *
- Check all code that uses
nativeAdOffer.nativeAd.appSize- Change the variable type that receives this value from
NSIntegertoNSString *- Note that related numerical calculations and display logic need to be adjusted accordingly
Please go to https://help.toponad.net/docs/Custom-Ad-Platform-SDK-version-6-4-94