SoftwareEnthusiast
SoftwareEnthusiast

Reputation: 271

Allow Admob to Display Video ads

I have an application displaying interstitial ads perfectly, but they are just images, and as a generation living on videos, I think it would be beneficial to allow Admob to display Video ads as well.

Do I have to add extra permissions for that? Or what I should do differently?

Here is how I display ads;

interstitial = new InterstitialAd(Main.this);
// Insert the Ad Unit ID
interstitial.setAdUnitId("ca-app-pub-...442");

//Locate the Banner Ad in activity_main.xml

// Request for Ads
adRequest = new AdRequest.Builder()

// Add a test device to show Test Ads
.addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
.addTestDevice("")
      .build();

// Load ads into Banner Ads
//adView.loadAd(adRequest);

// Load ads into Interstitial Ads
Runnable r = new Runnable () {

    @Override
    public void run() {
          interstitial.loadAd(adRequest);
    }
};

runOnUiThread(r);
// Prepare an Interstitial Ad Listener
interstitial.setAdListener(new AdListener() {
  public void onAdLoaded() {
      // Call displayInterstitial() function
     displayInterstitial();
  }
 });

And just these two permissions;

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

The ads are displayed fine but they are only Image ads, I want VIDEOS!!

Upvotes: 8

Views: 19944

Answers (1)

Nana Ghartey
Nana Ghartey

Reputation: 7927

There's no way to display video ads programmatically in your project/app. However, in the admob console, you can specify the kind of interstitial ad types( Text, Image, Video) that should be served within your app.

By default Text, Image, Video ad types should be enabled for interstitials. You can disable the Text and Image ad types if you want to restrict to only video ads, however note this will lead to a lower fill rate resulting in a decrease in revenue. Also note that video ads will fail to load when users have a poor/slow internet connection while using your ap.

Just go to Monetize -> Select your app -> Click the interstitial ad unit -> Enable/Disable ad types

enter image description here

Upvotes: 17

Related Questions