2020 May, these methods worked for me
Copy paste mode
- Right click on the video ad while it is playing.
- Select [Stats for nerds].
- Open your developer browser console and paste this. Check the Explanation section if you worried about this javascript:
alert("https://www.youtube.com/watch?v="+$(".html5-video-info-panel-content").children[0].children[1].textContent.replace(" ","").split("/")[0])
- You will be prompted with the url ready to copy and paste!!

Click mode
In the console of web browser, paste this:
var a = document.createElement('a');
var linkText = document.createTextNode("--> donwload ads");
a.appendChild(linkText);
a.title = "donwload ads";
a.target = "_blank";
a.href = "https://www.youtube.com/watch?v="+$(".html5-video-info-panel-content").children[0].children[1].textContent.replace(" ","").split("/")[0];
document.getElementsByClassName("html5-video-info-panel-content")[0].appendChild(a);
You will see a clickable link which will open the video in another tab

Javascript explanation
At the moment of write this, html of [Stats for nerds] was:
<div class="html5-video-info-panel" data-layer="4">
<button class="html5-video-info-panel-close ytp-button" title="close">[x]</button>
<div class="html5-video-info-panel-content">
<div>
<div>Video ID / sCPN</div>
<span>I4VzIvGdTxI / GD6Y 2G9R N3W5</span>
</div>
<div>
<div>Viewport / Frames</div>
<span>640x360 / 0 dropped of 1706</span>
</div>
<!-- a lot of divs -->
</div>
</div>
As you can see, our id is inside of span which is the second child of first child of div with class html5-video-info-panel-content.
Jquery help us to get the span value:
$(".html5-video-info-panel-content").children[0].children[1]
Then we need to delete empty spaces and split to get our video id:
.textContent.replace(" ","").split("/")[0]
Finally we concatenate this value to
"https://www.youtube.com/watch?v="
Manual mode
- Right click on the video ad while it is playing.
- Select [Copy Debug Info].
- Then open any text editing program like Notepad in Windows and paste it there.
- Search the pasted text for the line that says
"ad_debug_videoId": "XXXXXXXXX"
- The video url will be:
https://www.youtube.com/watch?v=XXXXXXXXX
References