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)

  • Without having tested it, I can confirm that I once could get the ID of the ad that I wanted using the right-click menu. – questionto42 Jan 9 at 19:47

While on the ad video, right click on the video and select Copy debug info. Paste in your notepad, then note the value of addebug_videoId.

Then you can use the github program called "youtube-dl". Use: youtube-dl command to download it, e.g.

youtube-dl https://www.youtube.com/watch?v=REPLACE_WITH_ad_debug_videoId
  • Using this method, I was able to extract the video but not download it because youtube-dl threw an error. But nevertheless, useful info – Pratik Singhal Aug 26 '20 at 17:54
  • The key is now addebug_videoId. And it works. – Low power Oct 17 '20 at 16:31
  • youtube-dl also has --include-ads, although it is marked as experimental – theJack Dec 25 '20 at 5:25

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.

  • The thing is that HLS files are downloaded (in my case) in chunks of around 150k so I need to put them together which is a pain (plus there is no audio). – Julian Aug 4 '15 at 7:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.