Inserting ads

how do i add the ad code that is given to me so it appears on all posts and pages in my website? Thank you!

Depends where you want to add it. Basically you would need a plugin for Adsense (I’m guessing that Adsense is what you’re using). See here lots of them: