Docy

Integrate AdMob (Google ADS)

Estimated reading: 3 minutes

After creating a Google AdMob account and you are all ready to start your own AdMob ads system on your mobile app.

You will need to follow a few steps before seeing your ADS appearing in your mobile application.

  • Find your app IDs & ad unit IDs
    An app ID is a unique ID number assigned to your apps when they’re added to AdMob. The app ID is used to identify your apps.
  • An ad unit ID is a unique ID number assigned to each of your ad units when they’re created in AdMob. The ad unit ID is added to your app’s code and used to identify ad requests from the ad unit.
  • Find an app ID:
    1. Sign in to your AdMob account at https://apps.admob.com.
    2. Click Apps in the sidebar.
    3. Click View all apps.
    4. Click the icon in the App ID column to copy the ID of an app.
  • Find an ad unit ID:
    1. Sign in to your AdMob account at https://apps.admob.com.
    2. Click Apps in the sidebar.
    3. Click the name of the app associated with the ad unit. Note: If you don’t see it in the list of recent apps, click View all apps. Then, click the name of the app.
    4. Click Ad units in the sidebar.
    5. Click the icon in the Ad unit ID column to copy the ID of an ad unit.
  • Copy the APP_ID and Banners ads and put them on your analytic.xml file in your solution code as below.
  • Copy the Interstitial & Rewarded & Native & AppOpen and put them on your AppSettings.cs class¬†file in your solution code as below.
Warning about new privacy on google Admob

Should be added app-ads.txt in the server:

  • Should this content file text https://prnt.sc/vm086w
  • and the link should be http(s)://www.demo.com/app-ads.txt

For more details, you can see the video

Leave a Comment