do you get paid for the ads appearing or just hosting them?

A certain program means I rarely get them...