Essentials
Ads
Display Ads
Adding the AdMob app
- Head over to the AdMob homepage and sign up for an account
- Go to the dashboard and click Apps on the left-side menu
- Next, click Add App and select Android as the platform
- If your app is not published yet, select No for Is the app listed on a supported app store? and then click Continue
- Enter the App Name and click ADD APP
- Click Done
- Repeat the same process for an iOS app
Creating AdUnits
The kind of advertisement presented is determined by the ad unit. You should create ad units for each type of ad that you plan to have in your app.
Here’s how you do it:
- Click Apps on the left-side menu and then select your app
- Click the ADD AD UNIT button
- Select the type of ad (e.g Banner)
- Enter the Ad unit name, click Create ad unit, and then select Done
- Similarly, create an ad unit for the Interstitial and Rewarded ads. While creating the rewarded ads, be sure to keep the default settings
- Finally, create Ad units for the iOS app as well
Android Specific Setup
Update your AndroidManifest.xml Add your AdMob App ID to your app’s AndroidManifest.xml file by adding the ‘meta-data’ tag shown below. You can find your App ID in the AdMob UI. For android:value insert your own AdMob App ID in quotes, as shown below.
You can use these test App ID’s from Admob for development:
AndroidManifest.xml
iOS Specific Setup
Update your Info.plist per Firebase instructions.
Info.plist
and add
Info.plist