Notes:
Use the test tool to improve the efficiency of developer integration testing:
Version Description
Note: Before integrating the test tool, you need to first integrate the TopOn SDK. For the SDK integration method, refer to the Unity Plugin Usage Guide.
Import the test tool's dependency library by performing the following two steps:
Step 1: First, create a folder named Editor under the Unity project's /Assets/AnyThinkAds/Plugins/Android directory.
Step 2: Create a Dependencies.xml file and add the following content to it, then place it in the Editor directory created in step one.
<dependencies>
<androidpackages>
<repositories>
<repository>https://jfrog.anythinktech.com/artifactory/debugger</repository>
</repositories>
<androidpackage spec="com.anythink.sdk:debugger-ui:1.1.0"></androidpackage>
</androidpackages>
</dependencies>
Note: The folder name in step 1 must be Editor, and the file name in step 2 must be Dependencies.xml.
After completing the import of the test tool dependency library, you can directly call the C# API in the Unity layer. First, initialize the SDK, then call the following method to navigate to the test tool page:
// If you do not need to use online advertising ID testing, you can use ATSDKAPI.showDebuggerUI()
// ATSDKAPI.showDebuggerUI();
// Debug Key: used for online ID testing. You can get it from Backstage -> Account Management -> Key.
// Requirements: 1. SDK version 6.3.68 and above 2. Debugger UI tool version 1.0.8 and above
ATSDKAPI.showDebuggerUI("Your Debug Key");
Note: You must initialize the SDK before navigating to the test tool page.
Import the test tool's dependency library by performing the following two steps:
Step 1: First, create a folder named Editor under the Unity project's /Assets/AnyThinkAds/Plugins/iOS directory.
Step 2: Create a Dependencies.xml file and add the following content to it, then place it in the Editor directory created in step one.
<?xml version="1.0" encoding="utf-8"?>
<dependencies>
<iospods>
<iospod name="TPNDebugUISDK" version="1.0.3"></iospod>
</iospods>
</dependencies>
Note: The folder name in step 1 must be Editor, and the file name in step 2 must be Dependencies.xml.
After completing the import of the test tool dependency library, you can directly call the C# API in the Unity layer. First, initialize the SDK, then call the following method to navigate to the test tool page:
ATSDKAPI.showDebuggerUI("Your Debug Key");
Note:
a. You must initialize the SDK before navigating to the test tool page.
b. The features in the test tool require the media side to first obtain the IDFA before they can be used. Currently, SDK initialization does not obtain the IDFA.
Note: Before going live, you need to remove the relevant code that calls the test tool.
Function: Supports long-press to copy information and share current page data.
GAID is the Google Advertising ID. If GAID is displayed as empty, please check the following factors:
string[] deniedInfos = new string[] { "gaid" };
ATSDKAPI.deniedUploadDeviceInfo(deniedInfos);
Android ID is a unique device identifier. If AndroidId is displayed as empty, please check whether the following method was called to restrict AndroidId retrieval:
string[] deniedInfos = new string[] { "android_id" };
ATSDKAPI.deniedUploadDeviceInfo(deniedInfos);
Note: If the integrated SDK is an overseas SDK, enabling the debug mode below requires GAID not to be empty. If it is a domestic SDK, AndroidId must not be empty.

TopOn SDK settings include two parts: Privacy Settings and Permission Settings.



