public boolean isAdAvailable ( int position , int fetchedAdsCount ) { if ( fetchedAdsCount == 0 ) return false ; int adIndex = getAdIndex ( position ) ; int firstAdPos = getOffsetValue ( ) ; return position >= firstAdPos && adIndex >= 0 && adIndex < getLimitOfAds ( ) && adIndex < fetchedAdsCount ; }
Checks if an ad is available for this position .