Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adsense Onclick(php, javascript)

I have tried to understand how to use a onclick for a adsense unit. Some say that this wont be possible and some say the opposite. What is correct ?

Is there anyway to get the onclick for a adsense unit. So when a adsense unit has been clicked, it will do something also.

like image 890
Ukjent Avatar asked Jun 20 '26 07:06

Ukjent


1 Answers

You can't. In order to prevent abuse, AdSense ads (and most major ad serving systems) run within an iframe specifically to isolate them from your page.

like image 184
ceejayoz Avatar answered Jun 21 '26 21:06

ceejayoz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!