Ionic 5 Full Starter App
  • Enappd Apps
  • Ionic 5 Full App
    • What is Ionic 5 Full App?
    • Template Features
    • Initial Setup
      • Environment Configuration
      • Credentials
    • Running the app
    • Deploying app as PWA
    • Building App on device
    • How to use this template?
      • Copy a module to another app
      • Shared Component & Modules
      • Map Service
    • Beginner Pack Features
      • Firebase
      • Layouts
      • Sidemenus
      • Login and Signups
      • Chat screens
      • Chat Lists
      • Video Playlists
      • Grids and Lists Layouts
    • Startup Pack Features
      • Wordpress
        • Wordpress JSON API Basics
        • Wordpress in Ionic 5 Full App
      • Translation - Multi-language
      • Using Custom Fonts
      • Infinite scroll
      • Content Loaders
      • Pull to refresh
      • List re-ordering
      • Date Pickers
    • Pro Pack Features
      • Phaser Game Framework
      • AdMob Integration
        • AdMob Introduction
        • Setting up Google Admob
        • Integration
      • Social Sharing
      • QR and Barcode Scanning
      • Google Places
      • Google Autocomplete
      • Social Logins
        • Google Login
        • Facebook Login
        • Twitter Login
      • Woo-commerce Integration
    • Removing a Page / Component
    • Removing a plugin
    • FAQs
    • Changelog
    • Troubleshoot
Powered by GitBook
On this page
  • Create Google AdMob account
  • Instructions

Was this helpful?

  1. Ionic 5 Full App
  2. Pro Pack Features
  3. AdMob Integration

Setting up Google Admob

Before integrating AdMob in your app, you need to setup Google Admob and create Ad units

PreviousAdMob IntroductionNextIntegration

Last updated 6 years ago

Was this helpful?

As explained in , there are 4 types of Ads. How to select which type of Ad displays in your app is decided by specific functions and Ad Unit Id. To get an Ad Unit Id, you need to create an AdMob account on Google and create Ad units.

These days AdMob is integrated with Firebase, so if your app uses Firebase, remember to create the AdMob account with same account as Firebase

Create Google AdMob account

Instructions

  • Signup then Sign in to your AdMob account at .

  • Click Apps in the sidebar.

  • Select the name of the app you're creating this ad unit for. If you don't see it in the list of recent apps, you can click Add app to add a new app or click View all apps to search a list of all of the apps you've added to AdMob.

  • Click Ad units in the sidebar.

  • Click Get started. If you've already created ad units for this app, click Add ad unit.

  • Enter a name for this ad unit. Recommended: Include relevant information, such as ad format and location in your app to make it easier to identify later.

  • (optional) Complete the advanced settings for this ad unit:

    • Automatic refresh: Determines how often a new ad request is generated for this ad unit. Recommended:Select Google optimized to let AdMob manage the refresh rate for you. The Google-optimized rate is calculated using AdMob historical data to ensure the ads shown in your ad units are being refreshed at the best rate for banner ads. You may also set a custom refresh rate of 30-150 seconds or disable automatic refresh rate completely.

    • eCPM floor: You can set an eCPM floor (also known as a minimum eCPM) for each ad unit you create. This instructs the AdMob Network not to serve ads to this ad unit with eCPM values below the minimum eCPM you’ve set.

      1. Click the eCPM floor toggle to turn it on and enable eCPM floors for your ad unit.

      2. Enter a global eCPM value for the AdMob Network to use as a floor.

      This eCPM floor only applies to the AdMob Network. It does not apply to third-party ad networks and custom events configured as ad sources in a mediation group.

    • (optional) Country-specific floors: If you've enabled an eCPM floor in the previous step, you can click Add country-specific floors to add country-specific eCPM floors for this ad unit. Country-specific eCPM floors will override this ad unit’s global eCPM value only when ad requests originate from the selected country.

      1. Select a country for which you want to set a specific floor. It will be added to the list of selected countries. You can select whole regions, or expand each section to view the individual countries within a region.

      2. Click Set to save the eCPM value.

      3. Repeat these steps for each country you select.

  • Click Create ad unit.

Click Select for the Banner .

Ad type: Choose the (s) allowed to be shown in this ad unit. You can choose any combination of ad types by checking the boxes. Unchecking all of the boxes will result in an error. You must choose at least one ad type for each ad unit. Suggestion: To try and help maximize revenue for this ad unit, we suggest checking all of the boxes.

Click the icon beside the country or region you selected and enter an eCPM floor value.

ad format
ad type
AdMob Introduction
https://apps.admob.com
Edit
Created ad units are visible on the app page with IDs