> For the complete documentation index, see [llms.txt](https://pubscale.gitbook.io/immersive-ads-sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pubscale.gitbook.io/immersive-ads-sdk/scripting-api/pubscalemanager.md).

# PubScaleManager

## PubScaleManager

The PubScaleManager handles initialization and all the requests and response caching for ads. It is a singleton component that can be accessed from anywhere. Native ads won't work if this component is missing from the scene.

#### Properties <a href="#properties" id="properties"></a>

| Name              | Description                                     |
| ----------------- | ----------------------------------------------- |
| **IsInitialized** | Use to check if the PubScale SDK is initialized |

#### Static Methods <a href="#static-methods" id="static-methods"></a>

| Name                          | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| SetActiveCameraForMeasurement | By default, the SDK uses the camera with the highest depth for measurement. In scenes with multiple cameras, this default camera might not be the one rendering the primary game screen from the player's perspective.If the wrong camera is used for measurement, the SDK cannot determine if the ad is viewable, which prevents impressions from being reported. It can also cause the ad to be unclickable.Use this method to explicitly set the camera that is aligned with the player's view |
| ​                             | ​                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |

​
