File Name Changes
Old File |
New File |
ATJSSDK.ts |
ATSDK.ts |
ATBannerTSSDK.ts |
ATBanner.ts |
ATIntersitialTSSDK.ts |
ATInterstitial.ts |
ATIntersitialAutoTSSDK.ts |
ATInterstitialAuto.ts |
ATNativeTSSDK.ts |
ATNative.ts |
ATRewardedVideoTSSDK.ts |
ATRewardedVideo.ts |
ATRewardedAutoVideoTSSDK.ts |
ATRewardedAutoVideo.ts |
ATSDK Migration
// Old
import { ATJSSDK } from "./ATJSSDK";
// New
import { ATSDK } from "./ATSDK";
- No changes in function names
ATBanner Migration
// Old
import { ATBannerTSSDK } from "./ATBannerTSSDK";
// New
import { ATBannerSDK } from "./ATBanner";
Old Function (ATBannerTSSDK) |
New Function (ATBannerSDK) |
Description |
loadBanner |
loadAd |
Function renamed |
- |
showAdInPositionAndScenario |
New function |
- |
showAdInRectangleAndScenario |
New function |
All other functions remain unchanged |
|
|
ATInterstitial Migration
// Old
import { ATIntersitialTSSDK } from "./ATIntersitialTSSDK";
// New
import { ATInterstitialSDK } from "./ATInterstitial";
Old Function (ATIntersitialTSSDK) |
New Function (ATInterstitialSDK) |
Description |
loadInterstitial |
loadAd |
Function renamed |
- |
entryAdScenario |
New function |
All other functions remain unchanged |
|
|
ATInterstitialAuto Migration
// Old
import { ATIntersitialAutoTSSDK } from "./ATIntersitialAutoTSSDK";
// New
import { ATInterstitialAutoAdSDK } from "./ATInterstitialAuto";
Old Function (ATIntersitialAutoTSSDK) |
New Function (ATInterstitialAutoAdSDK) |
Description |
- |
entryAdScenario |
New function |
All other functions remain unchanged |
|
|
ATNative Migration
// Old
import { ATNativeTSSDK } from "./ATNativeTSSDK";
// New
import { ATNativeSDK } from "./ATNative";
Old Function (ATNativeTSSDK) |
New Function (ATNativeSDK) |
Description |
loadNative |
loadAd |
Function renamed |
- |
entryAdScenario |
New function |
All other functions remain unchanged |
|
|
The AdViewProperty
class remains unchanged, but should now be imported from ATNative
:
// Old
import { AdViewProperty } from "./ATNativeTSSDK";
// New
import { AdViewProperty } from "./ATNative";
ATRewardedVideo Migration
// Old
import { ATRewardedVideoTSSDK } from "./ATRewardedVideoTSSDK";
// New
import { ATRewardedVideoSDK } from "./ATRewardedVideo";
Old Function (ATRewardedVideoTSSDK) |
New Function (ATRewardedVideoSDK) |
Description |
loadRewardedVideo |
loadAd |
Function renamed |
- |
entryAdScenario |
New function |
All other functions remain unchanged |
|
|
ATRewardedAutoVideo Migration
// Old
import { ATRewardedAutoVideoTSSDK } from "./ATRewardedAutoVideoTSSDK";
// New
import { ATRewardedVideoAutoAdSDK } from "./ATRewardedAutoVideo";
Old Function (ATRewardedAutoVideoTSSDK) |
New Function (ATRewardedVideoAutoAdSDK) |
Description |
- |
entryAdScenario |
New function |
All other functions remain unchanged |
|
|
📌 Migration Example Code
// Initialize SDK
// Old
import { ATJSSDK } from "./ATJSSDK";
ATJSSDK.initSDK("appId", "appKey");
// New
import { ATSDK } from "./ATSDK";
ATSDK.initSDK("appId", "appKey");
// Load Banner Ad
// Old
import { ATBannerTSSDK } from "./ATBannerTSSDK";
ATBannerTSSDK.loadBanner("placementId", settings);
// New
import { ATBannerSDK } from "./ATBanner";
ATBannerSDK.loadAd("placementId", settings);
// Load Interstitial Ad
// Old
import { ATIntersitialTSSDK } from "./ATIntersitialTSSDK";
ATIntersitialTSSDK.loadInterstitial("placementId", settings);
// New
import { ATInterstitialSDK } from "./ATInterstitial";
ATInterstitialSDK.loadAd("placementId", settings);
// Load Native Ad
// Old
import { ATNativeTSSDK } from "./ATNativeTSSDK";
ATNativeTSSDK.loadNative("placementId", settings);
// New
import { ATNativeSDK } from "./ATNative";
ATNativeSDK.loadAd("placementId", settings);
// Load Rewarded Video Ad
// Old
import { ATRewardedVideoTSSDK } from "./ATRewardedVideoTSSDK";
ATRewardedVideoTSSDK.loadRewardedVideo("placementId", settings);
// New
import { ATRewardedVideoSDK } from "./ATRewardedVideo";
ATRewardedVideoSDK.loadAd("placementId", settings);
Summary
Main migration changes:
- File names are simplified, removing the "TSSDK" suffix
- Main loading functions are unified as
loadAd
- Some modules add the new
entryAdScenario
function
- Access to classes and constants remains unchanged, but they should be imported from the new modules