public int getOriginalContentPosition(int position, int fetchedAdsCount, int sourceItemsCount) {
        int noOfAds = getAdsCountToPublish(fetchedAdsCount, sourceItemsCount);
        // No of spaces for ads in the dataset, according to ad placement rules
        int adSpacesCount = (getAdIndex(position) + 1);
        int originalPosition = position - Math.min(adSpacesCount, noOfAds);
        //Log.d("POSITION", position + " is originally " + originalPosition);
        return originalPosition;
    }
public int getOriginalContentPosition(int position, int fetchedAdsCount, int sourceItemsCount) {
        int noOfAds = getAdsCountToPublish(fetchedAdsCount, sourceItemsCount);
        
        int adSpacesCount = (getAdIndex(position) + 1);
        int originalPosition = position - Math.min(adSpacesCount, noOfAds);
        
        return originalPosition;
    }
public int getOriginalContentPosition ( int position , int fetchedAdsCount , int sourceItemsCount ) { int noOfAds = getAdsCountToPublish ( fetchedAdsCount , sourceItemsCount ) ; // No of spaces for ads in the dataset, according to ad placement rules int adSpacesCount = ( getAdIndex ( position ) + 1 ) ; int originalPosition = position - Math . min ( adSpacesCount , noOfAds ) ; //Log.d("POSITION", position + " is originally " + originalPosition); return originalPosition ; }
Translates an adapter position to an actual position within the underlying dataset.

@param position the adapter position
@param fetchedAdsCount the count of completely fetched ads that are ready to be published
@param sourceItemsCount the count of items in the source collection
@return the original position that the adapter position would have been without ads
Translates an adapter position to an actual position within the underlying dataset .