You have probably seen random words highlighted to a clickable link. This is in-text advertising. When you click on the link it takes you elsewhere. You make money from this. It has benefits over other types of ads because it is not distracting or invasive.