Please refer to the instructions of the integration document to complete the introduction configuration and API call of the SDK. If you have any questions about the integration document, please refer to TopOn Integration Tool for external demos, it is recommended to select the latest version of the SDK when integrating.
is For convenience and convenience in testing ads and troubleshooting related issues, please refer to How to test ads. It is recommended to open the SDK log and troubleshoot related issues through the logs.
Call this method before SDK initialization: ATSDK.setNetworkLogDebug(true); in Filtering in Android Studio's Logcat anythink Please refer to TopOn SDK Log Open the SDK log and view "networkVersion"field
To facilitate troubleshooting, the SDK provides common error codes and error descriptions. Please refer to Error Code Description to troubleshoot and confirm the problem.
1. Background configuration changes do not take effect?
2. The test mode does not take effect?
3. Traffic grouping does not take effect?
1. Check whether the network is normal;
2. Some advertising platforms need to apply for storage permission;
3. Whether the incoming Context is Activity
TopOn SDK will use webview internally to access files. setAllowFileAccessFromFileURLs and setAllowUniversalAccessFromFileURLs are set to true. The following methods have been used to limit the file access scope for protection. :
1. Fixed HTML files can be placed in the assets or res directory file:///android asset and file:///android_res. It can also be accessed when the API is turned on;
2. HTML files that may be updated are placed in the /data/data/(app) directory to avoid being Third-party replacement or modification;
3. When whitelisting restrictions on file domain requests, special cases of "../../" need to be handled
Before calling the prepare api, ATNativePrepareInfo.setChoiceViewLayoutParams passes in a FrameLayout.LayoutParams. You can pass in a negative value of marginLeft to remove the choiceicon from the visible area
The SDKs of each advertising platform used by TopOn SDK are as follows: (The version number of the advertising platform SDK can be viewed through the naming of the respective SDK package)
Network | SDK | Note |
---|---|---|
Facebook< /td> | AudienceNetwork-*.aar | |
Admob | play-services-ads-*.aar | |
Inmobi | InMobiSDK_*.aar | |
Applovin | applovin-sdk-*.aar | |
Mintegral | mbridge_*.aar | Get the version number by checking com.mbridge.msdk.out.MBConfiguration in the mbridge_*same.aar package |
Mopub | mopub-sdk-base-*. aar | |
Tencent Advertising | GDTSDK.unionNormal.*.aar | |
Chartboost | chartboost-sdk-*.aar | |
Tapjoy | tapjoyconnectlibrary-*.aar | |
Ironsource | ||
UnityAds | unity-ads- *.aar | |
Vungle | vungle-android-sdk-*.aar | |
Adcolony | adcolony-sdk-*.aar | |
Pangolin (Pangle) | open_ad_sdk_*.aar | |
Appnext | AppnextAndroidSDK*.aar | -< /td> |
Baidu | Baidu_MobAds_SDK-release_*.aar | |
Nend | nendSDK-*.aar | |
Maio | maio-*.aar | |
StartApp | StartAppInApp-*.jar | |
Kuaishou | kssdk-ad-*.aar | |
Sigmob | windAd -*.aar | |
myTarget | mytarget-sdk-*.aar | |
Ogury | ogury-sdk-*.aar | |
ia-sdk-core-release-*. aar | ||
Huawei(HMS) | ads-base-*.aar | |
Kidoz | kidoz-*.aar |