Skip to main content

Documentation Index

Fetch the complete documentation index at: https://guide.daro.so/llms.txt

Use this file to discover all available pages before exploring further.

Before You Begin

Prepare these items before installing DARO Unity SDK:
  • iOS or Android app key from the DARO dashboard
  • Platform-specific DARO key file
  • Ad unit IDs for each ad format
  • Android or iOS build environment

Install SDK

Use DaroPackageInstaller.unitypackage for the recommended installation path.
1

Download Installer Package

Download DaroPackageInstaller.unitypackage.zip, then unzip it.
2

Import into Unity Project

In Unity Editor, select Assets > Import Package > Custom Package, then import DaroPackageInstaller.unitypackage.
3

Confirm Package Installation

The installer adds the OpenUPM scoped registry, EDM4U, and so.daro.unity dependency to Packages/manifest.json.The latest so.daro.unity package version is 0.1.0 and uses EDM4U [email protected].
4

Run Integration Manager

In Unity Editor, open Assets > Daro > Integration Manager and validate your project setup.
The installer adds the OpenUPM registry to Packages/manifest.json and starts installing [email protected].

Configure Project

In Unity Editor, open Daro > Integration Manager and enter platform settings.
1

Create Settings Asset

In Integration Manager, select Create Settings Asset.
2

Enter iOS Settings

For iOS builds, enter iOS Daro App Key, iOS Key File, AdMob App ID, and ATT prompt text.
3

Enter Android Settings

For Android builds, enter Android Daro App Key and Android Key File.
4

Validate Settings

In Integration Manager, check validation results for the active build target.
App keys and key files are not passed to InitializeAsync(). Unity injects them into iOS Info.plist and Android AndroidManifest.xml or gradle.properties at build time.

Initialize SDK

Call DaroSdk.InitializeAsync() when your app starts.
using Daro;
using UnityEngine;

public sealed class GameBootstrap : MonoBehaviour
{
    private async void Start()
    {
        DaroSdk.HasGdprConsent = true;
        DaroSdk.SetUserId("user-12345");

        await DaroSdk.InitializeAsync();
        Debug.Log("Daro SDK ready");
    }
}
You can set privacy options and user ID before SDK initialization.

Use Ad Instances

Use each ad instance in this order:
  1. Complete await DaroSdk.InitializeAsync().
  2. Create the ad instance.
  3. Register event handlers.
  4. Call Load().
  5. After load completes, check IsReady() and call Show().
  6. Call Dispose() when the screen closes.
using Daro;
using UnityEngine;

public sealed class InterstitialAdHost : MonoBehaviour
{
    private const string AdUnitId = "your-ad-unit-id";
    private DaroInterstitialAd ad;

    private void OnEnable()
    {
        ad = new DaroInterstitialAd(AdUnitId);
        ad.OnAdLoaded += info => Debug.Log($"Loaded: {info.AdUnitId}");
        ad.OnAdFailedToLoad += error => Debug.LogWarning(error.Message);
        ad.Load();
    }

    public void Show()
    {
        if (ad != null && ad.IsReady())
        {
            ad.Show();
        }
    }

    private void OnDisable()
    {
        ad?.Dispose();
        ad = null;
    }
}