Welcome to WebmasterWorld Guest from 54.146.201.80

Forum Moderators: incrediBILL & martinibuster

Message Too Old, No Replies

adsense on localhost?

will google hunt me down?

     
11:50 am on Dec 19, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Feb 11, 2005
posts:116
votes: 0


I've read the program policies etc but they're not very specific about this matter. Anyone knows whether this could cause problems? It's for layout testing purposes.
12:07 pm on Dec 19, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 30, 2004
posts:1148
votes: 0


Could you not place an image for testing? this would be a safer option.
12:16 pm on Dec 19, 2005 (gmt 0)

Full Member

10+ Year Member

joined:Feb 26, 2005
posts:286
votes: 0



google_adtest='on';

This was a reply from AdSense support when I enquired about using AdSense whilst testing sites so it's a safe procedure.

[edited by: Jean at 12:19 pm (utc) on Dec. 19, 2005]

[edited by: martinibuster at 5:32 am (utc) on Dec. 21, 2005]
[edit reason] Removed email excerpt per tos. [/edit]

12:16 pm on Dec 19, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member jetteroheller is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 22, 2005
posts:2979
votes: 1


For layout testing with a graphic:

I use in my CMS a special work mode to show red <DIV> where the ads are.

It's just a mouse click to test in this moed

12:26 pm on Dec 19, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Nov 24, 2004
posts:91
votes: 0


just remove your publisher code :)

but that test option is cool! thnx

12:44 pm on Dec 19, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member jetteroheller is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 22, 2005
posts:2979
votes: 1


just remove your publisher code :)

To dangerouse.

Experiments like this tends to be by mistake in the internet. Imagine all Your site without Your publisher code.

8:06 pm on Dec 20, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Aug 30, 2004
posts:146
votes: 0


<?php

if ($_SERVER['SERVER_NAME'] == 'yourlivedomain.com') {

echo $adsense_js;

} else {

echo $adsense_placeholder;

}

?>

5:28 am on Dec 21, 2005 (gmt 0)

Full Member

10+ Year Member

joined:June 14, 2005
posts:338
votes: 0


google_adtest='on';

Is it official?No word about it on help pages at google adsense?

5:36 am on Dec 21, 2005 (gmt 0)

Moderator This Forum from US 

WebmasterWorld Administrator martinibuster is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 13, 2002
posts:13970
votes: 122


I have gifs representing the sizes I use that I drop in to see what it looks like. I create more in photoshop if it's using special colors.
8:16 am on Dec 21, 2005 (gmt 0)

Full Member

10+ Year Member

joined:Feb 26, 2005
posts:286
votes: 0


Is it official?

Well, it was a reply from AdSense support. Unfortunately, I can't quote you their email but my question was about having AdSense on a site that was under construction but already accessible to quite a number of people. I wanted the ads to show but didn't want them to be counted.
AdSense support told me to add

google_adtest='on';
within the AdSense javascript code.

So unless this is on a case by case basis it should be OK to use it and simpler than inserting gifs.

5:26 pm on Dec 21, 2005 (gmt 0)

New User

10+ Year Member

joined:Sept 24, 2003
posts:29
votes: 0


<?php

if ($_SERVER['SERVER_NAME'] == 'yourlivedomain.com') {

echo $adsense_js;

} else {

echo $adsense_placeholder;

}

?>

I think for those who have php access on their test server this is the best solution. If you put it in a php includes file you can use it on any page that you would normally use that size of adsense ad.