admobadapter/src/main/java/com/clockbyte/admobadapter/AdmobFetcher.java
private synchronized void onAdFetched(NativeAd adNative) {
        Log.i(TAG, "onAdFetched");
        int index = -1;
        if (canUseThisAd(adNative)) {
            mPrefetchedAdList.add(adNative);
            index = mPrefetchedAdList.size()-1;
            mNoOfFetchedAds++;
        }
        lockFetch.set(false);
        mFetchFailCount = 0;
        ensurePrefetchAmount();
        onAdLoaded(index);
    }
private synchronized void onAdFetched(NativeAd adNative) {
        Log.i(TAG, "onAdFetched");
        int index = -1;
        if (canUseThisAd(adNative)) {
            mPrefetchedAdList.add(adNative);
            index = mPrefetchedAdList.size()-1;
            mNoOfFetchedAds++;
        }
        lockFetch.set(false);
        mFetchFailCount = 0;
        ensurePrefetchAmount();
        onAdLoaded(index);
    }
private synchronized void onAdFetched ( NativeAd adNative ) { Log . i ( TAG , "onAdFetched" ) ; int index = - 1 ; if ( canUseThisAd ( adNative ) ) { mPrefetchedAdList . add ( adNative ) ; index = mPrefetchedAdList . size ( ) - 1 ; mNoOfFetchedAds ++ ; } lockFetch . set ( false ) ; mFetchFailCount = 0 ; ensurePrefetchAmount ( ) ; onAdLoaded ( index ) ; }
A handler for received native ads
A handler for received native ads