Lightbox With Ads is a flexible and responsive lightbox that allows you to present images from post as one gallery in a different url.
You can purchase Premium that allows you to add ads from Google AdSense, or test the feature for free for 14 days.
Prerequisites:
You need to have permalinks set to “post name” in Settings -> Permalinks -> Common Settings
How the code should look
(the element will vary, but it HAS to have “data-ad-client” property, that should have the same ca-pub number as the script above it):
(adsbygoogle = window.adsbygoogle || []).push({});