# 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%2FFpKeJ8xcVjZtH6024epJ%2FScreenshot%202025-01-21%20at%2012.46.25.png?alt=media&#x26;token=fff8bad4-79b6-4c04-b7a1-2a074b916982" 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%2FV7RixOYY1aU8JQJHkwZN%2FScreenshot%202025-05-28%20at%2011.33.23%E2%80%AFAM.png?alt=media&#x26;token=eb5d568c-8f09-4a0b-9e5e-70098f6e3dc5" alt=""><figcaption></figcaption></figure>

<details>

<summary>Copy This Example</summary>

```
{"000kind":"GDEVELOP_EventsAndInstructions_CLIPBOARD_KIND-jsBdHbLy912y8Rc","content":{"eventsList":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"DepartScene"},"parameters":[""]}],"actions":[{"type":{"value":"PlaygamaBridge::ShowBanner"},"parameters":["","\"bottom\"","\"test_placement\"",""]}]}],"eventsCount":1,"actionsList":[],"actionsCount":0,"conditionsList":[],"conditionsCount":0}}
```

</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%2FFsdUh4LSlL60an3RnzEb%2FScreenshot%202025-01-21%20at%2012.54.17.png?alt=media&#x26;token=3e274b22-aeb4-49e9-9a4f-c6b532caef6c" 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.

```javascript
PlaygamaBridge::BannerState()
```

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