Edit the file ad.php to display your custom ad here. You may use PHP or pure HTML.
If you want to set some other page for the ad frame, edit the template redirect.tpl.