admobadapter/src/main/java/com/clockbyte/admobadapter/AdmobAdapterCalculator.java
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;
    }
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;
    }
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.

@param position the adapter position
@param fetchedAdsCount the count of completely fetched ads that are ready to be published
@return {@code true} if an ad is available, {@code false} otherwise
Checks if an ad is available for this position .