Debugging

Whilst developing your app, you can use our test activity to ensure your Tapdaq integration is successful.

Display the Debugger

Run this method after Tapdaq has been initialised.

Tapdaq.getInstance().startTestActivity(MainActivity.this);

Using the Debugger

Mediate This page allows you to test your integration as it would normally be used.

This allows you to show any type of add you have set up, and it will automatically select a network for you.

Native Ads This page allows you to view all your native adverts you set up on the dashboard.

Network List Here is a list of all the networks available and the state they are in, selecting any of them will allow you to directly interact with that network for testing.

  • Green - Ready
  • Red - Not Ready (Failed to initialise)

Network Page Here you can directly test each network and see ads from them. Only the ad types appropriate for each network will be available.

  • Load button will request a new ad.
  • Show button will display an ad that has loaded (Load must be called first)

Logging

TLog class has 5 logging levels (Disabled, Info, Warning, Error and Debug), you can set your preferred level at any time using the following code.

TLog.setLoggingLevel(TLogLevel.ERROR);

Adding test devices

Google AdMob and Facebook Audience Network ad services both allow developers to specify test devices, these will serve test ads before you have your account fully set up.

When creating the adapters and initialising Tapdaq, you should add your device IDs, like so:

TapdaqConfig config = new TapdaqConfig(this);
config.registerTestDevices(TMMediationNetworks.AD_MOB, Arrays.asList(""));
config.registerTestDevices(TMMediationNetworks.FACEBOOK, Arrays.asList(""));

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 and Facebook, they look like this:

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

// Android Facebook
D/AdSettings: Test mode device hash: 441g39532c1fy296e2840753c9c217b0

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