go into the file manager in cpanel or ftp, go to the smf folder u installed smf on, click on the folder that says themes, click the theme you want, then edit the index.template file by putting the ad-code at the very top before anything else. use <center>code here</center> to center it. If you need any more help there is better descriptions all over the forums just do a search
Tyler