Google AdSense allows to pause the delivery of ads as long as the user hasn't given his consent of getting personalized ads (the functionality/UI to actually give consent is not part of that) by adding a specific configuration before each ad-request was made. See https://support.google.com/adsense/answer/7670312?hl=en for more information about that. This extension should actually allow to pause the ad delivery and should provide a client-side hook to give other extensions (which implement an actual cookie/ad consent form), like MediaWiki-extensions-CookieWarning, a possibility to trigger delivering of ads. The parameter is pauseAdRequests and should be set to the settings before the first ad request with:
(adsbygoogle=window.adsbygoogle||[]).pauseAdRequests=1