on the first page URL before the doctype or html tags put:
<?php header("location: adlocationhere.php"); ?>
Then on the ad page put this:
<?php header("refresh:5;url=secondredirectafter5seconds.php"); ?>
This will redirect your first page immediately and it will redirect your second page after 5 seconds. You can change the seconds as pe your requirement.
Hope this helps.