Overview
Powered by Google, Admob is the product to earn revenue with in-app ads, actionable insights and powerful, easy-to-use tools.
Supported Platforms
Platform |
Plugin Version |
iOS |
2.0.5 |
Android |
0.1.3 |
Supported Integrations
-
Interstitials QB
Features
-
Interstitials screen pre-hook.
-
Instertitials can be shown once or every time a screen is presented.
Prerequisites
-
Firebase account
-
App registered in Firebase (iOS and Android separately)
-
Admob account
-
App Registered (iOS and Android separately)
-
Ad units for interstitials.
-
The plugin is only available for applications using the latest SDK compatible for QB-only.
Adding the plugin to your application
iOS
Configuring your plugin
1.- Go to the Plugin Configuration screen, find the General category and under All Plugins you will see the Firebase Base Setting 2.0 plugin. Add the plugin to your app.
2.- After adding the plugin return to its configuration and upload the plist configuration file for Enterprise and Production.
-
The Plist files can be downloaded through the settings of your Firebase project. For more information please visit
Firebase documentation on creating a project.
3.- Go back to the Plugin Configuration of your app. Find the Advertisement category and under All Plugins select and add Google Admob Ads to your app.
4.- Go into the configuration of the plugin and enter the Admob Application Identifier.
-
The AdMob Application Identifier can be found in the app settings in your AdMob Dashboard. For more information please visit
Google’s documentation on creating an app in Admob.
Your first interstitial
1.- Go to App Studio using the layout assigned to your app and add the interstitial plugin screen.
Rename the screen to something identifiable such as “Interstitial”.
2.- Go to the screen you want to show the interstitial ad before presenting itself. Add the interstitial screen as a screen pre-hook and enter the specific ad unit in the Interstitial Ad Unit field under Advertising.
Rename the screen to something identifiable such as “Interstitial”.
3.- Open your app. The interstitial ad should appear before the screen added with the pre-hook. By default interstitials will appear every time a screen is presented. The behavior can be modified by turning on Display Interstitial Once; the ad will show only the first time the screen is presented.
Android
Configuring Your Plugin
1.- Create your firebase configuration file. The file contains the admob id for your application, please see the example below for reference:
{
"react-native": {
"admob_android_app_id": "ca-app-pub-1046981027950870~8604662721",
"admob_ios_app_id": "ca-app-pub-xxxxxxxx~xxxxxxxx"
}
}
The AdMob Application Identifier can be found in the app settings in your AdMob Dashboard. For more information please visit Google’s documentation on creating an app in Admob.
2.- Go to the Plugin Configuration of your app. Find the Advertisement category and under All Plugins select and add Google Admob Ads to your app.
3.- Go into the configuration of the plugin and enter the Admob Application Identifier. Here, upload the json configuration file previously created.
Your first interstitial
1.- Go to App Studio using the layout assigned to your app and add the interstitial plugin screen.
Rename the screen to something identifiable such as “Interstitial”.
2.- Go to the screen you want to show the interstitial ad before presenting itself. Add the interstitial screen as a screen pre-hook and enter the specific ad unit in the Interstitial Ad Unit field under Advertising.
Rename the screen to something identifiable such as “Interstitial”.
3.- Open your app. The interstitial ad should appear before the screen added with the pre-hook. By default interstitials will appear every time a screen is presented. The behavior can be modified by turning on Display Interstitial Once; the ad will show only the first time the screen is presented.
Comments
0 comments
Please sign in to leave a comment.