Skip to content

SDK integration

  • Unity: 6 (6000.0) or higher
  • Target API Level (Android): 36 or higher
  • Target deployment (iOS): 13.0 or higher

First, you need to download the Unity package from the following link:

Download Wortise Unity Package

Once downloaded, double click on the file to import it into the project.

To setup the SDK, go to the Wortise -> Settings option in the Unity menu bar. After selecting the option, the settings window will open where you must specify the Google application IDs for each platform:

Window screenshot

You can consult the following section to implement this request and obtain the user consent: User consent

To initialize the SDK, you need to add the following lines in the Start() method of the first project Scene. Also, we recommend to implement the OnInitialized event to request the consent once the initialization has finished:

void Start() {
...
WortiseSdk.OnInitialized += () => {
WortiseConsentManager.RequestIfRequired();
};
WortiseSdk.Initialize("your app key");
}

To verify the integration, the SDK provides a test mode that allows the app to always receive ads.

In addition to the option that is available in our dashboard, you can programmatically enable this test mode, from the SDK itself, by using the following code:

WortiseAdSettings.IsTestEnabled = true;