Test Suite

Test Suite

The AdTiming Test Suite allows you to test whether you have correctly configured your app and ad units to be able to display ads from third-party networks through mediation. This guide outlines how to use the AdTiming Test Suite in your Android app by integrating the tool into your app.

 

Precondition

1. Android SDK 4.1 (API level 16) or higher.

2. Android AdTiming SDK v6.4.0 or higher.

3. Create an AdTiming account and register an app.

 

Installation

Add the following dependencies into your project-level build.gradle file:

allprojects {
    repositories {
        google()
        jcenter()
        maven { url 'https://dl.adtiming.com/android-sdk' }
    }
}

Add the following dependencies into your apps build.gradle file:

dependencies {
    implementation 'com.adtiming:mediation-sdk:6.6.3.1@aar'
    implementation 'com.adtiming:test-suite:1.0.0'
}

 

Proguard

If you need to use proguard to optimize the code, please add the following configuration to the proguard.cfg file (or other replacement files):

-dontwarn com.adtiming.mediationtestsuite.**
-keep class com.adtiming.mediationtestsuite.**{*;}

 

Launching the Test Suite

Use the following line of code to launch the Mediation Test Suite:

import com.adtiming.mediationtestsuite.AdTimingTestSuite;
...
AdTimingTestSuite.launch(activity, appKey);

Note: Please remove the dependencies and code references of TestSuite before your application goes live.

 

Navigating the Test Suite

The tool opens with the following disclaimer:

android_ts_disclaimer.png

The disclaimer shows every time the test suite launches as a reminder that you should turn on test mode for your mediation ad sources.

 

Tick the checkbox and press GOT IT to proceed.

The homepage will show the Ad Network integration status of your current application.

Each Ad Network has three configurations, including SDK/Adapter/Configure.

For each Ad Network, this screen provides warnings if:

  • An ad source SDK is not installed
  • An ad source adapter is not installed
  • An ad source requires manifest entries that are not configured or the background configuration information is incorrect.

android_ts_failed.png

 

If the three configurations of all Ad Networks are okay, the homepage will display "Good", as shown below:

android_ts_home.png

 

If you verify the instance of Ad Network and it fails, the home page will display the number of failed instances. At the same time, the corresponding Ad Network unit column will display a red prompt on the right.

android_instance_failed.png

 

Ad Network Details

The details page displays the detailed information of Ad Network, including the integration status STATUS of Ad Network, TEST ID list (only AdMob) and INSTANCE list:

android_ts_admob_status.png

 

STATUS

The screen indicates, for the given ad source:

  • If the SDK is installed and, if available, the SDK version (Some AdNetwork SDK version cannot be obtained, such as AdMob and AdColony).
  • If the adapter is installed and, if available, the adapter version.
  • If any required manifest entries are properly configured.
  • The parameters for the configuration that were entered in the AdTiming dashboard.

 

INSTANCE

The INSTANCE list page lists all the Instances configured in the foreground of the Ad Network in the "Enabled" state, and distinguishes 3 states by different colors:

  • Not verified (Blue)
  • Ad verified but failed to load (Yellow)
  • The ad has been verified and successfully loaded (Green)

The information displayed by a single Instance Item includes:

  • Instance Name
  • Unit ID
  • Instance belongs to the type of ad unit
  • Instance belongs to the name of ad unit

android_instance_list.png

 

FILTER

You can filter Instance results according to Instance status and ad type on the filter page.

android_instance_filter.png

 

Load And Show Ad

On the TESTID and INSTANCE list page, click the "LOAD AD" button to send the ad request to the SDK of the ad source. After the ad request is completed, an update prompt will be displayed, indicating whether the request was successful or failed.

android_ts_admob_instance.png

 

If the request is successful, the "LOAD AD" button will change to "SHOW AD", and there will be a Success prompt on the page.

  • For banner or native ads, the ad is displayed directly on the current page.
  • For interstitial or rewarded video ads, the ad will be displayed on the new screen.

android_ts_admob_show.png

 

The ad opens on the current page, for example:

android_ts_admob_showad.png

 

The ad opens in a new screen, for example:

android_instance_show_is.png

 

Data Reporting

mceclip0.png

After clicking the upload button, your AdNetwork integration results and Instance verification results will be uploaded to the AdTiming dashboard - SDK Testing - Test Suite Result, For more information.

publish_adtiming_test_suite.png

Note: Test results are only stored in memory for a given app. They are not stored on the device.

 

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.