With a quick glance at the shurly code, I'd think this should work:
function yourmodule_shurly_redirect_before(&$redirect) {
$redirect->destination = 'path/to/advert?somevar='. $redirect->destination;
}
And then you need to set up youyour advertisement page as path/to/advert and have it redirect to $_GET['somevar']
after the timeout.