Welcome to WebmasterWorld Guest from 54.159.214.250

Forum Moderators: incrediBILL & martinibuster

adsense on localhost?

will google hunt me down?

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

10+ Year Member



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)

WebmasterWorld Senior Member 10+ Year Member



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

10+ Year Member




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)

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



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)

10+ Year Member



just remove your publisher code :)

but that test option is cool! thnx

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

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



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)

10+ Year Member



<?php

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

echo $adsense_js;

} else {

echo $adsense_placeholder;

}

?>

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

5+ Year Member



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)

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



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)

10+ Year Member



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)

10+ Year Member



<?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.

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month