# Scene setup

**1. Configure PubScaleManager prefab**

Drag and drop the PubScaleManager prefab from **Assets/PubscaleSDK/Common/Prefabs/PubScaleManager.prefab** in the first scene in your Build Settings.

#### 2. Drag and Drop Native Ad Unit prefab

Drag and drop any of the Native ad unit prefab from the path Assets > PubScaleSDK > NativeAds > Prefabs > AdHolderUnits into your gameplay scene.

{% hint style="info" %}
If using any prefab from the “ScreenSpaceCamera” folder then put it under any Canvas in **Screen Space-Camera** render mode to see ads on it.
{% endhint %}

#### 3. Configuring Default Ad Unit

Open the Settings Tab in the PubScale Main Menu found under **Window > PubScale SDK > Main** and Enter the Native Ads settings. Add Native Ad IDs in the Fallback Native ID field.

<figure><img src="/files/aQHOPQc8aqfP13kq5vmz" alt=""><figcaption><p>Android Native ads settings</p></figcaption></figure>

Adding Native Ad IDs in the Fallback Native ID field will ensure ads are requested in case there is a network delay in receiving the dynamic ad config file from the server.

<div><figure><img src="/files/qvr6Gih8vk6spSih389Z" alt=""><figcaption><p>Android Platform</p></figcaption></figure> <figure><img src="/files/oOmSYNLYZQSdusOjCf7v" alt=""><figcaption><p>iOS Platform</p></figcaption></figure></div>

4. **Assign Unique Ad Tag for Ad Units**

Ensure each ad unit has a unique Ad Tag assigned. Example: Home\_Screen\_Unit or level\_fail\_ad\_unit. This allows us to analyze the performance of each ad unit for further optimization.

<figure><img src="/files/p8bbgJWz7zrDKLYK0zLt" alt=""><figcaption></figcaption></figure>

We have now completed setting up the ads. Let's proceed to the next step to learn how to test the ads.


---

# 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://pubscale.gitbook.io/immersive-ads-sdk/integration/scene-setup.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.
