Menu

iOS v6.5.xx Migration Guide

This document provides a detailed guide for migrating from the old version (SDK < 6.4.94) to the new version (SDK >= 6.4.94).

1. Header File Import Changes

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>

2. Native Ad ATNativeAdOffer Data Type Changes

2.1 Property Definition Changes

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;

2.2 Impact Scope and Code Adaptation

Version Code Example Data Type
Old Version
SDK < 6.4.94
NSInteger appSize = nativeAdOffer.nativeAd.appSize; NSInteger
New 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 NSInteger to NSString *
  • Note that related numerical calculations and display logic need to be adjusted accordingly

3. Custom Ad Platform Integration Update

Please go to https://help.toponad.net/docs/Custom-Ad-Platform-SDK-version-6-4-94

Previous
Integration
Next
AD Formats
Last modified: 2026-01-05Powered by