Test Mode - tapdaq/cordova-plugin GitHub Wiki

Test Mode

The Tapdaq SDK does not have a test mode, however many networks do and will enable ads to show reliably for test purposes. To enable SDK level test mode (for networks which support it), enable debug logging like so:

var config = {
  logLevel: Tapdaq.LogLevel.Debug
;

AdColony

Set via the AdColony dashboard on a Zone level

AdMob

Full documentation available in their documentation

Adding test devices

When initialising Tapdaq, add device IDs like so:

var config = {
            ios: {
                appId: "<iOS_APP_ID>",
                clientKey: "<IOS_CLIENT_KEY>",
                testDevices: [
                    {
                        network: Tapdaq.AdNetwork.AdMob,
                        devices: [
                            "<ADMOB_TEST_DEVICE_ID>"
                        ]
                    }
                ] 
            },
            android: {
                appId: "ANDROID_APP_ID",
                clientKey: "ANDROID_CLIENT_KEY",
                testDevices: [
                    {
                        network: Tapdaq.AdNetwork.AdMob,
                        devices: [
                            "ADMOB_TEST_DEVICE_ID"
                        ]
                    }
                ]
            }
        };

Retrieving Test Device IDs

Use adb logcat or Android Studio's console to view the applications logs, devices ID's will be printed when loading an ad from AdMob, they look like this:

I/Ads: Use AdRequest.Builder.addTestDevice("4D32C4G30407EPC0EBB847E0E2694ACE") to get test ads on this device.

AppLovin

Set via the AppLovin dashboard on an App level. Note it is not immediate and will only be enabled for a few hours

Chartboost

Set via the Chartboost dashboard on an App level. Note it will only be enabled for a set time period

Facebook Audience Network

Two options are detailed in their documentation

When testing Facebook Audience Network, the test device should have the Facebook app installed and logged in

Server Side

Uses IDFA/GAID to identify test devices, set via their Monetisation Manager dashboard

Client Side

A device id can be obtained from the logs and set via the Tapdaq interface.

Adding test devices

When initialising Tapdaq, add device IDs like so:

var config = {
            ios: {
                appId: "<iOS_APP_ID>",
                clientKey: "<IOS_CLIENT_KEY>",
                testDevices: [
                    {
                        network: Tapdaq.AdNetwork.FacebookAN,
                        devices: [
                            "<FAN_TEST_DEVICE_ID>"
                        ]
                    }
                ] 
            },
            android: {
                appId: "ANDROID_APP_ID",
                clientKey: "ANDROID_CLIENT_KEY",
                testDevices: [
                    {
                        network: Tapdaq.AdNetwork.FacebookAN,
                        devices: [
                            "FAN_TEST_DEVICE_ID"
                        ]
                    }
                ]
            }
        };

Retrieving Test Device IDs

Use adb logcat or Android Studio's console to view the applications logs, devices ID's will be printed when loading an ad from Facebook, they look like this:

D/AdSettings: Test mode device hash: 441g39532c1fy296e2840753c9c217b0

InMobi

Set via the InMobi dashboard on a Placement level

IronSource

Set via the IronSource dashboard on an App/Ad Unit level

Maio

Set via the SDK, enable Tapdaq Debug mode for testing.

Tapjoy

Full details in their documentation

Set via the Tapjoy dashboard, IDFA/GAID's can be added to enable ads on specific devices

UnityAds

Set via the UnityAds dashboard on an App/Project level

Vungle

Set via the Vungle dashboard on an App level

YouAppi

Set via the YouAppi dashboard on an App level

⚠️ **GitHub.com Fallback** ⚠️