This is just an example of redirection to external URL. The user will be redirected to your website by clicking on your advertisement…