How to Add a Ad Code?

I tried all the plugins and some of them do not work. I don't have adsense i use a alternative :)