All our examples can be downloaded here
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:
Demonstrates how to display an interstitial when lauching an app.
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.IsInterstitialEvent() && e.tag == "main_menu") {
AdManager.ShowInterstitial("main_menu");
}
}
If you are having any problems integrating, feel free to contact us on [email protected] and we will be more than happy to help.