When laying out toilets, there are two figures to look at. One is Fig. 29 (b) shown below, which shows the toilet paper dispenser, but only the height is dimensioned.

Then you have Fig. 30(d) shown below, which shows a toilet located in a stall where the toilet paper dispenser is shown dimensioned both in height and distance from the rear wall.

Even though Fig. 29 (b) does not show the distance from the rear wall, it is assumed that it is an oversight and the 36" max must be met. The new ADAAG gets rid of the dimension from the rear wall and measures from the edge of the water closet to the toilet paper.
If you are still confused and can't figure out where to put
it, then......(wink, wink)