# Banner

{% hint style="info" %}
There are some advertisement settings in the `playgama-bridge-config.json` file

[playgama-bridge-config](https://wiki.playgama.com/playgama/sdk/playgama-bridge-config "mention")
{% endhint %}

#### Is Banner Supported

Check if the platform supports displaying banner ads. Use this to determine if you can include banner advertisements in your game.

<figure><img src="https://1088849411-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5ukgSPDBOdbQp4FYtbz1%2Fuploads%2FrA6fMGD88VqxyZfXYBjA%2FScreenshot%202024-10-17%20at%206.29.07%E2%80%AFPM.png?alt=media&#x26;token=2861bad1-e65b-4eb1-a6e6-3081cc1d2d85" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Ensure that in-game banners are not displayed during gameplay on CrazyGames. Please refer to [Advertisement - CrazyGames Documentation](https://docs.crazygames.com/requirements/ads/).&#x20;
{% endhint %}

#### Show Banner <a href="#show-banner" id="show-banner"></a>

Display a banner ad within your game to generate revenue through advertising. Parameters:

* Position `Top` | `Bottom`
* Placement (optional)

<figure><img src="https://1088849411-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5ukgSPDBOdbQp4FYtbz1%2Fuploads%2FK7y4QMLlYDS6nB9g5Qz7%2FScreenshot%202025-05-28%20at%2011.23.34%E2%80%AFAM.png?alt=media&#x26;token=d932a6ff-2460-4f97-ada5-d21bf2120d22" alt=""><figcaption></figcaption></figure>

<details>

<summary>Copy This Example</summary>

```
{"is-c3-clipboard-data":true,"type":"events","items":[{"eventType":"block","conditions":[{"id":"on-start-of-layout","objectClass":"System"}],"actions":[{"id":"show-banner","objectClass":"PlaygamaBridge","parameters":{"position":"bottom","placement":"\"test_placement\""}}]}]}
```

</details>

#### Hide Banner <a href="#hide-banner" id="hide-banner"></a>

Hide the currently displayed banner ad when it is no longer needed.

<figure><img src="https://1088849411-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5ukgSPDBOdbQp4FYtbz1%2Fuploads%2FQz7K0kKWQuW3WjFszSYF%2FScreenshot%202024-10-17%20at%206.34.01%E2%80%AFPM.png?alt=media&#x26;token=6f024c1d-70bf-4de4-bcbe-6f069dc557f3" alt=""><figcaption></figcaption></figure>

#### Banner State <a href="#banner-state" id="banner-state"></a>

Monitor the state of the banner ad (loading, shown, hidden, failed) to manage its display and troubleshoot issues.

```java
PlaygamaBridge.BannerState
```

Current state of the banner. Possible values: `loading`, `shown`, `hidden`, `failed`.
