# Setup

### <img src="https://1088849411-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5ukgSPDBOdbQp4FYtbz1%2Fuploads%2F9BooaofCI33U9Np5oeif%2FFrame%203%20(1).png?alt=media&#x26;token=0750b56a-a069-4759-bda9-29951f06cd30" alt="" data-size="line"> Integration

Download the `PlaygamaBridge.js` file from the [GitHub release page](https://github.com/playgama/bridge-scratch/releases). In TurboWarp, click the `Add Extension` button, select `Custom Extension`, select the downloaded file, and check the `Run without sandbox box`.

When the game is launched on supported platforms, the SDK will automatically load the necessary platform scripts. On unsupported platforms, no errors will occur; a mock platform will be used, and any request will return `false`, `reject`, etc.

### <img src="https://1088849411-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5ukgSPDBOdbQp4FYtbz1%2Fuploads%2F9BooaofCI33U9Np5oeif%2FFrame%203%20(1).png?alt=media&#x26;token=0750b56a-a069-4759-bda9-29951f06cd30" alt="" data-size="line"> Config <a href="#config" id="config"></a>

Download the `playgama-bridge-config.json` file from the [GitHub release page](https://github.com/playgama/bridge-scratch/releases), and add it to your project. There you can set up various identifiers and in-game purchases.

You can see an explanation of the file structure here: [playgama-bridge-config](https://wiki.playgama.com/playgama/sdk/playgama-bridge-config "mention").

### <img src="https://1088849411-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5ukgSPDBOdbQp4FYtbz1%2Fuploads%2F9BooaofCI33U9Np5oeif%2FFrame%203%20(1).png?alt=media&#x26;token=0750b56a-a069-4759-bda9-29951f06cd30" alt="" data-size="line"> Initialization <a href="#initialization" id="initialization"></a>

Before using the SDK, you need to call the initialization method and wait for it to complete.

<figure><img src="https://1088849411-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5ukgSPDBOdbQp4FYtbz1%2Fuploads%2FYW13tCI2HcnuBQbHGNoP%2FScreenshot%202025-07-11%20at%204.37.05%E2%80%AFPM.png?alt=media&#x26;token=5df32d75-a30f-4594-a090-17d4b10e0440" alt=""><figcaption></figcaption></figure>
