8. Ads Setup

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.

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.

  • lib/pages/place_details.dart,

  • lib/pages/blog_details.dart,

  • lib/pages/guide.dart,

  • lib/pages/hotel.dart,

  • 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.

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.

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.

Last updated