允许Admob的显示视频广告 [英] Allow Admob to Display Video ads

查看:846
本文介绍了允许Admob的显示视频广告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有完美的展示插播式广告的应用程序,但它们只是图像,作为一代生活的影片,我认为这将是有益的,允许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!!

推荐答案

有没有办法以编程方式显示在你的项目/应用程序的视频广告。然而,在AdMob的控制台,您可以指定一种间质性广告类型(文本,图像,视频)应您的应用程序内送达。

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.

在默认情况下文本,图像,应启用视频广告类型的间隙。您可以禁用的文本和图片广告的类型,如果你想限制为仅视频广告,但是请注意这将导致导致收入的下降较低的填充率。另请注意,视频广告将无法加载,当用户有一个贫穷的/互联网连接速度较慢,而使用你的AP。

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

这篇关于允许Admob的显示视频广告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆