> For the complete documentation index, see [llms.txt](https://docs.wortise.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wortise.com/en/unity-sdk/sdk-integration.md).

# SDK integration

## Requisites

This documentation has been written for Unity **2022 or higher**. It is recommended to use these versions when integrating the SDK.

## Import Unity package

In first place, it is needed to download the Unity package from the following link:

<p align="center"><a href="https://cdn.resources.wortise.com/sdk/unity/Wortise-Unity-1.7.3.unitypackage" class="button primary" data-icon="arrow-down-to-line">Download Wortise Unity Package</a></p>

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

## Setup SDK

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:

<figure><img src="/files/fGdv56q3jD3mD4NuDaIa" alt="" width="563"><figcaption><p>Window screenshot</p></figcaption></figure>

{% hint style="info" %}
This value can be found in our dashboard, inside the app details, under the name `Google App ID`.
{% endhint %}

## Request consent

{% hint style="success" %}
It is **very recommended** to request the user consent to be able to show personalised ads. This will allow to display content of more interest and generate higher revenues.
{% endhint %}

You can consult the following section to implement this request and obtain the user consent: [User consent](/en/unity-sdk/user-consent.md)

## Initialize SDK

To initialize the SDK, it is needed 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:

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

## Test mode

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

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

```csharp
WortiseAdSettings.IsTestEnabled = true;
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.wortise.com/en/unity-sdk/sdk-integration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
