Examples

All our examples can be downloaded here

Mediation

Demonstrates how to initialise, load, show, reward users and use callbacks with all mediation networks included. Add your own Tapdaq AppID & Client Key to test your dashboard credentials have in set up correctly.

See further details on integrating:

Notes

  • Requires Unity 2019.2 or higher
  • Android must run with Gradle rather than internal build system as it requires multidex

Interstitial on bootup

Demonstrates how to display an interstitial when lauching an app.

Notes

  • Requires Unity 5.4.0 or higher.

The following code will display an interstitial on bootup for the "main_menu" placement tag:

private void Start() {
	AdManager.Init();
}

private void OnEnable() {
	TDCallbacks.AdAvailable += OnAdAvailable;
	TDCallbacks.TapdaqConfigLoaded += OnTapdaqConfigLoaded;
}

private void OnDisable() {
	TDCallbacks.AdAvailable -= OnAdAvailable;
	TDCallbacks.TapdaqConfigLoaded -= OnTapdaqConfigLoaded;
}

private void OnTapdaqConfigLoaded(string message) {
	AdManager.LoadInterstitial("main_menu");
}

private void OnAdAvailable(TDAdEvent e) {
	if (e.adType == "INTERSTITIAL" && e.tag == "main_menu") {
		AdManager.ShowInterstitial("main_menu");
	}
}

Need help?

If you are having any problems integrating, feel free to contact us on [email protected] and we will be more than happy to help.