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!!
AdMob Mediation enables you to mediate ads from third-party ad networks, including those that serve in-app video ads.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With