📖 View this page in our documentation


Earn revenue from in-app ads and obtain actionable analytics insights and tools to help grow your app business. Google's AdMob platform displays native banner and interstitial ads which provide an enhanced user experience and result in increased monetization versus ads displayed through your website.

Google's AdMob is one of the most popular mobile app ad platforms, allowing you to monetize your app. When added, the AdMob Native Ads SDK is integrated into your app providing full access to all features of the platform through GoNative's Native JS Bridge.

AdMob offers the display of two types of mobile ads: banner ads and interstitial ads.

Banner ads are shown near the bottom of the app window, immediately below your website content and above any toolbars or tab bars. They are intended to be constantly displayed while your app is open.

Interstitial ads appear full-screen and interrupt your user’s activity. They typically are animated, may play video, and may have a timer of a few seconds that prevents the user from immediately closing the ad. Because interstitial ads are more intrusive, they should be used and activated with care.

iOS 14 requires user consent for applications to use the device IDFA (Identifier for Advertisers). You may request the user for tracking consent, if denied AdMob will fall-back to less targeted identifiers.

Enabling the module

In order to configure the AdMob module for your app, you will need to provide the bannerAdUnitId and the interstitialAdUnitId for both Android and iOS.

There are separate unit identifiers for Android and iOS because Admob considers them to be two separate apps.

You will also provide the applicationId using the value from the AdMob website for your app. Create ad units for a banner ad and an interstitial ad. If interstitialAdUnitId or bannerAdUnitId is not provided, then the respective ad type will not be shown.

If bannerAdUnitId is provided, the banner ads will automatically be shown when your app launches. Configure its text styling, refresh rate, etc via the AdMob dashboard.

To disable automatically showing the banner ad when the app loads set a field called showBanner to false . You may then show it programmatically at run-time (see Javascript Bridge command below).

Implementation Guide

Once the premium module has been added to your app, you may use the following GoNative JavaScript Bridge commands to access its functionality.

Interstitial ads are not shown automatically. They are pre-loaded in the background and must be invoked afterwards.

View GoNative JavaScript Bridge example code in our documentation

iOS 14 Tracking Consent

iOS 14 requires user consent for applications to use the IDFA (Identifier for Advertisers). Given consent, AdMob will use IDFA, otherwise it will fall back to less targeted identifiers.

View GoNative JavaScript Bridge example code in our documentation