grlayouts Posted November 22, 2006 Share Posted November 22, 2006 Ok i have an adsense account. what i want is that when i player click one of the adsense links its updates a field in the MySQL database. like ads=ads+1would also consider when they click an ad it goes to another page to run the MySQL query.. have tried a few thing but nothings worked any ideas? Link to comment https://forums.phpfreaks.com/topic/28164-adsense/ Share on other sites More sharing options...
trq Posted November 22, 2006 Share Posted November 22, 2006 [quote]have tried a few thing but nothings worked any ideas?[/quote]Maybe you should show us some of those ideas? You would need to (as you said) link to an intermediate page, run the query, then redirect to the link destination. Link to comment https://forums.phpfreaks.com/topic/28164-adsense/#findComment-128831 Share on other sites More sharing options...
grlayouts Posted November 22, 2006 Author Share Posted November 22, 2006 i had a javascript onclick but the ideas didnt work.. i have no idea how to.. Link to comment https://forums.phpfreaks.com/topic/28164-adsense/#findComment-128838 Share on other sites More sharing options...
brendandonhue Posted November 22, 2006 Share Posted November 22, 2006 Google doesn't like people messing with their AdSense codes, I wouldn't recommend trying to change anything in them. Link to comment https://forums.phpfreaks.com/topic/28164-adsense/#findComment-128848 Share on other sites More sharing options...
jawapro Posted November 23, 2006 Share Posted November 23, 2006 Are you recording Ad clicks to try and benefit users that click more?If Google finds out - they'll deduct money from your account.You're not even allowed to have things like "Support this website by clicking these ads" sort of messages. I had something about clicking ads in a blog once, and they emailed me and told me to remove it or else they'd deactivate the account.They also get pissed off if you click your own ads.JP Link to comment https://forums.phpfreaks.com/topic/28164-adsense/#findComment-128877 Share on other sites More sharing options...
grlayouts Posted November 23, 2006 Author Share Posted November 23, 2006 yeah i know its not to reward them its for like an auto link back once they have clicked. Link to comment https://forums.phpfreaks.com/topic/28164-adsense/#findComment-129031 Share on other sites More sharing options...
JasonLewis Posted November 23, 2006 Share Posted November 23, 2006 well... i cant remember what the Adsense adds look like. but... just make them go to a page like adsense.php that updates there account then redirects them to the ad they clicked. Link to comment https://forums.phpfreaks.com/topic/28164-adsense/#findComment-129047 Share on other sites More sharing options...
brendandonhue Posted November 23, 2006 Share Posted November 23, 2006 Or not...they will freeze your account if you do anything to the ads. Link to comment https://forums.phpfreaks.com/topic/28164-adsense/#findComment-129191 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.