Is there a way in Unity to know when an ad was clicked? Some plugins for different advertising networks have events that fire when the ad was clicked, but if there is no such event - how do I know when an ad was clicked?


There is. I hope you know that through the advanced analytic options inside of the google adsense you can get a lot data.

You could add a blank field across the onGUI funcion. For every touch, in the spot where the ad shows up send packet to your server. Just with location. Your server will know that someone clicked, while you will not have to worry about trolls that love changing their phone time.

  • 1
    \$\begingroup\$ Adding a GUI element under the advertisement is an excellent idea! I do not know if the input event goes to Unity before the advert pops up. Needs testing. Thank you! \$\endgroup\$ – Esa Jul 4 '13 at 11:10
  • \$\begingroup\$ Never tried it, but it could work. You are welcome! :) \$\endgroup\$ – Mikolaj Marcisz Jul 4 '13 at 11:14
  • \$\begingroup\$ I tried this, but the click never reaches the GUI. \$\endgroup\$ – Esa Jul 26 '13 at 5:15
  • \$\begingroup\$ Maybe it is because you did it wrong? \$\endgroup\$ – Mikolaj Marcisz Jul 26 '13 at 12:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.