Google ads are iframes, and Javascript does not have access to the content or add events to it if it is in a different domain and then in the parent site (see iframes law here ).
However, you can put an even div ( visibility: hidden , not display: none ) on top of the iframe and, in a sense, intercept clicks on it. The only problem is that you either intercept the click or not. Therefore, when the user clicks for the first time, you can run your logic, enable or not, and if you want to enable it, display: none your div and prompt the user to click again.
This is almost the only way to do this.
Mauvis ledford
source share