@Maurice mentioned how to perform a HTTP redirect in JavaScript. If you do this on both pages, however, then you will find yourself in an infinite redirect loop, which is very bad. To expand on that answer here is some PHP to dynamically disable the second redirect from the original page through the use of a query string parameter (see https://en.wikipedia.org/wiki/Query_string).
First, you need to include the following PHP code at the top of your document. If you have other PHP code, just put the inside of this code below it. This will accept the redirect query string.
<?php
$redirect = 1
if (isset($_GET['redirect'])) {
$redirect = htmlspecialchars($_GET["redirect"]);
}
?>
Now, later in the document (preferably at the end of body or within head) you need to dynamically generate the JavaScript using PHP as such.
<?php
if ($redirect == 1)
{
echo "<script>";
echo "// Simulate an HTTP redirect:";
echo "setTimeout(function() { // timer";
echo "window.location.replace(url);";
echo "}, 10000); // 10000 ms = 10 seconds";
echo "</script";
}
?>
Note that you will need to replace "url" here with the appropriate url, which may require properly escaping quotations (see https://www.php.net/manual/en/function.addslashes.php)
As a final note, you need to set the "redirect" query string appropriately on the page that redirects back to the original. You can do so with something like this:
mydomain.net/games/?game=PUBG+Mobile&Rating=5&redirect=0
UPDATE PER REQUEST
On the second page you don't need the PHP logic mentioned above. You simply need a JavaScript 10 second redirect. Something like this should work.
<script>
url = "mydomain.net/games/?game=PUBG+Mobile&Rating=5&redirect=0";
// Simulate an HTTP redirect:
setTimeout(function() { // timer
window.location.replace(url);
}, 10000); // 10000 ms = 10 seconds
</script>
Note that here I've used a static URL. If you want this URL to be dynamic you can use the exact same approach I've mentioned for solving the infinite redirect. In other words, pass the original URL as a query string parameter to the ad page, parse it on the ad page through PHP, and use PHP to dynamically create the url in the code above.