(function() { slideshow_ad_loaded = true; adslots[slotName] = ...
If you're considering PuppeteerSharp for PDF generation, here's the version of the story that doesn't show up in the "getting started" docs.