我想展示一个奖励视频广告与admob和adcolony。我按照官方教程,但我没有得到它的工作。我的App Id和zone 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
),但没有成功。
:
AdMob调解仍未完成(自20天起)
我错过了将adcolony和zone类型设置为Value Exchange/V4VC