# Initialize SDK

### Use the Manager in Unity Scripts

Integrate Playtime Ads SDK into your app by following these simple steps. Ensure proper initialization, offer wall access, and optional SDK cleanup for best results.

Now you can use `PlaytimeAdsManager.Instance` to call SDK functions anywhere in your Unity project:

## Initialize the SDK with User ID&#x20;

Use your **Application Key** and a unique **User ID** from your system to initialize the SDK.

```csharp
// Initialize with user ID
PlaytimeAdsManager.Instance.InitializeWithUserId(<YOUR_APPLICATION_KEY>,<USER_ID>);
```

{% hint style="warning" %}
Replace `"<YOUR_APPLICATION_KEY>"` and `“<USER_ID>”` with your actual app key provided by Playtime SDK and logged-in user id.
{% endhint %}


---

# Agent Instructions: 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:

```
GET https://docs.playtimeads.com/sdk-integration/unity-integration/initialize-sdk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
