When building AD or AP, it really depends on the stats of your champion really. For example, Ahri is an AP champion since all of her attacks do magic damage, not physical damage so it would be better to build AP on her not AD.
Same thing goes for junglers, it depends on the champion you play. If you play a champion like Amumu you should build AP, but if you play a champion like Master Yi it would be better to build AD. There are some champions you can build both though if you wanted, champions like Jax or Udyr (to my knowledge) are pretty damn good if you build either or.