Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

NativeAdLoader 의 loadAds(NativeAdLoader.OnAdsLoadedListener listener, int count)를 사용하여 여러 개의 Native 광고를 로드할 수 있습니다. 최대 10개까지 가능합니다.

Code Block
languagejava
final NativeAdLoader loader = new NativeAdLoader("YOUR_NATIVE_AD_UNIT_ID");
loader.loadAds(new NativeAdLoader.OnAdsLoadedListener() {
    @Override
    public void onLoadError(@NonNull AdError adError) {
    	...
    }

    @Override
    public void onAdsLoaded(@NonNull Collection<NativeAd> collection) {
    	...
    }
}, NATIVE_ADS_COUNT);

...