clockbyte / admobadapter

It wraps your Adapter to display Admob native ads and banners in a ListView/RecyclerView data set. It based on the Yahoo fetchr project https://github.com/yahoo/fetchr
Apache License 2.0
237 stars 75 forks source link

error: setupAd(AdView) has protected access in AdmobFetcherBanner #132

Open patriqjr opened 4 years ago

patriqjr commented 4 years ago

private AdView prefetchAds(int cntToPrefetch){ AdView last = null; for (int i = 0; i < cntToPrefetch; i++){ final AdView item = AdViewHelper.getBannerAdView(mContext, adFetcher.takeNextAdPreset()); adFetcher.setupAd(item); //50 ms throttling to prevent a high-load of server new Handler(mContext.getMainLooper()).postDelayed(new Runnable() { @Override public void run() { adFetcher.fetchAd(item); } }, 50 * i); last = item; } return last;