protected synchronized void fetchAd() {
        Context context = mContext.get();

        if (context != null) {
            Log.i(TAG, "Fetching Ad now");
            if(lockFetch.getAndSet(true))
                return;
            mFetchingAdsCnt++;
            adLoader.loadAd(getAdRequest()); //Fetching the ads item
        } else {
            mFetchFailCount++;
            Log.i(TAG, "Context is null, not fetching Ad");
        }
    }
protected synchronized void fetchAd() {
        Context context = mContext.get();

        if (context != null) {
            Log.i(TAG, "Fetching Ad now");
            if(lockFetch.getAndSet(true))
                return;
            mFetchingAdsCnt++;
            adLoader.loadAd(getAdRequest()); 
        } else {
            mFetchFailCount++;
            Log.i(TAG, "Context is null, not fetching Ad");
        }
    }
protected synchronized void fetchAd ( ) { Context context = mContext . get ( ) ; if ( context != null ) { Log . i ( TAG , "Fetching Ad now" ) ; if ( lockFetch . getAndSet ( true ) ) return ; mFetchingAdsCnt ++ ; adLoader . loadAd ( getAdRequest ( ) ) ; //Fetching the ads item } else { mFetchFailCount ++ ; Log . i ( TAG , "Context is null, not fetching Ad" ) ; } }
Fetches a new native ad.
Fetches a new native ad .