I'm doing some research and would like to save some YouTube ads to a local video file. No, I'm not interested in the videos themselves but the ads that show before or during the video plays. None of the online rippers saves the ads and doing a screen capture with something like Camtasia records the "Skip Ad" button and other overlays. I would preferably like to store the raw ad.
You can get the Id of the Ad by
- right click on the video and select "Stats for nerds"
- then you will see the Id for that Ad
- you can copy it and paste it in the url for Youtube and it will be opened as a normal video
and you can use a free downloader to download it (my recommendatin is Xtreme Download Manager)
While on the ad video, right click on the video and select Copy debug info. Paste in your notepad, then note the value of
Then you can use the github program called "youtube-dl". Use:
youtube-dl command to download it, e.g.
When using Firefox with the Firebug extension, you can open a network monitor.
Any downloaded video should appear at the media tab. You can query the URL and download it with a tool of your choice. See for example the cURL part in the provided link.