# 8. Ads Setup

{% hint style="success" %}
You can skip this setup for now and can configure it later. We have enabled AdMob ads by default with test ad unit ids. You can enable/disable ads from the admin panel.
{% endhint %}

We have added interstitial AdMob ads. You can also set how many times a user clicks to show an ad. By default, we have added **clicksCount**  for 5 times. That means when a user goes to a screen and if the **clicksCount** is multiplied by 5, then an ad will be shown. Then means after 5,10,15...clicks an ad will be shown if the ads are loaded properly. We have applied ads to 5 screens.&#x20;

> * lib/pages/place\_details.dart,&#x20;
> * lib/pages/blog\_details.dart,&#x20;
> * lib/pages/guide.dart,&#x20;
> * lib/pages/hotel.dart,&#x20;
> * lib/pages/restaurant.dart

That means ClickCount will be applied only for these 5 screens. To edit the clickCount times, go to **lib/config/ad\_config.dart** file and edit the amount.

<figure><img src="https://lh3.googleusercontent.com/ZmyEhPRQrmFTW4D09BxoOYRFt8ojQhwHTy8ZVvnnm4uYNpU0lwkAzFUqcWU-JaJjXGS5_5q4J2zOmE3ayNipKmnaI-JCznE1f91R2OaeqjG248kfXEDgZoWZfGnAtzebm3leEF1d8jJshe4kbbsnEA" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
You can control ads from the admin panel. We have added an option to turn off/on ads at any time you want. Don’t enable ads on the admin panel if you are not enabled ads in the app.
{% endhint %}

{% hint style="warning" %}
We have used Admob ads by default with test unit ids. To test the ads, you should test with the test unit ids. Before releasing the app for production, make sure you have changed the app ids and ad unit ids with yours. Admob is applied by default. So you don’t have to do anything before releasing.
{% endhint %}


---

# 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://doc.travelhour.mrb-lab.com/app/8.-ads-setup.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.
