Show Sidebar

AdMob Integration using Android SDK

Maaf, entri ini hanya tersedia dalam bahasa English. For the sake of viewer convenience, the content is shown below in the alternative language. You may click the link to switch the active language.

Latest Google Play Services Ads Library Supported.

Supported Ad Formats: The VMAX SDK supports Admob Native Advanced Ads . Considering discontinuation (https://developers.google.com/admob/android/native-express) of AdMob Express ads we have removed the support for the same.

You will need

  1. an active AdMob account
  2. Ad unit ID
  3. Refresh Token
  4. App Id(Mandatory if you are using playservices 17 and above)

In your AdMob Account

To find the ad unit ID, click the Monetize tab. Select an app from the list of apps in the sidebar. The ad unit ID is listed below the ad unit name.

Read more on how to get your refresh token here.

Further Integration

Step 1: The AdMob adapters are a part of the VMAX base SDK but you need to add Google Mobile Ads library to Your Project as mentioned.

Step 2: Add the accompanying code inside the <application> tag in AndroidManifest.xml

Step 3: Add the following permissions to AndroidManifest.xml

 

Step 4: If you are using playservices version 17  and above you will have to include a meta-data tag in your AndroidManifest.xml containing your Ad mob App Id in the following format. Failure to add this tag results in a crash with the message: “The Google Mobile Ads SDK was initialized incorrectly.”

 

What would you like to do next?