admob 조정을 통해 차트 부스터, vungle 및 adcolony를 사용하려고합니다.admob 조정과 함께 Chartboost를 어떻게 사용합니까?
나는 vungle 및 adcolony를 통해 광고를 성공적으로 생성했습니다.하지만 chardboost로 광고를받지 못했습니다.
vunglePub.init(getActivity(), "String");
AdColony.configure(getActivity(), "version", "String", "String");
MobileAds.initialize(getActivity(), "String");
mAd = MobileAds.getRewardedVideoAdInstance(getActivity());
FromRewardVideos();
Bundle bundle = new Bundle();
adRequest = new AdRequest.Builder()
.addNetworkExtrasBundle(VungleInterstitialAdapter.class, bundle)
.addNetworkExtrasBundle(AdColonyAdapter.class, bundle)
.addTestDevice("device_id")
.build();
그리고 난 같은 ChartBoost을 구현하기 위해 노력하고 있습니다 -
Chartboost.startWithAppId(getActivity(),"id","signature");
DelegateMethod();
Chartboost.setDelegate(chartboostDelegate);
Chartboost.onCreate(getActivity());
private void AdLoad() {
if (Chartboost.hasRewardedVideo(CBLocation.LOCATION_DEFAULT)) {
Chartboost.showRewardedVideo(CBLocation.LOCATION_DEFAULT);
}
else {
// We don't have a cached video right now, but try to get one for next time
Chartboost.cacheRewardedVideo(CBLocation.LOCATION_DEFAULT);
}
}
private void DelegateMethod() {
chartboostDelegate = new ChartboostDelegate() {
@Override
public void didFailToLoadRewardedVideo(String location, CBError.CBImpressionError error) {
super.didFailToLoadRewardedVideo(location, error);
Chartboost.cacheRewardedVideo(CBLocation.LOCATION_DEFAULT);
}
};
}
그리고 당신은 중재하려는 경우 사전
내가 adcolony을 통해 모든 네트워크를 매개 아니지만, 몹을 통해 :
나는 그들이 여기 링크에서 각 광고 네트워크를 통합하는 방법에 대한 공식 지침을 믿습니다. 괜찮 았어. 그래서 나는이 어댑터들을 모두 별도로 초기화하면 안된다. admob 콘솔에 이미 앱 ID, 비밀 및 기타 키를 설정 했으므로 Admob이 자동으로이 작업을 수행합니까? –
그건 오타 였고 AdMob이라는 뜻이었습니다. 또한 AdMob은 광고를 할 때 모든 것을 처리해야합니다. –