アプリケーション用のカスタム AdLoader を作成しました。ただし、常にコンテンツ広告を読み込み、広告をインストールすることはありません。削除する.forContentAd
とインストール広告が表示されますが、両方を削除するとコンテンツ広告のみが表示されます。誰でも理由を教えてもらえますか?
これが私のコードです:
new AdLoader.Builder(activityContext, getString(R.string.test_admob_unit_id))
.forContentAd(new NativeContentAd.OnContentAdLoadedListener() {
@Override
public void onContentAdLoaded(NativeContentAd contentAd) {
adQueue.add(contentAd);
}
})
.forAppInstallAd(new NativeAppInstallAd.OnAppInstallAdLoadedListener() {
@Override
public void onAppInstallAdLoaded(NativeAppInstallAd appInstallAd) {
adQueue.add(appInstallAd);
}
})
.withAdListener(new AdListener() {
@Override
public void onAdFailedToLoad(int errorCode) {
// Handle the failure by logging, altering the UI, etc.
}
})
.withNativeAdOptions(new NativeAdOptions.Builder()
// Methods in the NativeAdOptions.Builder class can be
// used here to specify individual options settings.
.build())
.build();