我想展示带有admob和adcolony的奖励视频广告。
我遵循了官方教程,但无法正常工作。
我的应用程序ID和我的区域ID已正确配置。
教程:
https://firebase.google.com/docs/admob/android/rewarded-video
https://adcolony-www-common.s3.amazonaws.com/pub-adapter/android/AdColonyAdapterIntegrationGuide.pdf
这是我的代码:
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
),但没有成功。更新:
自20天以来,AdMob中介仍处于待处理状态
最佳答案
事实证明,我没有将adcolony广告区域类型设置为Value Exchange/V4VC