Adding ads to a post

Hi all,
How do you add ads to a hugo post or main page?
Thanks!

I would approach it by adding the ads code to a partial template, then add that to my single.html. The main page is a different beast: add to your index.html for that.