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 Library Supported.

Supported Ad Formats: The VMAX SDK supports native ads (AdMob Native Express Ads as AdMob Native Advanced Ads are still in beta and open for limited publishers), banners, and interstitials from AdMob.

For more information on AdMob ads, kindly refer this page.

You will need

  1. an active AdMob account
  2. Ad unit ID
  3. Refresh Token

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 files are a part of the of the VMAX base SDK but you need to add Google Play Services to Your Project as mentioned here.

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

Step 4: Add the following permissions to AndroidManifest.xml
Step 5: Make sure you pass Native Ad size to Vmax SDK while requesting Admob Express Ads. Add below snippet before making Ad request(cacheAd())

What would you like to do next?