Adsense Questions

Status
Not open for further replies.

PSU4Life

New member
Aug 10, 2006
306
4
0
1: How to do you stop people (wife, kids, roommates) from clicking on your ads (other than just telling them)? My roommates all show up as the same IP when they visit my sites. I'm worried if they click an adsense ad I will get banned. I've told them not to but they still might.

2: TOS says you can't put Adsense on gambling/casnio sites. I see tons of sites related to poker with adsense and they have been running for awhile. How do they get around the TOS here?

Thanks
 


I'm not sure...i remember shoemoney metion something he does to block his family and friends from not being able to click his ads if my memory serves me right...i'll try to find it for you..unless someones knows....
 
At the top of your page, insert the following PHP code:

<?php
if ($_SERVER["REMOTE_ADDR"]=="XXX.XXX.XXX.XXX")
{
$adTestString = "google_adtest='on';\n";
}
?>

XXX.XXX.XXX.XXX is your and your rommates' IP address.

Then, in each google adblock, where it's declaring all the javascript variables, add this:

<?php echo $adTestString; ?>

You won't record any impressions or clicks from your IP address any more.
 
  • Like
Reactions: Jan
this code doesnt work if your IP address changes, i.e. if you have DSL or 56k
At the top of your page, insert the following PHP code:

<?php
if ($_SERVER["REMOTE_ADDR"]=="XXX.XXX.XXX.XXX")
{
$adTestString = "google_adtest='on';\n";
}
?>

XXX.XXX.XXX.XXX is your and your rommates' IP address.

Then, in each google adblock, where it's declaring all the javascript variables, add this:

<?php echo $adTestString; ?>

You won't record any impressions or clicks from your IP address any more.
 
Can't you do a range of IP's somehow? Even if your ip is not static it will be in the same range.
 
At the top of your page, insert the following PHP code:

<?php
if ($_SERVER["REMOTE_ADDR"]=="XXX.XXX.XXX.XXX")
{
$adTestString = "google_adtest='on';\n";
}
?>

XXX.XXX.XXX.XXX is your and your rommates' IP address.

Then, in each google adblock, where it's declaring all the javascript variables, add this:

<?php echo $adTestString; ?>

You won't record any impressions or clicks from your IP address any more.

Thanks for the code...I will add it.
 
Keep your mouth shud

For me, I just keep my mouth shut, never encounter this kind of problem :evil_laughter:
 
Status
Not open for further replies.