You would just put the ad code in an appropriate box on the Admin > Layout section.
If you need to put the ad in a specific place you can make an advanced theme (check the docs for details, it's not too hard). I also made a plugin that will let you put content in various places. Details here.
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.