Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Allow Admob to Display Video ads

Tags:

android

admob

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!!

like image 868
SoftwareEnthusiast Avatar asked Oct 27 '14 18:10

SoftwareEnthusiast


People also ask

Does AdMob have video ads?

AdMob Mediation enables you to mediate ads from third-party ad networks, including those that serve in-app video ads.

Can Google display ads be video?

In Google Ads, you can create compelling video campaigns with a range of video ad formats to engage customers in different ways on YouTube and across video partner sites. Available video ad formats include: Skippable in-stream ads. Non-skippable in-stream ads.


1 Answers

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

like image 74
Nana Ghartey Avatar answered Sep 30 '22 02:09

Nana Ghartey