使用Adcolony的Admob奖励视频广告

时间:2016-08-23 11:54:24

标签: java android admob adcolony

我想用admob和adcolony显示奖励视频广告。 我按照官方教程,但我没有让它工作。 我的应用ID和我的区域ID配置正确。

教程:

这是我的代码:

rewardView = MobileAds.getRewardedVideoAdInstance(activity);
...
rewardView.setRewardedVideoAdListener(new RewardedVideoAdListener()
...

Bundle extras = new Bundle();
extras.putBoolean( "_noRefresh", true );

AdRequest adRequest = new AdRequest.Builder().addNetworkExtrasBundle( AdColonyAdapter.class, extras )
    .addNetworkExtrasBundle( AdMobAdapter.class, extras)
    .build();

rewardView.loadAd(config.adMobIdReward, adRequest);

日志输出:

08-23 12:43:23.494 14581-14581/MYAPPID I/AdColony: ==== Adapter version 1.1.1 ====
08-23 12:43:23.494 14581-14581/MYAPPID I/AdColony: ==== Configuring AdColony 2.3.6 with app/zone ids: ====
08-23 12:43:23.494 14581-14581/MYAPPID I/AdColony: MYADCOLONYAPPID
08-23 12:43:23.494 14581-14581/MYAPPID I/AdColony: MYADCOLONYZONEID
08-23 12:43:23.495 14581-14581/MYAPPID I/AdColony: Adapter initialized, adding V4VC listener
...
08-23 12:49:39.137 14581-14581/MYAPPID I/Ads: Starting ad request.
08-23 12:49:39.138 14581-14581/MYAPPID I/Ads: Use AdRequest.Builder.addTestDevice("MYDEVICEID") to get test ads on this device.
08-23 12:49:39.927 14581-14581/MYAPPID W/Ads: : Server parameters: {"gwhirl_share_location":"1","app_id":"MYADCOLONYAPPID","zone_ids":"MYADCOLONYZONEID"}
08-23 12:49:39.937 14581-14581/MYAPPID W/Ads: Failed to load ad: 3

我也尝试添加我的设备(使用addTestDevice)但没有成功。

更新

AdMob Mediation仍在等待(自20天起)

1 个答案:

答案 0 :(得分:2)

事实证明,我错过了将adcolony广告区域类型设置为Value Exchange/V4VC