public int getAdIndex ( int position ) { int index = - 1 ; if ( position >= getOffsetValue ( ) ) index = ( position - getOffsetValue ( ) ) / ( getNoOfDataBetweenAds ( ) + 1 ) ; //Log.d("POSITION", "index " + index + " for position " + position); return index ; }
Gets the ad index for this adapter position within the list of currently fetched ads .