# Ads settings

After you have created app in your ads account with ads like Banner, Interstitial and Rewarded you need to enter you appID and Placement ID (ads id) . You can create separate ad for each case in the game, that is why we hava separate placement for each event.

Access Ads settings via menu Tools->GameTemplate ->Settings->Ads settings

<figure><img src="/files/OxucSENlrJGxW905fFZo" alt="" width="375"><figcaption><p>Ads settings window</p></figcaption></figure>

### Ads settings:

* **Name** of the ad profile
* **Enable** - enables and disables profile (*several profiles on the same platrform will be shown in order and availability )*
* **Test in editor** - some networks have no ability to test in editor and throws an error
* **Platform** of the ad
* **App id**  - you should take from the ad network account
* **Ads Handler** - is the script of integration, represents particular ad network you going to use for the ad
* **Ad elements:**
  * **Placement id** you should take from ad network account
  * **Ad reference** is the type of the ad, for rewarded ad it is also a reference to gameObject [(How to setup rewarded ads)](#rewarded-a-ds)
  * **Popup** is popup which triggers interstitial. You can setup separate **placement id** for a popup for deeper analytics.
  * Show On Open/Close - a moment to open an ad before or after popup

### Rewarded ads

How to setup rewarded adsYou can find example of using rewarded ads in next popups: Resources/Popups

* **LifeShop**
* **LuckySpin**
* **PreFail**
* **PreFailTime**

To add rewarded ad for a popup add **RewardedButtonHandler** component

<figure><img src="/files/Y9Xrqz0YtD4Av7fk1zHa" alt="" width="375"><figcaption><p>RewardedButtonHandler using in the LifeShop popup</p></figcaption></figure>

* Choose **Ad Reference** which represents a type of an add but you can create separate references for a rewarded ad for each placement id to separate analitycs.
* Assign **rewarded button** which call a rewarded ad
* Assign a **complete event**, if the rewarded ad successfully completed the event will trigger the method you will assign. In example we call LifeShop.GetLife after the player watched rewarded ad to award him with an extra life.

```
```


---

# 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://docs.candy-smith.com/bubble-shooter-toolkit/tutorials/ads-setup/ads-settings.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.
